If the working directory is /home/max with a subdirectory named literature, give three sets of commands you can use to create a subdirectory named classics under literature. Also give several sets of commands you can use to remove the classics directory and its contents.
What will be an ideal response?
The first command line uses a relative pathname whereas the second and
third use absolute pathname to create the classics directory under the liter-
ature directory. Both commands are executed from Max’s home directory
(although it does not matter where you execute the second command from):
$ mkdir literature/classics
$ mkdir /home/max/literature/classics$ mkdir
~/max/literature/classics
Next a cd command changes the working directory to literature. From
literature, a simple pathname or an absolute pathname can create the
classics directory:
$ cd literature
$ mkdir classics
$ mkdir /home/max/literature/classics
Before you remove a file, use pwd to check that the working directory is
what you think it is and, if you plan to use an ambiguous file reference, use
that file reference to list the files you will delete. This procedure helps ensure
you do not delete files by mistake. Next rm removes ordinary files, and rmdir
removes the empty (except for the two standard directory entries . and ..)
directory file:
$ pwd
/home/max
$ ls literature/classics/*
...
$ rm literature/classics/*
$ rmdir literature/classics
You can also perform this task either of these ways:
$ cd literature
$ ls classics
...
$ rm classics/*
$ rmdir classics
$ cd classics
$ ls
...
$ rm *
$ cd ..
$ rmdir classics
You might also like to view...
To make sure that a user can only pick from an item on the list in a Combo Box, the ________ to List property must be enabled
Fill in the blank(s) with correct word
The _____ style rule is described by therule.typeproperty if it returns an integer value of 6.
A. @charset B. @import C. @media D. @page
Which of the following ports MUST be open to connect to a PC using RDP?
A. 21 B. 80 C. 443 D. 3389
Changes in case, font, indentation, and centering are format elements used to help the reader of a document understand its structure.
Answer the following statement true (T) or false (F)