How to get rid of /tmp/atop.d/atop.acct

You should never terminate atop by 'kill -9', because then it has no chance to stop process accounting; as a result the accounting file may consume a lot of disk space after a while!!!

Lets do this smoothly:

systemctl stop atopd
systemctl disable atopd

Check atop processes
ps auxfS |grep atop

Kill if any using 'kill -15'
kill -15 PID

Check for links and unlink if any:
ls /etc/systemd/system/ |grep atop

Remove atopd.service
Read the rest

How to create port listener on Linux

Install nc if needed

yum install nc

Run listener on port 3000

nc -l 3000 &
nc -l -k 3000 &

where -k is –keep-open will keep connection opened and allows multiple connections in listen mode

Check on the server’s side:

netstat -tunap |grep :3000

Output:

tcp        0      0 0.0.0.0:3000                0.0.0.0:*                   LISTEN      82786/nc            

Check from local machine:

$ nmap -p 3000 SERVERS_IP_ADDRESS

Output:

Starting Nmap 7.01 ( https://nmap.org
Read the rest

How to downgrade to Firefox 56.0

Backup your current settings if needed

cp -rp .mozilla/ .mozilla_bk

Purge current firefox

sudo apt-get purge firefox -y

Download 56 version

wget https://ftp.mozilla.org/pub/firefox/releases/56.0/linux-x86_64/en-US/firefox-56.0.tar.bz2

sudo su

tar -xvf firefox-56.0.tar.bz2

cp -rp firefox /opt/

cd /usr/bin

ln -s /opt/firefox/firefox firefox

Finally, you have to avoid upgrading to the newer version.… Read the rest