The du command displays disk usage for each file or folder. You can use this command to find the size of a folder in Unix or Linux. Below are some examples. du -s /home/andrew 19112204 /home/andrew The above command displays…
How to determine the current shell type in Linux or Unix.
Here is the command to find out what your current shell type is in Linux or Unix. This works for most variants of Unix, Aix, and Linux. echo $0, this will display the shell type. echo $SHELL, this will give…
Upgrading SpamAssassin on Fedora 4 server.
Download the lastet version of SpamAssassin version 3.2.5, the file name is Mail-SpamAssassin-3.2.5.tar.gz. You can get the latest version from spamassassin.apache.org. In this step by step example I am upgrading SpamAssassin version 3.0.3-4.fc4 to 3.2.5 on my Fedora 4 server.…
How to determine the version of Aix, Solaris and Linux.
How to determine the version of Solaris you are running. uname -a This will list the Solaris version on your server. uname -X will display the extended information with more detailed info. Other options for uname. Operating system name (uname…
How to find a file in Unix, Linux, Aix, Solaris.
If you are not sure about the name of the file and which directory it stored in then you can use the find command to search for it. The Find command is common to all variants of Unix, Aix, Solaris,…
Formula for calculating the swap partition size during the installation of Red Hat Enterprise Linux
When performing the installation of Red Hat Enterprise Linux or Fedora, you can accept the default size of the swap partition or enter the optimal size manually. Here is the formula to calculate the swap partition size. If total memory…