Paper Example Doctorate 631 words

Linux Commands for \'Outdoor Adventures\'

Last reviewed: March 4, 2011 ~4 min read

Linux Commands for 'Outdoor Adventures'

The Linux directory structure for the 'Outdoor Adventures' here consists of a main directory divided into relevant subdirectories.

Company Main Directory -- OutdoorAdventures

Subdirectory -- Accountant (stores information about a new accountant)

Subdirectories inside 'Accountant'

ProgramFiles (the program files for the accounting system)

DataFiles (Data files for accounts receivable, accounts payable and general ledger)

BusinessReports (Information about any Business Reports generated)

RichTextFiles (Information included in Rich Text Files)

These were created in the Command Line using the 'mkdir'

The 'ls' command shows all the directories present/created.

The directories as seen from the Graphical User Interface (GUI) is shown below

Permissions for files/directories can be assigned using the GUI as well.

The main directory 'OutdoorAdventures' has been granted access only by the company owner (current Ubuntu live session user) and the accountant (who is a part of the group).

Right Clicking on the directory, selecting 'properties' followed by 'permissions' brings us to the main screen to choose the level of access. Drop down menus can be seen for 'folder access' and 'file access' against all 3 -- owner, group and other. 'Other' implies any third party user who is not supposed to get any access rights to the company files.

The 'owner' is assigned 'create and delete files' permission for folder access and 'read and write' permission for file access. The same permissions are granted for the 'group' (Accountant). External users ('Others') are assigned 'none' for both cases. This can be seen below:

Additional subdirectories can be created using the 'mkdir'. The subdirectory 'Customers' has been created inside 'OutdoorAdventures' by going inside it first (using 'cd OutdoorAdventures' which changes the current working directory to what is specified).

This is followed by 'mkdir Customers' which creates the subdirectory inside it.

Permissions to any new subdirectories created can be similarly assigned using the GUI as before.

Owner (Company Owner) -- Create and delete files (Folder Access), Read and Write (File Access)

Group (Accountant) - Create and delete files (Folder Access), Read and Write (File Access)

Others - None (Folder Access), None (File Access). 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.

You’re 81% through this paper. Sign up to read the full paper.

Sign Up Now — Instant Access Already a member? Log in
130,000+ paper examples AI writing assistant Citation generator Cancel anytime
Cite This Paper
PaperDue. (2011). Linux Commands for \'Outdoor Adventures\'. PaperDue. https://www.paperdue.com/essay/linux-commands-for-outdoor-adventures-4353

Always verify citation format against your institution’s current style guide requirements.