Embed
Email

Command Prompt (DOS) Summary

Document Sample
Command Prompt (DOS) Summary
Shared by: HC111124063444
Categories
Tags
Stats
views:
3
posted:
11/23/2011
language:
English
pages:
3
Command Prompt (DOS) Summary



Command Prompt Window

Start, All Programs, Accessories, Command Prompt; or Start, Run, cmd



Commands

help

cd (change directory)

dir (list files & folders in current directory / folder)



Examples

Move down one level in the folder hierarchy

cd folderName



Move up one level in the folder hierarchy (using double-dot operator)

cd ..



Move up two levels in the folder hierarchy (using double-dot operator)

cd ..\..



Move to a specific folder, starting at root

cd c:\FolderName



Move to the root directory

cd \



List files and folders in current directory

dir



List files and folders in current folder (using the dot operator)

dir .



List files and folders in parent folder (using double-dot operator)

dir ..



List files and folders in a subfolder

dir subFolderName



List files and folders in sister folder (using double-dot operator)

dir ..\sisterFolderName



List folders only (do not list files) in current folder

dir *.



List files and folders, pausing after each screenful of information

dir /p



List files and folders in the root directory

dir \



23-Nov-11

Command Prompt (DOS) Exercises

Write the command that will perform each operation.





1. Move to the Animals folder







2. Move down one level to the Birds folder







3. List the files and folders in Birds







4. From the Birds folder, list the files and folders in the Mammals folder







5. From Birds, move up to Animals







6. Move down to Mammals







7. Move down to Carnivores







8. From Carnivores, list the files and folders in the Cats sub-folder







9. Move down to Dogs







10. From Dogs, use a single command to move back to Animals







11. Return to the Dogs folder







12. From Dogs, list the files and folders in the Apes sub-folder







23-Nov-11

Command Prompt (DOS): Part II





Command Prompt Window

Start, Programs, Accessories, Command Prompt



Commands

help

cd (change directory / folder)

dir (list files & folders in current directory)

dir .\subFolder (list files & folders in subfolder)

dir /s (list files & folders in all subdirectories)

dir *. (list folders only in current directory)

dir /s *. (list folders & subfolders only)

dir /s *. > sample.txt (redirect output to a file)

type sample.txt (display the contents of a file)

mkdir subFolder (make a new subdirectory)

copy subfolder1 c:\subFolder2 (copy subfolder1 files to subfolder2)









23-Nov-11


Related docs
Other docs by HC111124063444
sub036
Views: 0  |  Downloads: 0
Youth Support
Views: 2  |  Downloads: 0
Sheet1
Views: 6  |  Downloads: 0
Sheet1
Views: 1  |  Downloads: 0
Bluebook 101 Statutes
Views: 1  |  Downloads: 0
Statutes
Views: 1  |  Downloads: 0
M?U D? THO? �I?U L? C�NG TY C? PH?N ***
Views: 2  |  Downloads: 0
OSWALD SPENGLER
Views: 19  |  Downloads: 0
control supervision
Views: 21  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!