You Asked: What Is Cd Command in Linux?
Contents Type. Command. the Cd Command, Also Known as Chdir (Change Directory), Is a Command-Line Shell Command Used to Change the Current Working Directory in...
Contents
Type. Command. The cd command, also known as chdir (change directory), is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files.
How do I use the CD command?
Some useful hints for using the cd command:
- To navigate to your home directory, use “cd” or “cd ~”
- To navigate up one directory level, use “cd ..”
- To navigate to the previous directory (or back), use “cd -“
- To navigate into the root directory, use “cd /”
Must Read
What is CD command in UNIX with examples?
cd command in linux known as change directory command. It is used to change current working directory. In the above example, we have checked number of directories in our home directory and moved inside the Documents directory by using cd Documents command.