
In this example, /home/gaurav/snap/htop/1332 is the current working directory path. : This command allows you to change your current working directory to the parent directory one level above your present directory.Įxample: :~/snap/htop/1332$ pwd Now, we are back to the home directory ‘/home/gaurav’. I am currently in the directory named apache.


Let us look at the basic syntax of the cd command. Knowing more about the cd commandĬd command is a useful utility for all the frequent command-line users and also who are required to manage GUI-less servers. In this brief tutorial, you will get all the basic and useful insights into the cd command-line utility. Just put the right path in the command and you will be placed in that directory by cd. cd stands for ‘change directory’ which itself explains its use and purpose.Ĭd allows you to easily change your current directory to whichever directory you wish to move. Some commands in Linux are so frequently used that we often overlook the significance of the commands and the details about them get missed. An easy way to change directories in Linux from the terminal
