i need some helps.
The goal of this assignment is to evaluate your understanding and ability to use the Unix/Linux command shell to perform common tasks. Each task that is completed correctly will be awarded marks. You may refer to http://tldp.org/LDP/intro-linux/html/index.html for some tips and information on what commands are suitable for achieving the stated goals. Complete the following tasks in the order given.
The goal of this assignment is to evaluate your understanding and ability to use the Unix/Linux command shell to perform common tasks. Each task that is completed correctly will be awarded marks. You may refer to http://tldp.org/LDP/intro-linux/html/index.html for some tips and information on what commands are suitable for achieving the stated goals. Complete the following tasks in the order given.
- Use the script utility, log all of the subsequent activities that you are required to perform as part of this assignment. The output filename should have the following format: cst132-<matric-no>.log, where <matric-no> is your matric number.
- Find out the version of the running kernel on your Linux system.
- Start several (at least three) terminal windows. List the active terminal windows running on the system, indicating the terminal identifier, the username that the terminal belongs to, and the time that the terminal was started. (Hint: Each terminal has the identifier pts/? where ? is a number.)
- Display all files under the /boot directory (including files in subdirectories), indicating the file owner and group, filesize, date, and filename.
- Start the xclock program in the background. Show that it exists in the list of processes running in your terminal (don’t show system processes). Terminate the xclock program using the ‘kill’ command. Show that it has been removed from the list of running processes.
- Determine the amount of processor time used to execute the following command: find /lib
- Copy the file /etc/passwd to your home directory as newfile.txt. Use a Unix command to verify that the contents of the copied file is exactly the same as the original file. Then, use a Unix command to determine whether the user ‘nobody’ exists in the file.
- Display the search path for your current Shell Environment, update the search path to include /usr/local/sbin, and redisplay the search path showing that the new directory is now part of the search path.
- Show the list of ALL processes (user, system, and background/daemon processes) running on the system, include the Status of each process in the output.
- Finish the assignment by pressing ^D (Control-D) to close the script logfile. Check that the logfile has the output for each of the above tasks, and submit it using the command:
/home/submitcst132 <filename>