1. Dir: Displays subdirectories and files under a directory.
Format: dir [x:] [Path] [filename][parameter]
Parameter explanation:
/a displays all folders and files.
/p pagination display.
/w Displays the list in a wide format.
/q Displays file ownership information.
2. Tree: Displays the directory structure in the form of trees.
Format: Tree [X:][path][parameter]
Parameter explanation:
/a specifies that the tree displays the rows of the linked subdirectory using characters rather than graphic characters
/F Displays the file names in each directory
3. CD: Enter or exit the directory
Format: CD [[/d][x:][path][.]]
Parameter explanation:
.. Go to the top level directory
/d quickly change the current directory
/? Display Help information in the command prompt
\ go back to the root directory
4. MD: Create a directory
Format: MD [X:]path
5. RD: Delete subdirectories from a specified location
Format: RD [x:]path[/s][/q]
Parameter explanation:
/s deletes the specified directory and all directories and files for the specified directory.
/q Delete the directory without confirmation.
6. Path: Set the search path for the executable file
Format: path [[%path%][x:]path[;] ......]
; Separating directories in the command path
%path% Specifies that Windows XP adds a command path to an existing catalog set listed in the PATH environment variable.
7. Xcpoy: Copy all folders and files under directories and directories to the specified directory location.
Format: xcopy source [destination][/s][/e][/v]
Parameter explanation:
/s copies non-empty files.
/V validates each file when it is written to the destination file.
/E to copy even if the subdirectory is empty
8. ren: Renaming a directory
Format: ren [x:][path]filename1 filename2
Parameter explanation:
[x:] [PATH]FILENAME1 Specifies the location and name of the folder or file to be renamed
Filename2 new file name specified when renaming files
MAC OS x Common Commands Summary 2