Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Linux, everything is considered a file, including regular files, directories and hardware devices. In this question, you are asked to carry out some practical

For Linux, everything is considered a file, including regular files, directories and hardware devices. 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.Use a command to display a calendar of three months starting with the current month.

(3 marks)

c.Use a command to show the current time.

(4 marks)

d.Create an alias ll (double letter l) for a command to list a directory in long format and show it in use.

(3 marks)

e.Use a command to show the free disk space on your main Linux system disk, using units such as MB and GB.

(4 marks)

f.Use a command to output a message saying Welcome where is replaced by the currently logged-in user.

(4 marks)

g.Create a script welcome.sh containing all the commands to parts (b) to (f). List your script file and demonstrate its output.

(4 marks)

h.Arrange to execute your welcome.sh script whenever you open a new terminal. Explain how you did this and demonstrate that it works.

(4 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions