Practice Exercise@7march

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Practice Exercise-3

1) chmod u+x filename


2) chmod g+x filename
3) chmod ugo + x filename
4) chmod go – rx filename
5) chmod go - x filename
6) chmod ugo + rwx filename
7) chmod a + rx filename
8) chmod a + x filename
9) chmod a +w filename
10) chmod g + rwx filename
11) chmod 400 filename
12) chmod 764 filename
13) chmod 111 filename
14) chmod 777 filename
15) chmod 712 filename
16) chmod 100 filename
17) chmod 523 filename
18) chmod 657 filename
19) chmod 231 filename
20) chmod 700 filename
21) Symbolically (eg rwxr-xr-x) what are the permissions 644, 755, 000, 711, 700, 777,555,
111, 600, 731?\
22) Given a file with permissiom 655. What commands would change the permissions to r-xr—
r--?
23) How will you obtain a complete listing of all files & directories in the whole system & save
the output in a file?
24) Create a file new_file. How do you assign all permissinons to the owner and remove all
permissions from others using :
i) Relative assignment
ii) Absolute assignment
25) Assuming that a file’s current permissions are “rw-r-x-r—“, to specify the chmod
expression required to change them to:
i) r w x r w x r w x
ii) r - - r - - - - -
iii) - - r - -r - -
iv) - - - - - - - - -

Using both relative and absolute methods of assigning permissions.

You might also like