-
Navigation Continued
cd
The ‘cd’ command is used to change the directory that you are currently in. To change from your current directory, to the parent directory we use the special “..” pointer discussed earlier.
In this example, I navigated from “Subdirectory” back to its parent “Tutorial”. If we recall paths from earlier, I could have also specified an absolute path - “cd ~/Tutorial” to achieve the same result. Furthermore, relative paths are also supported by cd.pwd
The ‘pwd’ commands prints your current working directory.
As we can see, it displays the absolute path of my current directory.
-
Other Useful Commands
There are a vast amount of useful commands on Linux, they vary by distribution and depend on the packages that you have installed. By default you should be able to access the aforementioned commands and the following:- cat
- Commonly used to print the contents of a file to the screen.
- echo
- Used to print characters to the screen, or to set or append contents of a file.
- touch
- Used to create files.
- rm
- Remove files and directories.
- grep
- Print lines that match a pattern.
- cat
-
This is a question so are you able to answer it?
- Next » Manual Pages