Question: File / Folder / Permission Practice Create a Directory In your class folder on Elvis ( probably named UnixFiles ) , create a folder named

File/Folder/Permission Practice
Create a Directory
In your class folder on Elvis (probably named UnixFiles), create a
folder named FileTree2.(If you completed FileTree1, you can us
'cp -r' to copy that folder.
In FileTree2, create the following subtree of files and directories
Except for "-README.txt", all the files were created with the touch
command, and are empty.
All the folders (they have a " d " on the left) were created with mkdir
(See below for infore set using chmod
(See below for information about "0-README.txt".) Be sure you get the
names and permissions exact.
After you create a directory, you can cd into it to create any
subdirectories or files. To go back up, remember that every folder
has an entry named ".." which points to the parent.
The output below is from running "tree -anp" in the reference folder.
[drwxr-xr-x]
-[-rw-r-r-]]
[dr-xr-xr-x]
[drwxrwx-\cdots] baz a
\[-rw*-r-r--] ditto
-[drwx-xr-x] foo fonden
\r-rw-r-%
8 directories, 13 files
The "0-README.txt" file should be exactly 200 characters long,
which you can check by running this command:
ls -l 0-README.txt
The output should look something like this (the file size has been
bolded below):
rw-r--r--1 batman domain users 200 Jan 1314:530-README.txt
You can copy/paste this text to get your "0-README. txt" file started:
This is file 0-README.txt.
It was created by Bruce Wayne, username 'batman'.
It is supposed to be exactly 200 characters long
Here are extras: 123456789012345678901234567890123456789012345678
You should change it to have your name and username. You may
have to add/remove some of the extra characters at the bottom to
get the file to come out to exactly 200 characters. Be sure it ends
with a newline!
Test If Your Folders Are Correct
While inside the FileTree2 folder, run the command "/opt/cs/
UnixFiles/testprogs/test_tree2"
Loading configuration for FileTree2... done.
Current Folder: /home/batman/UnixFiles/FileTree2
0-README.txt file:
*******************
This is file 0-README.txt.
It was created by Bruce Wayne, username 'batman'
It is supposed to be exactly 200 characters long.
File size is correct: 200
Checking
Checking username: found 'batman' .- correct
Checking names and permissions of all files.
[drwxr-xr-x][-rw-r--r--]
{dr-xr-xr-x]
-[drwxrwx---] baz
[drwx-\cdots---] A
[drwx-----].dotdir
[drwxr-xr-x] foo [-rw-r---] dott
E[-rw--r-r--]
[drwx-\cdots-**]
8 directories, 13 filesIf the output with the file looks like this:
Loading configuration for FileTree2... done.
Current Folder: /home/batman/UnixFiles/FileTree2
0-README.txt file
This is file 0-READE**
It was created by Bruce Wayne, username 'batman'
It is supposed to be exactly 200 characters long
That means your "0-README.txt" file didn't end with a newline.
Submit a Screenshot
If the test_tree2 script reported something wrong, add/delete/move/
rename/edit files as needed, and then try again.
When the test_tree2 script reports that all is well, make a screenshot
and upload it to Canvas.
File / Folder / Permission Practice Create a

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 Programming Questions!