![]() Click outside the frame to navigate this page to scroll up/down between the embedded Web pages. ![]() Quick links: CD Command Wikipedia Embedded ResourcesĬlick inside the frame to navigate the embedded Web page. To help reinforce the concepts presented in this section. To maximize your learning, please visit these Web sites and review their content Key terms: CD, parent, path, root, working directory Thinking: Why be able to move to the root in one command? (move to the root from the previous step - relative) The "CD \" command will change from the current working directory to the root directory no matter what your location is currently on the tree.ĬD \windows (move to the windows directory - absolute)ĬD \ (move to the root since starts with \ - absolute)ĬD \windows\system32 (move to the system32 directory - absolute)ĬD. If the you are in the root directory, the system will keep you at the root. " command will change from the current working directory to a directory above it assuming there is a directory. For example, if you were at the root of the C: drive a command of "CD windows\system32" would then make the system32 folder the default working folder. You can transverse several directories at one time if you know the correct set of paths sometimes referred to as the "legal path". The "CD path" command will change from the current working directory to a directory below it assuming there is a directory by that name. If cd is executed without arguments in Unix, the user is returned to the home directory. For example, if cd is executed without arguments in DOS, OS/2, or Windows, the current working directory is displayed. Note that executing cd from the command line with no arguments has different effects in different operating systems. Modern versions of Windows simulate this behavior for backwards compatibility under cmd.exe. C: alternatively, cd with the /d switch may be used to change the working drive and that drive's working directory in one step. Typing the drive letter as a command on its own changes the working drive, e.g. ![]() The cd command can be used to change the working directory of the working drive or another lettered drive. Learning objective: Explain the use of the CD commandĭOS maintains separate working directories for each lettered drive, and also has the concept of a current working drive. For example, if you are in the C:\Windows\COMMAND> directory and type the above command it would take you to C:\Windows> directory.Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Index Goes to the highest level (the root) of the drive. Which is what you must type if extensions were disabled. Is the same as: cd "\winnt\profiles\username\programs\start menu" For example: chdir \winnt\profiles\username\programs\start menu ![]() So CD C:\TEMP would set the current directory to C:\Temp if that is the case on disk.ĬHDIR command does not treat spaces as delimiters, to CD into a subdirectory name containing a space without surrounding the name with quotes. The current directory string is converted to use the same case as the on-disk names. If Command Extensions are enabled CHDIR changes as follows: Use the /D switch to change current drive in addition to changing current directory for a drive. Type CD without parameters to display the current drive and directory. Type CD drive: to display the current directory in the specified drive. Specifies that you want to change to the parent directory. CD is an internal command available in the following Microsoft operating systems:Ĭd syntax Windows XP and later syntax CHDIR
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |