0% found this document useful (0 votes)
50 views

CMD Commands

This document provides commands and descriptions to navigate directories and manage files on a Windows system using the command line. It begins by showing the current directory of C:\Users\123. It then lists several commands - like systeminfo, vol, ver, date, time, and cls - and briefly describes what they do. It shows changing to the V:\ drive and running dir to list files. The rest summarizes commands like cd to change directories, mkdir to create directories, rename to rename files, and notepad to open a file in Notepad.

Uploaded by

Avirup Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

CMD Commands

This document provides commands and descriptions to navigate directories and manage files on a Windows system using the command line. It begins by showing the current directory of C:\Users\123. It then lists several commands - like systeminfo, vol, ver, date, time, and cls - and briefly describes what they do. It shows changing to the V:\ drive and running dir to list files. The rest summarizes commands like cd to change directories, mkdir to create directories, rename to rename files, and notepad to open a file in Notepad.

Uploaded by

Avirup Ray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

C:\Users\123> iam in c drive,Users folder,123 folder

systeminfo :- displays machine specific properties and configurations


vol :- displays disk volume label and serial number
ver :- displays the windows version
date:-displays or sets the date
date/t:- only displays the date
time:- diplays or sets the time
time/t:-only displays the time
cls:-clears the screen

C:\Users\123> V: we have changed the drive from C drive to V drive….


V:\>

dir:- displays a list of files and subdirectories in a directory

COMMAND DESCRIPTION
cd dirname Moves into "dirname" directory if available within current directory

cd.. Moves back by directory….Linux requires space between cd and the two periods
cd../.. Moves back by 2 directories….will move back by 3 directories if cd../../.. and so on
cd/ or cd\ Moves back to root directory
cd ~ Moves back to home directory

COMMAND DESCRIPTION
mkdir dirname Here we are creating a new directory "dirname" in the current directory
md dir1 dir2 dir3 Creating multiple new directories in the current directory by using md
command
md "dir1" "dir2" "dir3" You can create multiple directories in the current directory by using md
command
md F:\dirname or To make an directory in another drive without actually moving into that
mkdir F:\dirname drive
md ..\dirname To create directory in the parent directory without first moving into that
mkdir ..\dirname directory
md onedrive\dirname To create a subdirectory in a different directory without actually moving
mkdir onedrive\dirname into it….here we are creating "dirname" directory within "onedrive"
directory

COMMAND (rename or ren command) DESCRIPTION


rename pathoffile newname Eg.rename C:\Users\123\test2 test……so the name of file
"test2" will be changed to "test"
rename oldname newname Renames the oldname of the file with the newname
rename *.txt *.css Replaces all files with ".txt" extension to files with ".css"
extension
rename "oldname" "newname" Renames the oldname of the file with the newname
rename * name* Renames all files so that their first 4 characters are changed
to "name"…..for example if file name was "Muhammad.txt" it
would be changed to "namemmad.txt"…….When you are
dealing with a file or directory with a space,it must be
surrounded by quotes….

notepad hope.txt :- Running the command would edit the hope.txt file if it exists
or create a new file called hope.txt in the notepad
Once the file is saved it will be created in your current directory

You might also like