(1) Compression of JAR file and unzip JAR CVF ABC. Jar COM - Under Windows DOS window, pay attention to the path to JAR XVF ABC. Jar under the PATH variable --- Run under Linux (2) Solution Compressed TAR file
TAR XVF TAR file
(3) Unzip TAR.GZ file
Gunzip Or Tar Zxvf tar.gz file (4) Copy the file in the current directory (including subdirectory) cp -r * destination path (5) Delete the directory (including subdirectories, not confirming) and files RM -RF Specify directory rm abc.jar ======================== Create a directory: mkdir Dirname Deleted Directory: RMDir NullDirname (6) Find files in the specified path Find specified path - Name file name (7) Creating a connection LN -S directory full road connection name (8) View the specified process PS AUX | GREP Specified Process (9) View network status Netstat -nat (10) Switching users SU - Username (11) Change the directory owner (including subdirectory) Chown -R Group: User Directory Name (12) Change the file to executable CHMOD X file name (13) VI common command ESC: command Q: Exit WQ: storage exit Q !: Do not save, forcibly exit ESC command I: Insert before the current characters A: Addition after the current character o: Insert the line after the current line X: Delete the current character DD: Delete the current line / key: Find the keyword, press N to find the next one (14) Modify the file or folder name, mobile file mv file.jsp newfile.jsp MV FoldName NewFoldName MV filename.jar foldername // Move files to a folder below. (14) Modify the file or folder name, mobile file mv file.jsp newfile.jsp MV FoldName NewFoldName MV filename.jar foldername // Move files to a folder below. (15) Empty the file content (15) Empty the file content Cat / dev / null> Catalina.out Cat / dev / null> Catalina.out