Learning watch command with examples! Rumi, January 18, 2017 watch date watch -d date watch -n 10 df -h watch -t date watch echo "'"'$$'"'" watch echo $$ watch -n 0.5 echo $$ watch -n 1 'ps -e -o pid,uname,cmd,pmem,pcpu --sort=-pmem,-pcpu | head -15' watch -d -n 1 ifconfig watch -n 1 tail /var/log/messages watch -d=cumulative date watch "du -h filename.txt && df -h" watch -e "! date |grep -m 1 \"Dec\"" watch -n 1 sed 's/A/Ravi/g' file1.txt Related Administrations Watch
Disable swap in Linux February 24, 2020 Identify configured swap devices and files with cat /proc/swaps. Turn off all swap devices and files with swapoff -a. Remove any matching reference found in /etc/fstab. Optional: Destroy any swap devices or files found in step 1 to prevent their reuse. Due to your concerns about leaking sensitive information, you… Read More
Installing Squish November 9, 2008November 9, 2008 Well, install squint is quite simple! But installing squish is quite tricky- the document provided is not sufficient to cover few steps. I’ll try to summerize it (I’ve tested it on FC-5 distro)- Step -1 Make backup of your squid.conf for in case things go wrong. Install perl GD module…. Read More
Apache error fix on Forbidden You don’t have permission to access this resource June 30, 2020 Tested and works on Debian/Ubuntu apache installation. For this open the apache2.conf file using the nano editor sudo nano /etc/apache2/apache2.conf Replace the general directory settings with this. <Directory /> #Options FollowSymLinks Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Require all granted </Directory><Directory /usr/share> AllowOverride None Require all granted… Read More