Short bio: Computer Scientist, FOSS supporter (read more)
Tux Machines (TM)-specific
This article is reprinted from The Official Ubuntu Book, 2nd Edition, by Benjamin Mako Hill and Jono Bacon, with permission of publisher Prentice Hall Professional. While instructions are specific for Ubuntu Linux, most commands will work with other Linux distributions.
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.
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.
Manipulating Files and Folders
You can manipulate files and folders by using the following commands: