Question: Required solution in bold only require G . * * * For Linux, everything is considered a file, including regular files, directories, hardware devices and

"Required solution in bold only require G.***
For Linux, everything is considered a file, including regular files, directories, hardware devices and sockets. In this question, you are asked to carry out some practical activities for manipulating files with Linux. Include either screenshots or output from the command line to document your answers. Use either an internet search or the man command to obtain more information about available commands.
a.Display a detailed listing of all files in the current users home directory, including any hidden files.
b.Recursively list the files of /usr/lib and sort them by modification time, newest first. For this question, you only need to display the first a few lines (about 10) of the output.
c.Create a new directory named NewDir, which includes a new file NewFile. Using octal values, change the permissions of NewFile so that the user can read and write but not execute the file, and the group and others can read the file but not write or execute it.
d.Look for the command for timing how long a program takes to execute. Also find the command for generating a sequence of numbers. Use these commands to time how long it takes to add a sequence of odd numbers starting at 15 and ending at 683 to NewFile.
e.Use the appropriate command to obtain your network configuration and append the result to NewFile. Display the contents of NewFile.
f.Become a superuser and create a new user called Victoria with a userid of 1200.
g.Count the number of occurrences of ""ls"" in the command history and redirect the result to a XH14 new file count.txt.
(4 marks)"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!