Linux Commands for 'Outdoor Adventures' Application Essay

Total Length: 631 words ( 2 double-spaced pages)

Total Sources: 4

Page 1 of 2

This can be seen below:

Unused Directories can be deleted using the 'rmdir'.

The subdirectory named 'Extra' can be deleted using 'rmdir Extra' as shown below

Permissions can be granted on the command line using the 'chmod' command.

r, w and x refers to read, write and execute permission u, g and o refers to user (owner), group (accountant) and o (others)

+ is used for granting permission

Is used to deny permission.

chmod u+rwx Extra -- Grants all permissions for the 'Extra' subdirectory to the user (owner)

chmod g+rwx Extra - Grants all permissions for the 'Extra' subdirectory to the group (accountant)

chmod g+rwx Extra - Denies all permissions for the 'Extra' subdirectory from the others.

Subdirectories with files inside them can be deleted using the 'rm -- rf' command.

The subdirectory 'Extra' with a text file 'a.txt' (created using vi) can be deleted by 'rm -- rf Extra'

Subdirectory contents can be copied using the 'cp' command.
The screenshot below shows the creation of 2 text files 'cust1' and 'cust2' using the vi editor.

They are copied into the 'Customers' and 'Extra' subdirectories respectively by cp cust1 Customers

cp cust2 Extra

They can be copied into any other subdirectory by specifying the 'complete path'

An 'ls' command on 'Customers' and 'Extra' shows the files just copied

A file with Customer details (Name, Address, Phone and Backpack type) has been created using the GUI with the name 'CustDetails.txt'. It can also be done using the command 'vi CustDetails.txt'

The details as seen on the GUI is shown below

The file 'CustDetails.txt' can be displayed on the Command Line using the command 'cat CustDetails.txt' as shown below......

Need Help Writing Your Essay?