In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces what DOS commands are commonly used, the article is very detailed, has a certain reference value, interested friends must read it!
There are several ways to use DOS, but you don't know where DOS runs.
1. Start menu-programs-attachments-command prompt
two。 Start menu-run-issue the command CMD
1. Commonly used DOS commands
(1) cd.. Cd.. Go back to the next level directory
Cd\ cd\ means to go back to the root directory
The cd folder name cd windows goes to the WINDOWS directory
(2) md folder name md win create a folder named win
(3) rd folder name rd win Delete the folder named win
(provided there are no files in the win)
(4) File destination path copy C:\ 1\ mima.txt C:\ 2\ copy files under the copy path
(5) File del C:\ 1\ 3\ TCP.txt under the target path of del
Del c:\ 1 delete c disk 1 directory all files see mima.txt has been deleted but 3 this folder has not been deleted
It's just that the file will not be deleted in ghost.
What's in the other folders.
(6) dir folder name or drive letter dir c:\ windows to view the directory files in disk C windows
│ dir/W: widescreen display, showing 5 file names in a row, without displaying modification time, file size and other information; │
│ dir/S: displays all files in the current directory and its subdirectories, │
│ dir/a views all files, including hidden files dir c:\ windows / a │
│ dir/p page view here is very practical, we must try │
(in order to save everyone's time, I won't introduce what's in the box. Try it yourself.)
(7) format drive letter format hard drive (I won't demonstrate this. You asked me why, Han. I love my hard drive ^ _ ^)
(8) rename ren file name ren 1.bat 2.bat rename 1.bat to 2.bat I haven't created these files yet, now let's create them, OK
(9) type file name to view the contents of the file (generally used to view bat or txt files)
(10) cls screen removal (not very useful)
Second, common network DOS commands
(11) I don't know why fport checks the system port and the programs running on the port. Let me check the usage and send it to the forum. I'm sorry.
(12) netstat-an to view all connections to native IP
(13) ipconfig / all to view all connections to native IP
(14) telnet IP port is connected to a port of the other machine.
(15) net user to view local users
Net user username password / add create a user
Net user username / del Delete a user
(16) net localgroup administrators username / add adds the user to the administrator
Net localgroup administrators username / del removes the user from the administrators group
There's no need to demonstrate this, just like the one above.
III. Batch files
Batch processing. Is a file that processes multiple commands in batches.
Suffix is bat
You can edit multiple dos commands of your own. He will run automatically in order.
(17) how to create batch files under the DOS window of the other machine?
Copy con file name. bat
C:\ > cd 2
C:\ 2 > dir, that's the order I just gave.
(the ellipsis represents the order)
CTRL+Z save exit
Such a bat file will be ready.
IV. Other orders
(18) mem-- to see how much memory is in your computer and how much memory is being used
(19) time-- displays and sets the system time of DOS Enter the new time: it means to set the time. We can skip it by pressing enter.
(20) the system date usage for date-- display and setting DOS is the same as the time command
(21) ver-- shows the version number of the running DOS system
The above is all the contents of this article "what are the Common DOS commands?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.