Put a running process as background process
$ kill -18 <PID>
It will resume the process, in background. So now, closing both your terminals won't stop your process.
Command to see my live IP
$ dig TXT +short o-o.myaddr.l.google.com @ns1.google.com #Some time This command mis behave
or
$ curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' #This command is OK and tested
or
$ wget -qO- http://ipecho.net/plain ; echo
"13.54.161.55"
Change the shell prompt
PS1='\u@DJ-LINUX-Server(\h) \W]\$'
PS1='\u@DJ-LINUX-Server \W]\$'
Change the time Zone
#vim /etc/sysconfig/clock
ZONE="Australia/Sydney"
# ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime
Change the volume group name
#vgrename -v <current-name> <new-name>
** Note: If the / is under the same VG then /etc/fstab and the /etc/grub.conf has to be updated with new vg-name.
See the a particular port is associated with which PID
[root@deployment-test Desktop]# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1787/rpcbind
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2034/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1865/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2276/master
tcp 0 0 0.0.0.0:40605 0.0.0.0:* LISTEN 1831/rpc.statd
tcp 0 0 :::111 :::* LISTEN 1787/rpcbind
tcp 0 0 :::22 :::* LISTEN 2034/sshd
tcp 0 0 ::1:631 :::* LISTEN 1865/cupsd
tcp 0 0 ::1:25 :::* LISTEN 2276/master
tcp 0 0 :::58501 :::* LISTEN 1831/rpc.statd
[root@deployment-test Desktop]# lsof -i :40605
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpc.statd 1831 rpcuser 9u IPv4 11837 0t0 TCP *:40605 (LISTEN)