To move into another directory, you use the command
cdwith its name like this:netops@automation:~$ cd automation netops@automation:~/automation$
Figure 1 - cd Moves You Into a Directory
In the lab, move into
automation, then intobackups, and runpwdto get the flag.Answer the question below
Enter the flag you obtained.
To go back to the directory above, you use
cd ..like this:netops@automation:~/automation/backups$ cd .. netops@automation:~/automation$To go back to your home directory from anywhere, you use
cdalone:
Figure 2 - Two Ways to Move Back
In the lab, go back to the
automationdirectory and runpwdto get the flag.Answer the question below
Enter the flag you obtained.
There are two ways to write a path.
A relative path starts from your current directory.
An absolute path starts from the root directory/:
Figure 3 - A Relative Path and an Absolute Path
For example, to move into the directory
/var/log, you use its absolute path like this:netops@automation:~/automation$ cd /var/log netops@automation:/var/log$In the lab, you are in
/var/log.
Move intobackupswith one command, then runpwdto get the flag.Answer the question below
Enter the flag you obtained.