Archive for January, 2010

List files by size in reverse numerical order in Linux or Unix.

January 7, 2010
By Andrew Lin

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 to display the results in numerical order (by size). Below is an example of...
Read more »

Tags: , ,
Posted in Software | 2 Comments »

How to migrate users and groups from Solaris 9 to 10?

January 4, 2010
By Andrew Lin

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 9 server over to the new Solaris 10. The three files are /etc/passwd, /etc/shadow,...
Read more »

Tags: ,
Posted in Software | 1 Comment »