To install Node.js on CentOS 6, run following commands as user root Once installed, you have node and npm available. [root@s45-40-135-102 ~]# node –version v6.11.2 [root@s45-40-135-102 ~]# npm –version 3.10.10 [root@s45-40-135-102 ~]# Now you can install required node modules with
To find all IP on a network with Port 80 Open in a network, run Example boby@hon-pc-01:~$ nmap 100.71.116.1-254 -p80 –open Starting Nmap 7.01 ( https://nmap.org ) at 2017-07-30 21:26 IST Nmap scan report for 100.71.116.60 Host is up (0.0045s
GoLang is new programming lanuage by Google. It us used by many popular open source software like docker, kubernetics. You can download latest version of golang from https://golang.org/dl/ To install version 1.8.3, run Edit .bashrc file Add Activate the changes
To backup linux server to remote server using rsync, create file Add In the above code, replace BACKUP-SERVER-IP-HERE with your backup server IP. [email protected] with your email address, so you get email when backup task is run. make it executable
cryptomator is open source software that allow you to encrypt files. It is useful to store files in public cloud like dropbox, google drive securely. https://cryptomator.org On Download page, you will be asked to pay, this is more like donation,
format ls result with awk awk is a command line tool for pattern scanning and processing. Here are some examples of awk in action. In this example awk split text using space. Print first part. $0 means full line, $1
You can use encfs to encrypt a folder in real time. This is useful if you want to sync sensitive information to cloud backup providers like dropbox. To install encfs, run To created an encrypted folder,run Here /path/to/encrypted-files will have
Here are some ways you can encrypt files on a linux system. GPG To encrypt a file with gpg, run You will be asked to enter password. Example boby@hon-pc-01:~$ gpg –symmetric –cipher-algo AES256 -o forums.txt.secure ~/work/MY_FILES/forums.txt boby@hon-pc-01:~$ To decrypt, run
last is a command used to list last logged in users on a linux system. [root@m3722 ~]# last root pts/0 112.133.248.3 Wed Jul 19 21:55 still logged in root pts/0 112.133.248.3 Tue Jul 18 19:58 – 20:00 (00:01) root pts/0
Here are some commands to monitor and identify Disk I/O related server loads. iostat iostat give stats about disk i/o usage. Some of the important values are * %iowait = if this value is higher, your server is waiting on