- Appendix A. Welcome to the Command Line
- Starting Up the Terminal
- Moving Around the Filesystem
- Manipulating Files and Folders
- System Information Commands
- Searching and Editing Text Files
- Dealing with Users and Groups
- Getting Help on the Command Line
- Searching for Man Files
- Using Wildcards
- Executing Multiple Commands
- Moving to More Advanced Uses of the Command Line
Moving Around the Filesystem
Commands for moving around the filesystem include the following.
- pwd: The pwd command allows you to know the directory in which you're located (pwd stands for "print working directory"). For example, pwd in the desktop directory will show ~/Desktop. Note that the GNOME terminal also displays this information in the title bar of its window, as shown in Figure A-1.
cd: The cd command allows you to change directories. When you open a terminal, you will be in your home directory. To move around the filesystem, use cd.
- To navigate to your desktop directory, use cd ~/Desktop.
- To navigate into the root directory, use cd /.
- To navigate to your home directory, use cd.
- To navigate up one directory level, use cd ...
- To navigate to the previous directory (or back), use cd -.
- To navigate through multiple levels of directories at once, use cd/var/www, for example, which will take you directly to the /www subdirectory of /var.