作業系統實習 單元4+ (20160322)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

1431: (Operating System Laboratory)

4:

Part I.

1. Linux (User Account) (Group

Account) (ref: Ch8 of Textbook1)

2. (permission) (ref: Ch9 of Textbook1)

(owner; u) / (group; g) /
(others; o)
(read; r) / (write; w) / (execute; x)

(file) / (directory)

Set UID (SUID) / Set GID (SGID) / Sticky bit (SBIT)

///
w
()

x /

3. : (ref: Ch9 of Textbook1)

chgrp [-R]

chown [-R]

chmod (r/w/x)
(s/s/t)
root

chmod [-R] 755

chmod [-R] u=rwx,go=rx

4. Linux Filesystem Hierarchy Standard (FHS)


(ref: Ch6 of Textbook1)
/ (root, )

/usr (unix software resource)/

/var (variable)

5. (path)

(absolute path)(/)

/home/student/.bashrc

(relative path) /

3
() ./home/student

../../home/student home/student

Part II.

1. Textbook2 ,

Linux : 5. Linux

Linux : 6.4

Linux : 6.8 ()

2. , ( /

):
chgrp, chown, chmod
touch, file
umask, chattr, lsattr
3. student touch

testfile:

ls l testfile

chmod testfile
-rw-rw----
chmod testfile


4
4. /tmp (

!)

Part III.

1. ls -l (

2. .

3. Linux

4.

5.

6.

7. (r/w/x)

8. (s/s/t)

9. -rwxr-xr--

10.

11. student ()


-rwx------ 1 root root 4365 Sep 19 23:20 the_root.data
12. student ( root ) (

) ,

5
drwxr--r-- 3 root root 4096 Jun 25 08:35 .ssh
13. , ., .., -, ~

14.

15.

16. ,

17. chattr +a i

18. SUID

19. SGID

20. SBIT

21. /tmp

22. FHS,

23. FHS

24. (

25. (

26.

27.

()

6
Part IV.

1. Textbook1 ():
, Linux LPIC Level I + Novell CLA 11, ,
(ISBN: 978-957-22-4216-2)
(: http://lib1.nkfust.edu.tw/record=b1782653~S0
HyRead App )

2. Textbook2 ():

Linux : http://linux.vbird.org/

3. Linux :
http://linux.vbird.org/linux_basic/redhat6.1/linux_06command.php
http://140.128.161.4/students/node/469

You might also like