In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you about the basic commands commonly used in Dos. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Basic command
1 dir
No parameters: view the files and folders in the current directory.
/ s: view the files and folders of the current directory that have all its subdirectories.
/ a: view all files including implied files.
/ ah: only implicit files are displayed.
/ w: displays files and folders in a compact manner (5 files on one line).
/ p: displayed in paging mode (automatically paused after a page is displayed).
| | more: the previous symbol is the one above "\", which is called the redirect symbol, which means to put a
The result of the command is output to the parameters of another command. More is also a command, dir / w | more
The result is the same as that of dir / w / p.
Other parameters can be used: dir/? Check.
2 cd
Cd directory name: enter a specific directory. If you see a directory that reads: abcdef ghi
Enter: cdabcdef.ghi to enter the directory.
Cd\ go back to the root directory.
Cd.. Go back to the previous directory.
3 md rd
Md directory name: create a specific folder. (dos is used to calling directory, win is used to calling text
Folder. He he! )
Rd directory name: delete a specific folder.
4 cls
Clear the screen.
5 copy
Copy path\ filename path\ filename: copy a file to another place.
6 move
Move path\ file name path\ file name: move a file (that is, cut + copy) to another
A place.
7 del
Del filename: deletes a file.
Del *. *: delete all files in the current folder.
Del cannot delete a folder.
8 deltree
Delete the folder and all the subfolders under it as well as files, awesome. Don't misuse it.
9 format
Format x:: X represents the drive letter and formats a partition. Under dos, the fat file system format is used.
Yes, you will be asked if you want to convert to ntfs during windows2000 installation.
10 type
Type text file name: displays the contents of the text file.
11 edit
Actually, this is a Mini Program, used to edit text files.
12 ren
Ren old file name new file name: change the file name.
Common commands about the network
1 ping
Ping host ip or name: send 4 icmp packets to the target host to test whether the other host receives
To and respond, it is often used to test whether the ordinary network is unobstructed. But the difference of ping does not mean the net.
Unable to communicate, it is possible that the target host has a firewall and blocks the icmp response.
Ping-t: keep sending packets. Of course, they are too small to be called attacks. Some people write it themselves.
Some programs similar to the ping command keep sending large packets to block the target host.
The network connection.
2 net
The suggestion is to use net /? Get specific help information. There are really a lot of parameters, and there are parameters under the parameters.
Count. Commonly used: net view\\ host to view sharing, net start/stop service to start and stop
Stop service, courier service is not very popular with individuals.
3 netstat
Netstat host: view the current tcp/ip connection status of the host, such as the status of the port.
4 nbtstat
Nbtstat host: view the NetBIOS name used by the host.
5 tracert
Tracert host: see which paths you have taken machine by machine from yourself to the target. Such as:
Tracert www.ncie.gov.cn and then wait. You will see the routing festivals you pass through.
Point, generally larger routers, such as telecommunications backbone routes, except for ip, are marked in English
Of.
6 pathping
Pathping host: similar to tracert, but can display some messages that cannot be displayed by tracert
Interest. You can try it yourself.
7 ftp
I like to use ftp in character mode.) there is no need to install cuteftp.
8 telnet
Character-based remote login program is a remote login program that network personnel love to use very much. I've been doing a lot lately.
Used to debug the mail server.
9 ipconfig is very useful for network configuration and troubleshooting. Orders.
Displays the network interface status of the current machine without parameters.
/ all begins with detailed information.
/ release releases the current ip.
/ renew re-apply for ip.
/ flushdns flushes dns cache.
/ registerdns replant dns server to register yourself.
.
10 arp operates on the current arp cache.
-a displays the arp cache.
-d Delete a cache record.
-s the Tian family has a cache record.
11 nslookup is a sharp weapon to eliminate dns errors. Is an interactive tool. Try to figure out what dns does and how dns works before using it.
Xcopy is an external command, that is to say, a Mini Program. Sometimes it is not found on the floppy disk or on the hard disk. Fainted. Of course courage makes it easier to use than copy, and I like to add the / e parameter.
Smartdrv.exe loads the disk cache, and the parameter is the size of the cache, in kb.
For example: smartdrv 32768 is to load 32m cache.
The effect of caching is obvious when you install WIN2K! It takes about 3 hours to install WIN2K PRO without cache, and only 30 minutes after loading 8m cache.
The principle is to divide an area in the memory and constantly read the data on the hard disk into that cache area during installation, making full use of the memory.
AT serves the same purpose as task planning.
Here is how to use it, by entering AT /? at the command prompt. Get help.
The AT command schedules commands and programs to run at a specific date and time.
To use the AT command, the scheduling service must be already running.
~ ~
AT [\ computername] [[id] [/ DELETE] | / DELETE [/ YES]]
AT [\ computername] time [/ INTERACTIVE]
[/ EVERY:date [,...] | / NEXT:date [,...]] "command"
\\ computername specifies the remote computer. If you omit this parameter, you plan to run the command on the local computer.
\ 127.0.0.1 represents the local machine. It means the same thing as not adding this parameter.
The identification number assigned by id to the scheduled command.
Used to identify tasks, for example, you need to add several tasks, ID=1 represents the first one!
/ delete deletes a scheduled command. If id is omitted
All scheduled commands on the computer are deleted.
/ yes deletes all jobs when no further confirmation is required
The command is used together.
Time specifies when to run the command.
/ interactive allows the job to run with the user who logged in at that time
The desktop interacts.
/ every:date [,...] Run the command on a specified day every month or week.
If the date is omitted, it defaults to running on this day of each month.
/ next:date [,...] Specifies that the command runs on the next specified date (for example, next Thursday).
If the date is omitted, it defaults to running on this day of each month.
"command" the Windows NT command or batch program that is ready to run.
Thank you for reading! This is the end of this article on "what are the basic commands commonly used in Dos?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.