$ cd test Changes directory to the test folder
$ cd .. Moves up one directory
pwd
If you ever get lost while navigating around the file
system, you can use the pwd command to print out your
current working directory path. You can use it as follows:
$ pwd Print your current working directory
ls
Once you have navigated to a directory, you probably
want to know what is in it. The ls command gives you a
list of the current directory. If you execute it without any
parameters, it just displays whatever is in the directory.
It doesn’t show any hidden files (such as configuration
files). Anything that starts with a. does not show up in a
standard directory listing, and you need to use the -a flag
to see all files, including hidden files. By using the -l flag,
you can see permissions and the user and group that own
the file or directory. You can also use the wildcard to
list specific filename values; for example, to find any files
with test as a part of the name, you can use ls test*,
which would match both 1test and test1. You can use the
ls command as follows:
$ ls Lists files and directories in the current
working directory
$ ls -a Lists everything in the current directory,
including hidden files