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…
Tag: Unix
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…
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…
How to change the hostname in Solaris 10
To change the hostname in Solaris 10 you need to edit 3 files and appply the new name. /etc/nodename /etc/hostname.*interface, e.g. hostname.bge0 /etc/inet/hosts this file is a hard link to /etc/inet/ipnodes. You will need to make /etc/inet/ipnodes writable before editing…
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…
List files by size in reverse numerical order in Linux or Unix.
The root drive on my Solaris server was full and I needed to find out what file was the largest. The du command can list the size of the files in a directory, you can then use the sort command…
How to migrate users and groups from Solaris 9 to 10?
I just installed Solaris 10 on a new SPARC server, now I need to migrate the userids and groups over. The optimal way to migrate the userids while retaining their password is to simply copy three files from the Solaris…
Strange message when launching the vi editor.
I got this strange error message when launching the vi text editor during the installation of Solaris 10, I don’t know what kind of terminal you are on – all I have is ‘unknown’. The reason for this is becasue…
Managing the services in Solaris.
The svcs command will report the status of servics in Solaris. The svcadm command is used for service management such as starting, stopping and restoring services. To display all services with their state information, use the svcs command with the…
Configure DNS client on Soalris 10 server to resolve telnet login delay
I just installed and configure a new Sun SPARC Enterprise M3000 server. It seems that when I telnet to the sever from a remote computer it takes a while to connect and get a login prompt. Once I am able…