You are here
Home > featured > Linux Cheatsheet

Linux Cheatsheet

Creating symbolic link
ln -s [sourcepath] [destination]
example: ls -s /tmp/webportal /var/www/mysite

To search for a particular package by name or description
apt-cache search package-
example: apt-cache search php5-

Insalling module in Ubuntu

sudo apt-get install nameofthemodule

Watch Process

Show all the running processes within your Linux environment using following one of these

top

watch -n 1 “ps u -C processname1,processname2,processname3”
example: watch -n 1 “ps u -C memcached,php,varnishd,apache2”

more information can be found at : http://linux.byexamples.com/archives/242/monitor-custom-programs-with-ps-and-watch/

Verifying Which Ports Are Listening
netstat -anp | grep portnumber

backgound script
nohup sh custom-script.sh &
nohup >&
nohup /path/to/your/script.sh > /dev/null 2>&1 &
nohup ./mobile_cron.sh > /dev/null 2>&1 &

Kill Process
kill PID
more infomation can be found at : http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/

Getting information of disk:
df -h

Getting information of the size of the current directory
du -h

SSL

Following links might be helpful for configuring SSL on linux machince.

Exporting SSL certificates from Windows to Linux


https://www.sslshopper.com/tomcat-ssl-installation-instructions.html
https://www.sslshopper.com/article-installing-an-ssl-certificate-in-windows-server-2008-iis-7.0.html

Leave a Reply

Top