about linux3

Joined
Feb 28, 2008
Messages
3
Reaction score
0
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.
  • 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>
 

Ian

Administrator
Joined
Feb 23, 2002
Messages
19,873
Reaction score
1,499
Sorry Daloonaa, it looks like you've just copied and pasted an assignment in here without explaining what you actually need help with. You aren't going to get anyone doing your work for you, but if you try it yourself people may be able to help when you get stuck.
 

Rush

Cool Cruncher
Joined
Nov 3, 2005
Messages
4,129
Reaction score
9
In the well chosen words of Mr Bassett..

it takes bloody allsorts !!:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top