Preview

Linux Directory Log

Satisfactory Essays
Open Document
Open Document
472 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linux Directory Log
University of Phoenix Material

Linux® Directory Log

To: David Horvath
From: Crystal Jenkins
Date: <(02/28/8014)>

Directions: As you complete each of the following steps, keep track of what occurs at each point, including what you type, the output given, and if you experience any errors. Record the occurrences in the following matrix.

1. Open a terminal.

Gain access to terminal from the redhat screen

[student@bsit_rh61 ~]$

2. Create a new group called mygroup. Hint: /usr/sbin/groupadd.

Create a new group groupadd mygroup

[student@bsit_rh61 sbin]$ sudo groupadd -g 001 mygroup [sudo] password for student: groupadd: GID '1' already exists [student@bsit_rh61 sbin]$ sudo groupadd -g 002 mygroup groupadd: GID '2' already exists [student@bsit_rh61 sbin]$ sudo groupadd -g 2012 mygroup

3. Create a new folder and name it your first name.

mkdir firstname

[student@bsit_rh61 sbin]$ mkdir crystal mkdir: cannot create directory `name': Permission denied [student@bsit_rh61 sbin]$ sudo mkdir crystal [student@bsit_rh61 sbin]$ ^C [student@bsit_rh61 sbin]$

4. Get a directory listing of the home folder using the long listing format.

cd; ls -l

[student@bsit_rh61 sbin]$ ls /home student student1 tmp [student@bsit_rh61 sbin]$

5. Modify the permissions on your new folder to set read, write, and execute permissions for the user and group.

chmod 770 firstname

[student@bsit_rh61sbin]$ chmod a+rwx /home chmod: changing permissions of `/home': Operation not permitted [student@bsit_rh61 sbin]$ sudo chmod a+rwx /home [sudo] password for student: [student@bsit_rh61 sbin]$

6. Get a directory listing of the new folder using the long listing and human readable format. (ls –lh)

ls -lh firstname/

7. Use Gedit or VI to create two files (myfile1.txt and myfile2.txt) and save them in the new folder. Add a paragraph of your own liking to each file.

vi myfile1.txt (after, press Esc, press ':' ,

You May Also Find These Documents Helpful