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…
Tag: Linux
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,…
How to check for open ports on your server using Netstat.
Netstat is a really handy tool that comes packaged with Microsoft Windows, Linux and Unix. There is a version for each type of operating system, the command syntax may differ but the result is the same. There are many a…
How to mount a volume with a different mount point in Aix ?
I ran across a situation where my volume was running low on free disk space. In order to prevent my application from crashing, I had to either expand the volume or move the application files to a larger volume. Well,…