CD
Example:
CD <sub-directory>
Use
CD ..
to go up a directory.
You can also enter a full path to go straight to that directory. Eg:
CD windows/system/etc
CD /
Change Directory..
To change to the /usr directory using an absolute pathname, you would use the command cd /usr. This command specifies the full path to the usr directory from the root of the filesystem. Ensure you have the necessary permissions to access that directory.
cd dirReplace "dir" with the name of your directory.
change directory
You change the current working path directory in Linux by issuing the cd command, followed by the directory you want to change to. For example:cd /dev/inputwould take me to the that directory.
CD dev CD ~
CD stands for "change directory". For instance, if you are in the directory of c:\files\ and you want to navigate to a folder within the "files" directory called "documents", you can type "cd documents" to change the directory you are in. Once you've done that you will be at c:\files\documents\. Inversely you can use "cd.." to go back to the parent directory "files".
chdir
PWD Although pwd will tell you where you are it won't change back to your home directory. For that, use the 'cd' command without any parameters
To execute the touch command in a directory, you need write permission on that directory. This permission allows you to create or modify files within the directory. Additionally, you also need execute permission on the directory itself to access it and perform operations within it. Without these permissions, you won't be able to create or change files using the touch command.
Because CD is short for "Change Directory"