Sunday, August 29, 2010

Remove a file which is named in special characters

There are times when you might encounter files which might have unusual names like "*^^^2as" (I have received complains from user that they were not able to delete such files). It was not possible to delete the files by name.

Solution: Delete files with inode number

Get the inode of a file using 'ls -li' command

                     ls -li

Now use find command command to delete the fie using the inode number.

                    find -inum -exec rm -i {} \;

Find anything you want...

One of the most frequently used utility is the 'find' command


Below is an example of find command which can find a file in a filesystem with a specific size.

find /var -size +100000 -mount -print | more
find /var -xdev -size +10000000c -exec ls -ltr {} \;                     // display the files in long listing

There are many options that can be used with find to tune our search; like, finding files that has ben changed before a particular date or after a particular date etc...

Wednesday, August 18, 2010

Solaris.... Sun Solaris .... Oracle Solaris

Solaris is a Unix operating system originally developed by Sun Microsystems.

Although it was historically developed as proprietary software, it is supported on systems manufactured by all major server vendors, and the majority of its codebase is now open source software via the OpenSolaris project.

Solaris was born in 1987 out of an alliance between AT&T and Sun Microsystems to combine the leading Unix versions (BSD, XENIX, and System V) into one operating system.

Solaris versions prior to the recent version -> 4.x , 5.x...5.9

Latest version is Solaris 10 (5.10) released to the public in 2005 free of charge and with a host of new developments. To mention just a few, Solaris features more and more compatibility with Linux and IBM systems, has introduced the Java Desktop System based on GNOME, added Dynamic Tracing (Dtrace), NFSv4, and later the ZFS file system in 2006.

To learn Solaris 10,
http://www.sun.com/bigadmin/content/solSysadminGuide/solsysadmin.pdf

Courses:
The System Administration for the Solaris 10 Operating System, Part 1
The System Administration for the Solaris 10 Operating System, Part 2

Thursday, August 5, 2010

Unix blogs to follow

1. http://www.cuddletech.com/blog/index.php
2. http://solaris.reys.net/
3. http://solaristroubleshooting.blogspot.com/
4. http://blog.hindsight.it/
5. http://www.theunixblog.com/
6. http://blogs.sun.com/




Will be updated as and when new good blogs are found !!!
PS: Not based on any ranking. Just great collection of information.

Sysadmin Day - last Friday in July

System Administrator Appreciation Day, also known as Sysadmin Day, SysAdminDay or SAAD, was created by system administrator Ted Kekatos.