answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What command do you use to change the directory in DOS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Performing Arts

What command is used to display your current working directory?

In my Ubuntu terminal, I would type one of these two example commands (there are other commands, but I tend to mainly use the two below).cd change to home-directorypwd means display the path of the current directoryNote: pwd stands for print working directory.


What is a command-driven operating system?

Essentially, all computer operating systems (OS) are command driven. A command is digital "to do" list issued to the OS brain (kernel) that commands it to utilize the computer hardware and/or software to accomplish something. In today's operating systems, like Windows 7 or Snow Leopard, you can use your mouse or keyboard to kick off a command in the background. For instance, clicking on "New Folder" in Windows Explorer is a command to create a new folder. Most often though, when people refer to a "Command-Driven" OS, they mean something like DOS or Unix, where you must type in an actual keyword command into the interface. Each OS has a set of commands that it recognizes, like the command "del" is a command to "delete" in DOS. With the invention of visual user interfaces (sometimes referred to as GUIs) the need for entering OS specific text commands has become obsolete, now we mostly use application menus and mouse clicks.


Difference between dos and dos shell?

MS-DOS ended with Windows NT. It used file command.com to interpret all DOS commands. Win 2000, XP, Vista use a DOS Shell which emulates DOS but is not really DOS.


What is a command driven operating system that does not use a GUI?

Recovery Console


How to open ms dos in notepad?

You can't technically open MS DOS in notepad, but you can make files that MS DOS can use in notepad. For instance, you can create SYS, INI, BAT and others in notepad to make the computer do something, but MS DOS it self is dead. DOS will never die because of what it stands for. "Disk Operating System" You need a disk to run anything. Your hard drive is nothing more than a bunch of high tech cds spinning your files around.

Related questions

Which MS-DOS command is used to delete a directory and its sub directories in one pass?

To delete directory and sub directory in single command, use "deltree" command..


DOS command to create and move to the newly created directory?

You can use "xcopy" command. mkdir - to create a directory. move - to move one or more files in a new location.


How delete commandcom from dos?

In DOS, you can delete files only by delete command. Use delete command as follows:C:\> delete For example: delete rajesh and then press enter..To remove a directory (Folder) use following command:C:\> RD For example: rd documents and then press enter..Note: Please make sure that directory is empty. You can only delete empty directory with rd command..


What command to change directory?

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


What is the difference between unix command and dos command?

They are different languages, so you need to use a different word with different syntax to do the same thing. For example, to display the contents of the current directory, the command in MS-DOS is dir, but in UNIX it's ls.


Why do you think most versions of linus and windows use the CD command to change directories?

cd stands for change directory. It's the most obvious command to use.


Why does Unix and Windows use the CD command line to change directories?

Because CD is short for "Change Directory"


What command can you use to change the current working directory to the directory where the modules for the running kernel are stored?

cd /lib/modules/$(uname -r)


In dos what is the function of a parameter?

A parameter is a command-line switch or an argument to a function. We use parameters to specify the input variables for the commands or functions we invoke. For instance, when we want to list the contents of a directory or folder, we have to pass the directory or folder path to the appropriate command so that it knows which directory or folder to process.


What command will return you to your home directory regardless of where you are in the file system?

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


How do you create a directory in MS-DOS?

To go back to the root (beginning) directory: cd\ To go to the directory above you: cd.. To go a directory below you: cd directoryname Of course, after you type the command, you have to hit the enter key.


What do you use the CHGRP command for?

The CHGRP command is used to change the ownership of a specific file or directory. More information about this command can be found on the IBM Help Index website.