answersLogoWhite

0


Best Answer

Use the following command:

cd ..

The ".." indicates the parent of the current directory

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How will you CD to the parent directory of current directory in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you change path in Linux?

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.


What Linux commands make your home directory the working directory?

the command 'cd ~' will get you there .


How do you change from your home directory in Linux to q2-jan14 directory?

cd /q2-jan14


What does CD means in Linux os?

If by "CD" you mean the linux terminal command "cd", it stands for "change directory". It allows you to move from one directory to another. It's basically the same as Window's cd command.cd / will take you to the very first directory, which is the root directory. (Do not confuse this with /root directory)cd .. will take you one directory upcd ~ will take you to your (currently logged in user's) home directory, which is, (/home/)cd - will take you back to where you were before you change directories.


What is the effect of entering the command CD in Linux?

By itself, cd will do nothing. When it is followed by the name or path of a folder, for example cd /home/user, it will change the current working directory to the one specified.


How do you Locate the Linux root partition?

The root directory is indicated by a "/'. You can navigate to the root directory using the command 'cd /'.


What does the command CD do?

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".


What command in Linux do you use to return to the root directory?

"cd /" will move the user to the root directory, assuming the user has permission to move to this directory, and the user has not been chroot'ed to a specific directory (which will cause "cd /" to move the user to that named directory, instead of the system's root).


What command do you use to change the directory in DOS?

cd 'cd dirname' (without the quotes) takes you to a directory named dirname if it exists in your current location. 'cd..' takes you up one position to the parent directory to the one you're in now. 'cd\' takes you all the way back to the root directory of the current drive (like c . You can navigate a complete path in one command. For instance, if you wanted to get to the directory named files that was in one named main which was in one named top, you could type: cd\top\main\files then if you typed: cd.. you would end up in the 'main' subdirectory.


What is Linux command CD?

change directory. cd /home/user/ wil take you to the home folder of that user. With cd .. you go down a folder, so if you're in /home/user and type "cd .." you wil then be in the /home/ directory.


What is the command that will change the current default directory to the root directory in Unix?

CD /


To move to the root directory use the command?

For Unix/Linux, use the command 'cd /' For Windows, you can also use the same command or 'cd \'