Comments on Linux cd Command Tutorial for Beginners (8 Examples)

The cd command is one of the most frequently used commands in Linux, as it's used to change directories (one of the most basic command line operations). While most users restrict themselves to the basic usage of cd, there are many other features the tool provides.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Pete

cd  with no argument is the same as 'cd ~' in all shells I've used.  Been that way for 20+ yrs.  Save 2 characters, use 'cd<enter>'

A little coverage of cdpath would be nice too. It is very helpful as a character saving technique.

By: nonya

cd .. takes you to home directory. Many of these were the same in DOS 3.3 and up.

By: Petar

Just to add some basic use to the good examples before:

cd /    - Switch to root directory

cd ..   - Switch to one step prevous directory in the tree

cd some* - Switch to directory that starts with "some" and anything else afterwards