2. I/O Redirection and Pipes
a) The (>) operator can be used to redirect the output of a command (what would normally be printed on the screen) into a file. Redirect the output of the ls and ps commands into files.
b) The output of one command can be redirected into another command using the pipe operator (|). Thus the (screen) output of the first command becomes the (keyboard) input of the second command. Use the wc and ps commands to count how many processes that are running. Show the composite command.
3. Finding Files
a) How can the find command be used to find all files whose names contain the word “kernel”?
4. Editing Files
a) Learn how to use the nano editor to edit a simple text file. For example edit a file to contain your groups names and student numbers. (There are lots of online guides to using nano e.g.
http://www.raspberrypi-spy.co.uk/2013/11/quick-guide-to-nano-text-editor-on-the-raspberry-pi/ )
Once you have completed these practical exercises you should individually demonstrate your understanding and competency to your tutor during tutorial. You need your tutor to be satisfied that you have this new practical knowledge and skill in order to pass this module.