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

OS system command

The document provides a comprehensive list of commands for managing system information, date and time, navigating drives and directories, creating and managing directories, and handling files in a Windows environment. It includes commands for displaying system details, changing directories, creating and deleting files and folders, and other miscellaneous operations. Each command is accompanied by a brief description of its function.

Uploaded by

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

OS system command

The document provides a comprehensive list of commands for managing system information, date and time, navigating drives and directories, creating and managing directories, and handling files in a Windows environment. It includes commands for displaying system details, changing directories, creating and deleting files and folders, and other miscellaneous operations. Each command is accompanied by a brief description of its function.

Uploaded by

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

System Information & OS Details

• systeminfo → Displays detailed system information.


• ver → Shows the Windows OS version.

Date & Time Commands

• date → Shows or sets the current date.


• date /t → Displays the current date without prompting for a change.
• time → Shows or sets the current time.
• time /t → Displays the current time without prompting for a change.

Navigating Drives & Directories

• drivename: → Switches to the specified drive (e.g., C: or D:).


• dir → Lists the files and directories in the current location.
• cd foldername → Moves into the specified folder.
• cd.. → Moves back to the previous directory.

Creating & Managing Directories

• mkdir foldername → Creates a new folder.


• cd foldername → Moves into the specified folder.
• rmdir foldername /s /q → Deletes a folder and all its contents (use /s for
subdirectories and /q to suppress confirmation).

Creating, Viewing & Managing Files

• type nul > filename → Creates an empty file.


• notepad filename → Opens a file in Notepad for editing.
• type filename → Displays the content of a file.
• ren oldfilename newfilename → Renames a file.
• copy firstfilename secondfilename → Copies the content of one file to another.
• move filename foldername → Moves a file to a specific folder.
• del filename → Deletes a specific file.

Deleting Files & Folders

• del foldername\*.* /q → Deletes all files inside a folder but not the folder itself.
• rmdir foldername /s /q → Deletes the folder and all its contents permanently.

Miscellaneous

• cls → Clears the screen.

You might also like