CIS 118 Intro to UNIX 1
Advanced UNIX
Objectives
– to supplement the “Introduction to UNIX” slides with extra information on files
CIS 118 Intro to UNIX
- 1. The File Structure
Advanced UNIX CIS 118 Intro to UNIX 1 . The File Structure (Ch. 4 , - - PowerPoint PPT Presentation
Advanced UNIX CIS 118 Intro to UNIX 1 . The File Structure (Ch. 4 , Sobell) Objectives to supplement the Introduction to UNIX slides with extra information on files 1 CIS 118 Intro to UNIX Overview 1 . Access Permissions 2 . Links 2
CIS 118 Intro to UNIX 1
CIS 118 Intro to UNIX 2
CIS 118 Intro to UNIX 3
CIS 118 Intro to UNIX 4
CIS 118 Intro to UNIX 5
$ ls -lF
drwxr-xr-x 2 ad users 1024 Sep 26 16:04 curses/
Meaning (left to right):
CIS 118 Intro to UNIX 6
CIS 118 Intro to UNIX 7
CIS 118 Intro to UNIX 8
chmod who+what file
chmod who-what file // remove who: u, g, o, a (all) what: r, w, x
chmod u+x foo-p chmod a+rw letter.txt chmod o-rx check_spell
CIS 118 Intro to UNIX 9
$ chmod a+rw letter.txt $ ls -lg letter.txt
$ chmod o-rx check_spell $ ls -lg check_spell
CIS 118 Intro to UNIX 10
CIS 118 Intro to UNIX 11
CIS 118 Intro to UNIX 12
CIS 118 Intro to UNIX 13
CIS 118 Intro to UNIX 14
CIS 118 Intro to UNIX 15
CIS 118 Intro to UNIX 16
$ ls -l file_a file_b file_c file_d
CIS 118 Intro to UNIX 17
drwxr-xr-x 23 ad users 1024 Jan 12 2000 BLP/
CIS 118 Intro to UNIX 18
CIS 118 Intro to UNIX 19
CIS 118 Intro to UNIX 20
CIS 118 Intro to UNIX 21
$ ln -s pics /home/ad/images $ ls -lF pics /home/ad/images drw-r--r-- 1 ad staff 981 May 24 10:55 pics lrwxrwxrxw 1 ad staff 4 May 24 10:57 /home/ad/images --> pics
CIS 118 Intro to UNIX 22