User Tools

Site Tools


Sidebar

projects

uxi0 (due 20200123)
pct1 (bonus; due 20200123)
wcp1 (due 20200123)
adm0 (due 20200129)
pct2 (due 20200129)
wcp2 (due 20200129)
pbx0 (due 20200205)
pct3 (due 20200205)
wcp3 (due 20200205)
pbx1 (due 20200212)
pct4 (due 20200212)
wcp4 (due 20200212)
pbx3 (bonus; due 20200226)
bwp0 (bonus; due 20200226)
usr0 (due 20200226)
pct5 (due 20200226)
wcp5 (due 20200226)
pbx2 (due 20200304)
pct6 (due 20200304)
wcp6 (due 20200304)
upf0 (due 20200311)
pct7 (due 20200311)
wcp7 (due 20200311)
upf1 (due 20200318)
pct8 (due 20200318)
wcp8 (due 20200318)
spf0 (due 20200325)
pct9 (due 20200325)
wcp9 (due 20200325)
pwn0 (due 20200401)
pctA (due 20200401)
wcpA (due 20200401)
wpa0 (due 20200422)
pctB (due 20200422)
wcpB (due 20200422)
bwp1 (bonus; due 20200422)
gfo0 (due 20200429)
pctC (due 20200429)
wcpC (due 20200429)
eoce (due 20200513)
haas:spring2020: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/spring2020/unix/worksheet0.txt · Last modified: 2013/02/27 19:08 by 127.0.0.1