SitePages

Wednesday, April 19, 2023

cmd command that you need to remember

Despite being an old operating system, DOS (Disk Operating System) is still used by many computer users and system administrators to perform various tasks. Here are some DOS commands that you need to remember to perform different tasks:

• dir: This command lists all the files and directories present in the current directory.

• cd: This command allows you to change the current directory to a specified directory.

• md: This command creates a new directory in the current directory.

• rd: This command removes an empty directory from the current directory.

• copy: This command allows you to copy one or more files from one location to another.

• del: This command deletes one or more files from the current directory.

• format: This command formats a specified drive, such as a floppy disk or hard drive.

• type: This command displays the contents of a text file on the screen.

• tree: This command displays the directory structure of the current directory and any subdirectories.

• chkdsk: This command checks the file system for errors and fixes them if any are found.

• attrib: This command allows you to view or modify the attributes of a file or directory, such as read-only or hidden.

• netstat: This command displays the current network connections, including the IP addresses and ports being used.

• ping: This command checks the connectivity between two devices on a network by sending an ICMP packet.

• ipconfig: This command displays the current IP configuration of the computer, including the IP address, subnet mask, and default gateway.

• shutdown: This command allows you to shut down or restart the computer from the command prompt.

In conclusion, knowing some basic DOS commands can be very useful, especially if you work with older systems or need to perform tasks quickly and efficiently. These commands can help you perform tasks such as managing files, checking the network connection, and shutting down the computer from the command line.