Use a terminal session to:

  1. Make a directory called LabTask1 off your home directory (0.0%). Do the following questions in the directory.

  2. Find out your Put the answers into a text file named MyStuff. (0.5%)

  3. Write a shell script called GetMyStuff that will provide the above information (the script must be a executable, and must work regardless of which directory it is in). (0.5%)

  4. Imagine you start a program from your command line prompt. Put the answer into a text file named MyProcesses. (0.5%)

  5. Read the man pages about the ls and wc commands. Devise a minimal pipeline command that will print the number of files and subdirectories in the current directory (including hidden ones, but not the current and parent directory entries). Put the answer into a text file named MyPipe. (0.5%)

Answer