Start Linx Shell's first article today
Today describes how PWD and CDs are used.
The pwd means "Print working Directory", which displays the current location.
PWD also has other available parameters-L (uppercase),-p (uppercase)
-L is the same as the PWD showing the current user's location
-p Display the user's current physical location and PWD are the same
In fact, you can use PWD directly.
CD can simply think of directory switching
For example, currently on the/root/desktop, you can switch directly to the/ROOT/Desktop/tools folder location and the CD command under Windows similar
There are other different uses of CDs
CD back to the current user's host directory
Cd-back to previous working directory
Cd.. Back to the top level directory
Cd.. /.. Back to upper level directory
Cd/bin switch to the bin in the root directory
The CD bin switches to the current directory in the bin (bin can make any folder)
In addition, I am also the first time to learn Linux, it is inevitable that the directory structure is not understood, such as to enter the desktop directory under/root, because the language version of the English version of the desktop, the Chinese version of the table, often confused. So I like cd/root to go into the desktop under root
This summary concludes!
Linux Shell Learning Note two shell command line PWD CD