Getting
Started with the Basics
7
line interface, the structure is entirely text based, and navigating the file-
system means using some commands.
Changing Directories with cd
To change directories from the terminal, use the
change directory command,
cd
. For example, here’s
how to change to the /etc directory used to store con-
figuration files:
kali >
cd /etc
kali:/etc >
The prompt changes to
root@kali:/etc
, indicating that we’re in the
/etc
directory. We can confirm this by entering
pwd
:
kali:/etc >
pwd
/etc
To move up one level in the file structure (toward
the root of the file
structure, or
/), we use
cd
followed by double dots (
..
), as shown here:
kali:/etc >