Questions

1:Which of the following are absolute pathnames? Which are relative?
  1. /usr/local/bin

  2. ../../home/ranga

  3. docs/book/ch01

  4. /

2:What is the output of the pwd command after the following sequence of cd commands have been issued?
$ cd /usr/local
$ cd bin
$ cd ../../tmp
$ cd
3:What command should be used to copy the directory /usr/local to /opt/pgms?
4:What command(s) should be used to move the directory /usr/local to /opt/pgms?
5:Given the following listing for the directory backup, can the rmdir command be used to remove this directory? If not, please give a command that can be used.
$ ls -a backup
./    ../   sysbak-980322 sysbak-980112

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.