NEXT UP previous
Next: Answers

Exercises

Construct a pipeline or single command to perform each of the following functions:

  1. Display a list of all the files called core anywhere in the file system, that you have access to as an ordinary user.

  2. Display a list of the process IDs of all the processes on the system running on your behalf when you are logged in as an ordinary user.

  3. Does the answer to the previous question change if you are logged in as root?

  4. Display a list of file names, one per line, from the directory /dey, which have the format hda followed by a number. Display the list in ascending order of the number. (My system has file names hda1 to hda12.)

  5. Display a list of byte offsets in hexadecimal for the starting positions of all null terminated strings of printable characters, at least three characters long, in the file /bin/cat. The solution to this problem may well involve you in looking carefully at some man pages to see which of the commands you have seen so far may help.

NEXT UP previous
Next: Answers