VMware Three network modes
1, Bridge connection
Virtual machine directly connected to the external network, local area network. The host computer does not provide routing.
2,nat
Network address translation, home network
3,host only
Can only deal with the host computer.
Linux command form
Command + "parameters" + "Path file"
Rm+1 spaces +-F + 1 spaces +/tmp/oldboy.log parameter and path optional
Ls-ld/date displays the path to date. Parameter-ld l:long d:directory long path meaning
Touch Zwj.txt creates a new file without creating a file, and changes the timestamp when it exists.
VI zwj.txt Edit File Command mode-"A,i-" edit mode. Instead, ESC exits edit mode
Cat Zwj.txt Displays the contents of the file
Echo print input
echo "Ian" > Zwj.txt single-line text overlay, standard output redirection, the original content in the file will be overwritten (data flow)
echo "Ian" >> zwj.txt redirect, content will not be overwritten.
: Wq: q,:wq!,:q! After text edit exit and force exit
; delimiter
/root directory or path delimiter for multiple commands
<, << standard input redirection
Grep-v Oldboy aaa.txt The grep sieve, which filters out the content, plus-V indicates that everything except-V followed is filtered out. (important)
Head-2 aaa.txt Head Displays the header of the file, followed by the number of lines, showing the first few lines. The
Tail tail displays the number of end-n lines of the file, ending in 10 lines by default. The
Cat aaa.txt|grep-v Oldboy displays all the content except for the other parts of Oldboy (pipeline application)
sed. (important)
Sed-n/t/p aaa.txt-n cancel default output, p print meaning
rwx r-x r-x rwx is a sovereign limit R-x group permission bit r-x other user rights bit example root root oldboyfile R 4 W 2 x 1 -0
Chmod-r command to change file permissions
df-h view disk space
Df-i view Inodes quantity
Troubleshooting Linux Disk Log fills
Yum Install Httpd-y
grep log httpd.conf
CP httpd.conf Http.conf.ori
Sed-i ' [email protected] logs/access_log [email protected]/app/log/access_log [email protected] '/ETC/HTTPD/CONF/HTTPD . conf to replace files in httpd
DD If=/dev/zero OF=/DEV/SDC bs=8k count=10 Create small disk
Ls-l/DEV/SDC View Small disk space
Mkfs-t EXT3/DEV/SDC Formatting Small disks
Advanced Linux Basic Commands-1