Introduction to CMD

dir

Lists the files and folders in the specified directory.

C:\Users\user>dir 
Volume in drive C has no label. 
Volume Serial Number is AE5B-68D3 

Directory of C:\Users\user

03/18/2024  07:14 PM    <DIR>          .
03/18/2024  07:14 PM    <DIR>          ..
03/15/2024  11:30 PM    <DIR>          3D Objects
03/15/2024  11:30 PM    <DIR>          Contacts
03/18/2024  09:34 AM    <DIR>          Desktop
03/15/2024  11:30 PM    <DIR>          Documents
03/16/2024  09:55 AM    <DIR>          Downloads
03/15/2024  11:30 PM    <DIR>          Favorites
03/15/2024  11:30 PM    <DIR>          Links
03/15/2024  11:30 PM    <DIR>          Music
03/15/2024  11:30 PM    <DIR>          Pictures
03/15/2024  11:30 PM    <DIR>          Saved Games
03/15/2024  11:31 PM    <DIR>          Searches
03/15/2024  11:30 PM    <DIR>          Videos               
                0 File(s)              0 bytes              
                14 Dir(s)  20,309,082,112 bytes free

cd

Changes the current directory. A single dot represents the current directory, and a double dot represents the parent directory.

mkdir

Creates a new directory.

rmdir

Deletes an empty directory.

copy

Copies a file.

move

Moves or renames a file or directory.

del

Deletes a file.


Now that we have experienced a few simple commands with CMD, we can begin our introduction to PowerShell.

Last updated