9. [user@host mydocuments]$ cd ..
[user@host ~]$
[user@host ~]$ ls -l
total 16
drwxrwxr-x 2 user user 4096 2008-01-23 11:39 mydocuments
drwxr-xr-x 2 user user 4096 2008-01-23 11:00 tst
[user@host ~]$
10. [user@host ~]$ touch trainee1.txt
[user@host ~]$ touch trainee2.txt
[user@host ~]$ ls -l
total 24
drwxrwxr-x 2 user user 4096 2008-01-23 11:39 mydocuments
-rw-rw-r-- 1 user user 0 2008-01-23 12:11 trainee1.txt
-rw-rw-r-- 1 user user 0 2008-01-23 12:11 trainee2.txt
drwxr-xr-x 2 user user 4096 2008-01-23 11:00 tst
[user@host ~]$
[user@host ~]$ find ~ -name trainee1.txt
/home/user/trainee1.txt
[user@host ~]$ locate trainee1.txt
/home/user/trainee1.txt
[user@host ~]$
18. [user@host ~]$ ls -l
total 24
drwxrwxr-x 2 user user 4096 2008-01-23 11:39 mydocuments
-rw-rw-r-- 1 user user 0 2008-01-23 12:11 trainee1.txt
-rw-rw-r-- 1 user user 0 2008-01-23 12:11 trainee2.txt
drwxr-xr-x 2 user user 4096 2008-01-23 11:00 tst
[user@host ~]$
/ / 1 /
$ !
!
!
'(
19. [user@host ~]$ ls –l mydocuments
drwxrwxr-x 2 user user 4096 2008-01-23 11:39 mydocuments
[user@host ~]$ chown user:othergroup mydocuments
[user@host ~]$ ls –l mydocuments
drwxrwxr-x 2 user othergroup 4096 2008-01-23 11:39 mydocuments
[user@host ~]$
[user@host ~]$ chmod g-rwx mydocuments
[user@host ~]$ ls –l mydocuments
drwx---r-x 2 user user 4096 2008-01-23 11:39 mydocuments
[user@host ~]$
20. [user@host ~]$ chmod a+rwx mydocuments
[user@host ~]$ ls –l mydocuments
drwxrwxrwx 2 user user 4096 2008-01-23 11:39 mydocuments
[user@host ~]$
[user@host ~]$ chmod 700 mydocuments
[user@host ~]$ ls –l mydocuments
drwx------ 2 user user 4096 2008-01-23 11:39 mydocuments
[user@host ~]$