In this assignment, you will create a file and directory structure, record it using a listing command and output redirection, and then change the structure and record its change with another listing command.a
filefest
, create set
of directories and files as shown in the following diagram. Use the Unix command
mkdir
to create a directory. Use whatever means
you would like to make the files, such as output redirection or the Unix touch
command. The contents of the files can be anything (or empty), but they must
be plain text files, and you must use the exact names as shown in the
diagram.filefest
: pigstage
,
northgate
, and rockstage
. In
pigstage
, there are two files:
kelly
and nicole
. In
northgate
, there is one file: john
. In rockstage
, there are two files
--deni
and kyle
--and one directory, bleachers
. In
bleachers
, there is one file, kevin
.
In the filefest directory, look at the directory structure you have created byr
using the Unix list command ls -lR
.
Here is an example of how it looked. The pwd
command at the start shows the present working directory, then follows the
output of the ls -lR
command.
----------------------------------------------------------------------------- $ pwd /home/siegfried/public_html/cs275/stuff $ ls -lR .: total 3 drwx------ 2 johnd users 4096 Mar 6 06:34 northgate drwx------ 2 johnd users 4096 Mar 6 06:33 pigstage drwx------ 3 johnd users 4096 Mar 6 06:34 rockstage ./northgate: total 0 -rw------- 1 johnd users 0 Mar 6 06:34 john ./pigstage: total 0 -rw------- 1 johnd users 0 Mar 6 06:33 kelly -rw------- 1 johnd users 0 Mar 6 06:33 nicole ./rockstage: total 1 drwx------ 2 johnd users 4096 Mar 6 06:34 bleachers -rw------- 1 johnd users 0 Mar 6 06:34 deni -rw------- 1 johnd users 0 Mar 6 06:34 kyle ./rockstage/bleachers: total 0 -rw------- 1 johnd users 0 Mar 6 06:34 kevin $ -------------------------------------------------------------------------
filefest
directory, do the
ls -lR
command again, but this time
redirect the output of this ls -lR
command to a
file called listing
.pigstage
(kelly
and
nicole
), rockstage
(deni
and kyle
),
and
bleachers
(kevin
) to
northgate
.pigstage
,
rockstage
, and
bleachers
.filefest
directory, use the
ls -lR
again to look at the new file structure
you have.filefest
directory, append the
output of this ls -lR
command to the file
listing.