1:VM Useful Features:
Cloning: Replication System
Snapshot: Similar to system fallback
Virtual machine sharing and setting to bridge mode (two ways to enable office colleagues to connect to this virtual machine)
2:LINUX file Structure
/: Root directory
Bin directory: Files for common commands are placed in this directory.
ETC Directory: Place the configuration file.
Home directory: Class is the user folder.
Root directory: The home of the Super administrator.
Libary directory: Dynamic connection library file.
USR directory: The most space-occupying directory, zip, and other additional tools
Command: LL: Show file list.
LS: Display file and folder name
ls-l:= LL
Ll-a: Show files (including hidden files)
Touch: Create folder touch a touch. A (Create hidden file)
RM: Delete
CD: Go back to the previous level.
Wiho am I: operator
SU: Select User
Ifconfig: Querying IP
PWD: Current path
Tab key to quickly type the directory you want
CD/: Returns the root directory.
Clear
Folder operations:
mkdir: Creating a Folder
Mkdir-p: Multilevel Folder creation
MV: Renaming
Rm-r: Removing folders
RM: Remove Folder
RM-RF: Force Delete
CP: Copy file CP a.txt HELLO/CP. /a.txt./
File operation:
Touch A.txt Create a file
Vi
Vim:i o a IOA ESC (key): Wq (Save exit): q! (Do not save exit)
I: Front of the current position
I: The beginning of the current position;
A: The back of the current position
A: The end of the line at the current position
O: Next line
O: Previous Line
ESC mode:
: Set number shows H rows
: 5 Back to the end 5 lines
n+ down n rows
N-row
GG beginning
G Line End
U undo
Ctrl+r Anti-Revocation
D Delete Row
Y copy Line
X Delete Individual
Cat: View Files
More
head-10 XXX Display 10 lines
tail-10 XXX Display 10 lines
/content Search N Continue
File compression:
gzip compression
Gzip-d Decompression
Tar package files and folders (multiple file compression)
TAR-ZCF new name. tar.gz A.text B.text
Linux Common commands