Question: 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

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 to manipulate files using Linux. Include either screenshots or output from the command line to document your answers.

  • a.Outline how you would approach working out how to achieve a task through the command line when you dont know the appropriate commands.

    (4 marks)

  • b.Recursively list the subdirectories of /usr/lib, showing their contents by file size. For this question, you only need to display the command and first few lines (about 10) of the output.

    (6 marks)

  • c.Add a new user fred to your system, giving their account a userid of 1300.

    (4 marks)

  • d.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 write and execute but not read the file, and the group and others can write the file but not read or execute it.

    (6 marks)

  • e.Describe what the command base64 /dev/urandom | head -n 700 > NewFile.txt does.

    (6 marks)

  • f.Compress NewFile into a new file named NewFileComp and make NewFileComp read-only for all users.

    (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 Databases Questions!