content top

Remove empty directories

To remove empty directories in a directory structure use the following command : sudo find /begin/here -type d -empty -delete

Read More

Apply the “200 Lines Kernel Patch That Does Wonders”

The script has only been tested on Ubuntu (10.10 an 10.04) Even though I’ve tested the script, it may not work for everybody so use it as is. There are no guarantees it will work and I take no responsibility if it doesn’t. Always check the code of a script you run on your computer. You can download the script from HERE. Now that you’ve read the “disclaimer”, you can go ahead and use the script. Open a...

Read More

tcpdump – Detailed Network Traffic Analysis

The tcpdump is simple command that dump traffic on a network. However, you need good understanding of TCP/IP protocol to utilize this tool. For.e.g to display traffic info about DNS, enter: tcpdump -i eth1 'udp port 53' To display all IPv4 HTTP packets to and from port 80, i.e. print only packets that contain data, not, for example, SYN and FIN packets and ACK-only packets, enter: # tcpdump 'tcp port 80 and (((ip[2:2] -...

Read More

Show running processes in Linux

ps command Type the following ps command to display all running process: # ps aux | less Where, * -A: select all processes * a: select all processes on a terminal, including those of other users * x: select processes without controlling ttys Task: see every process on the system # ps -A # ps -e Task: See every process except those running as root # ps -U root -u root -N Task: See process run by user vivek # ps -u vivek Task: top command The...

Read More

Installing VMWare Tools in SLES CLI

In the VMWare Infrastructure Client select VM -> Install/Upgrade VMware Tools In the CLI type the following mkdir /media/cdrom mount /dev/cdrom /media/cdrom rpm -Uhv /media/cdrom/VMwareTools-3.5.0-{version}.i386.rpm SuSEconfig vmware-config-tools.pl ( If you’re getting gcc error’s check this post ) /etc/init.d/network stop rmmod pcnet32 rmmod vmxnet depmod -ae modprobe vmxnet /etc/init.d/network...

Read More
content top