Some commands to learn

Create a directory command

make birectoy(mkdir)

-v show command execution process or outcome

-p create multi-level directory (you must have a parent directory when you create a child directory)

View Directory command

lits (ls)

View data ls directory

-d only view the file or directory information

For more information see the -l directory

Change directory

change diretry(cd)

cd ~ / cd quickly return to roots

cd - / cd .. quickly return to the parent directory

Delete command

remove(rm)

-r delete a directory

-rf force delete directory

-rf / * command to seek death

File-related commands

touch create a blank file (touch / directory / file)

cat View files      

Copy the file copy

mv cut / remove files 

Shortcuts ctrl + edit files

+ Cursor position in the editor i

+ I (uppercase i) to switch to the first

+ Next character editing cursor in a

+ O insert a row in the row below the cursor and edit

+ O (upper case) and is inserted in the edit cursor line above

+ S to delete the character the cursor position and edit

+ S (capital) to delete the cursor line and edit

+ A Move the cursor to the end

esc (key) switch to the command

: Go to the bottom line of the file

\ Search File Information

? Search for files

wq exit Save

wq! Save Force Quit

q quit

q! Quit

w Storage

SYSTEM basis of command

Get command information

 manal (short man)    

want to see the command help - help abbreviated (-h or --h)

OS shortcut

Use the arrow keys fast retrieval command history

Move the cursor quickly (ctrl +)

+ A rapidly moving the cursor to the beginning

+ E quickly move the cursor to the end of the line

+ Left and right cursor keys to move in the left and right quick word

Quick Operation Command

+ U contents before the cursor shearing

+ K contents after the cursor shearing

+ W as a space division cut each string

+ Y is the shear station paste content

Shortcut special features

+ C interrupt or cancel the order command execution process

+ L clear screen

+ S into the lock screen

+ Q to exit the lock screen


           linux system directory structure

Copy and paste the contents of the boot several times in the specified line

etc service configuration file directory system

opt / ust user-installed software process third save directory (progran / Files)

root super housekeeper (directory)

Ordinary home users (directory has permissions constraints)

var system log file directory

tmp directory temporarily stores data (similar with the Recycle Bin)

sbin binaries / command (only root management) '

bin binary file / Command (home can be used)

Meidia place to store audio movie pictures

lib32 32-bit file libraries required procedures

lib64 64-bit file libraries required procedures


System installation and network configuration system

System network configuration

    Input (vi / etc / sysconfig / network-scripts / ifcfg-eto) by (i) fill in the address information of the mask information gateway information card information like card view card information filled out by (wq) back to the root reboot the system (systemctl restrt network ) checks to see whether the correct network ip add to check the correct input (ping www.baidu.com) whether access to the Internet

              

Guess you like

Origin www.cnblogs.com/jiaomingyu/p/11963154.html