User Tools

Site Tools


Sidebar

projects

ntr0 (due 20200826)
pct1 (bonus; due 20200821)
wcp1 (due 20200821)
pct2 (due 20200826)
wcp2 (due 20200826)
adm0 (due 20200902)
pct3 (bonus; due 20200902)
wcp3 (due 20200902)
pbx0 (due 20200909)
pct4 (bonus; due 20200909)
wcp4 (due 20200909)
pbx1 (due 20200916)
pct5 (bonus; due 20200916)
wcp5 (due 20200916)
pbx2 (due 20200923)
pct6 (due 20200923)
wcp6 (due 20200923)
usr0 (due 20200930)
pct7 (bonus; due 20200930)
wcp7 (due 20200930)
gfo0 (due 20201007)
pct8 (due 20201007)
wcp8 (due 20201007)
upf0 (due 20201014)
pct9 (bonus; due 20201014)
wcp9 (due 20201014)
upf1 (due 20201021)
pctA (due 20201021)
wcpA (due 20201021)
wpa0 (due 20201028)
pctB (bonus; due 20201028)
wcpB (due 20201028)
pctC (due 20201104)
wcpC (due 20201104)
pctD (bonus; due 20201111)
wcpD (bonus; due 20201111)
pctE (bonus; due 20201118)
wcpE (bonus; due 20201118)
eoce (due 20201125)
haas:fall2020:unix:worksheet0

UNIX Worksheet

File Permissions

For the following symbolic file permissions, give the corresponding octal value:

  • - r w x r - x r - x
  • d - w x - w - - - x
  • c r - - - w - - - x
  • b r w - r w - - w x

File Types

For the given file information, identify whether the indicated file is a regular, directory, or special file:

  • - r w x r - x r - x
  • d - w x - w - - - x
  • c r - - - w - - - x
  • b r w - r w - - w x

Modifying File Permissions based on File Types

For the following, give the chmod command that provides user with read and write (maintaining any existing execute), removes any read for group (preserving any existing write and execute), and adds world read. But ONLY if it is a special file.

  • - r w x r - x r - x
  • d - w x - w - - - x
  • c r - - - w - - - x
  • b r w - r w - - w x

Absolute vs. Relative Path

For the following, specify whether it is an absolute or relative path. Explain why:

  • /usr/local/bin
  • ../bin/fsck
  • bin/ls
  • /var/log/auth.log
haas/fall2020/unix/worksheet0.txt · Last modified: 2013/02/27 19:08 by 127.0.0.1