Use a terminal session to:
- Make a directory called LabTask1 off your home directory (0.0%).
Do the following questions in the directory.
- Find out your
- User ID (the number)
- Primary group ID (the number)
- The names of all groups you belong to
- The absolute path of your shell
(tcsh/bash/zsh/whatever)
- The absolute path of your home directory
- Your PATH environment variable
Put the answers into a text file named MyStuff. (0.5%)
- 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%)
- Imagine you start a program from your command line prompt.
- What is your program's parent process?
- What is that process' parent process?
- What is that process' parent process?
Put the answer into a text file named MyProcesses. (0.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