$ ls
/home/usern
ame
Lists everything in the /home/username
directory
$ ls -l Lists permissions and user and group
ownership
$ ls -F Displays files and directories and denotes
which are which
mkdir
To create a directory, you use the mkdir command. If
you are in your home directory or in another directory
where you have the appropriate permissions, you can use
this command without sudo. You can use the mkdir
command as follows:
$ mkdir test Makes a new directory called test in the
current working directory if you have
permission
$ mkdir
/home/usern
ame/test
Makes a new directory called test at
/home/username/test
File Management
Working with files is easy with BASH. There are just a
few commands that you will use often, and they are
described in the following sections.
cp
The purpose of the cp command is to copy a file or folder
someplace. It does not delete the source file but instead
makes an identical duplicate. When editing configuration
files or making changes that you may want to roll back,
you can use the cp command to create a copy as a sort of