[windows command] Basic commands


The linux shell command
                                
copy (copy file command)                                   corresponding to the command under dos                                              
cp
basic use method                    
copy file 10.2.2.1/wm                          
cp file 10.2.2.1/wm
      description Copy the file to the wm directory of the host at the address above
                                

move (file move command)                              
mv
                                 
move 10.2.2.1/wm                            
mv file 10.2.2.1/wm
                                
moves the file to the relevant directory
                                 

dir (displays the current directory so the file)               
LS
                                 
CLS (clear screen)                                              
the Clear
                                 

exit (Exit the command line)                                   
exit
                                 
date (display and set the date)                          
date
                                 
del (delete the file)                                         
rm
                                 
echo (the content after this command will be displayed on the screen)     
echo
                                 
edit (edit the file with a text editor)                
gedit
                                 
fc      
diff file1 file2 (compare File content)                   
diff
                    
find word or phrase file.txt (Find a word or phrase in a text file)       
grep
                              
format A: (format floppy disk)                          
mke2fs or mformat /sbin/mke2fs /dev/fd0 (dev/fd0 is the same as in Linux : Equivalent drive)
                  
                              
md directory (create directory)                             
mkdir
                             
ren this.txt that.txt (rename file)           
mv
                              
time (display time)                                       
date
                              
mem (display used memory capacity)             
free
              
cd path name (relative path) (command to change the path)           
cd
             
chdir path name (absolute path)                                      
pwd

Guess you like

Origin blog.csdn.net/Kshine2017/article/details/93140453