Friday, June 5, 2009

Unix File Permission

Unix File Permission


r – 4, w – 2, x – 1
_rw_ r_ _ r_ _ (644)  Default file permission
drwx r_x r_x (755)  Default directory permission

O G O - Permission categories

# ls –n /var/adm
drwxrwxr_x 5 4 4 512 nov 15 14:55 file1

5 - No of hard link to the file or directory
4 – The UID of the owner
4 – The GID of the group

512 – Size
# Chmod –R 755  - For inherit permission

Thursday, June 4, 2009

ln commands

http://solarisinterview.blogspot.com/ solaris interview questions and answers

$ PATH=$PATH:/usr/ccs/bin:/usr/ucb: - It will get appended to the existing path


# ln –s  - Creating symbolic link

# ln  - Creating hard link

Find command

http://solarisinterview.blogspot.com/ solaris interview questions and answers

# find /kris –name file1 - Searches for file file1 in /kris directory


# find /ris –name file1 –exec ls –l {} \; - Search and display

# find /kris –type f –size 0 –exec ls –l {} \; - Search for the file with size 0

# find /kris –user user1 - Shows file used by user ‘user1’
Custom Search

Feeds from my other blog

Samsung S2 Brand new for 25900 White piece sealed box

For Sale, Mobile Phones - Accessories in India, Andhra Pradesh, Hyderabad. Date September 17

For Sale in Hyderabad