List the status of all swap areas.
# swap -l
swapfile dev swaplo blocks free
dev/dsk/c0t0d0s1 32,9 16 8425712 8425712
The output has five columns:
path
The path name for the swap area.
dev
The major/minor device number...
Read more »
Posts Tagged ‘ Aix ’
How to list the status of swap in Solaris
Using grep/egrep to find out which file contains a word or string in Unix or Linux
If you need to find out which file in a directory contains a specific word then the grep command is your friend.
Here is an example, if you wanted to find out which file in the directory /home contains the word groundhog.
grep –i “groundhog” /home/*
/home/shadow:Today is groundhog day
The –i option means grep will ignore upper/lower...
Read more »
Success, failure of the tar command recorded with time and date stamp
I needed to determine the amount of time it would take to archive large amount of data on my unix server. If I had infinite amount of free time I could sit in front of the screen with a stop watch. But the better way is to create a script that would...
Read more »
How to delete a file or directory with special characters using the inode in Unix or Linux
My fat fingers inadvertently created a directory on my unix server with special characters. I could not access this directory nor could I delete it. When I listed the directory using the command ls –b, I could see all the funny characters.
ls –b
scritps010/010/010/010
I tried every command I could think of, rmdir “scripts”,...
Read more »
How to determine the AIX OS level and Maintenance Level.
IBM had renamed the term maintenance level (ML) to technology level (TL).
Here is an excerpt from IBM, “Although some systems administrators still use the term “maintenance level” when discussing their AIX version, the term is now reserved for legacy AIX systems. The new IBM methodology dictates two TL releases per year. The first TL...
Read more »
How to list the type of fiber channel card and it’s WWN info in AIX
I needed to find out the type of fiber channel HBA cards installed in the Aix server. Here are the commands I used to find the information,
Use the lsdev command to list the fiber channel cards (HBA) installed in the Aix server. Depending on the version of aix one or all of the...
Read more »
Auditing the cron jobs scheduled on the Unix or Linux server.
I have recently taken ownership of a Solaris 5.9 server and am in the process of migrating the applications over to a recent release. I decided to audit the applications and configuration of all the apps installed. One of the very long list of items I needed to figure out is the...
Read more »
TOP and TOPAZ are Unix, Linux and AIX utilities that provides real time display of top cpu using processes.
As a server/systems administrator you will find the TOP utility very useful to determine top cpu using processes. TOP is the utility for Linux and most Unix operating systems. IBM Aix has it’s own version which does the same job, it is called Topaz.
Top can be download from unixtop.org, the...
Read more »
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 -s)
Node name (uname -n)
Operating system release (uname -r)
Operating system version (uname -v)
Machine class (uname -m)
Instruction set architecture (uname -p)
Platform...
Read more »
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, and Linux. The variables may differ slightly depending on the Operating System.
Here is an...
Read more »