Basic command Summary for Linux

Source: Internet
Author: User

***************************first part***********************************
Date//date now
date +%y/%m/%d...%h:%m:%s//date cn Time
Cal Ten
Cal//today
BC//ji Suan Qi
scale=10//set. 3333333333
CTRL +c CTRL +D CTRL +Z
Man date//date (1):p u tong yonghu ke zhixing shell command (5):p Eizhiwenjian (8): Xi Tong Guanliyuan Shiyongde Guanli C Ommand
man-f Mans//find man file
man-k man//find mans keyword
Sync//tongbu
Shutdown-h Now
shutdown-h 20:25
shutdown-t//after 10s
Shutdown-r now//reboot
Ls-al, LL, Ls-l, Ls-li//inodes
size Test//test is a execute file to see DATA/TEXT/BSS block
chgrp groupname filename
chown username filename
chmod 777 filename//user:4 grp:2 others:1
chmod +xrw filename
CHMOD-XRW filename
Echo $PATH
mv filename directoryname//move
cat-n filename//number
TAC filename//nixu
head/tail/more/less/hl/od
umask//moren Quanxian
umask 022//quchu w Quanxian
chattr +i filename//bu ke gaidong
chattr +a filename//zhi ke jia data
lsattr//ls attr
Special Quanxian:suid/sgid/sbit
file filename//chaxun wenjian leixing
which/whereis/locate/find filename
df-h//disk Rongliang
du-a
ln sourcefile targetfile//hard link
ln-s sourcefile targetfile//sympol link
kill-9%1 * * * * *//kill vim to recover
tar-jcv-f targetdirname.tar.bz2 filename1 filename2 ...//yasuo bzip2
tar-jtv-f filename.tar.bz2//Chakan
tar-jxv-f filename.tar.bz2-c target dir//Jieya
********************************second part*******************************
vim filename
: Set Smartindent
: Set Nu
58G 40->
GG//first Line
G//last Line
: 50,100S/MAN/MAN/GC *****//man to Mans
9yy//copy 9 lines
P//paste
22DD//delete Lines
: w filename//rename * * * * *
Ctrl +z//Houtai vim
kill-9%1 * * * * *//kill vim to recover
. SWP//zaicun Wenjian * * * * *
u//chexiao
Visual Block
vim filename1 filename2//***** duo Wen Jian Bianji
: Files
: N
: N//qie Huan files
*****
: SP//one file open twice
: SP filename//open another file
: Q//exit This file:
*********************************third part********************************
name= "Yanglu s name"//ok
name=yanglu\ ' s\ name//ok
path= "$PATH":/home/dmtsai/bin//tianjia Bianliangzhi
erport name//bianliang bianwei Huanjinbianliang
Bash//can find in child process
exit//Exit this child process
unset name//delete this name variable
env//environment List all environment variable
locale-a//file locate/etc/sysconfig/
locale//suo Zhichi de suoyou language
alias//minglin bieming
*****
dataflow relocate//Shu Ju Liu Chong Ding xiang
ll >./newfilename//stdout 1 > Shu ru jing newfile ****fu gai
ll >>./newfileanme//*** Houjiaru
find/home-name. bashrc > List_right 2>list_error
find/home-name. BASHRC 2>/dev/null//hole device
find/home-name. BASHRC &>list//all data to list
Sync, Sync, shutdown-h now//shunxu zhixing
cmd1 && cmd2
cmd1 | | cmd2
****************************fourth part**************************

Basic command Summary for Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.