摘要:
File Repositioning: G go to last line<Ctrl-d><Ctrl-u>Screen Repositioning:H M L z<ENTER> z-Filtering : !!command!}sort 排列!}fmt -w60ex mode: Search and Replace(1,n/$)/%/(.,.+n)s/aaa/bbb/gAdvanced Reading and Saving ::r file1 :1,20w file2 :1,$w file3 :1,20w>>file4:n切换档案 :rew 切换 阅读全文
摘要:
expr : 返回integer , 对*<>()&|要加\ , 符号和变量之间要用空格隔开let or (( )) : 2#11 表示二进制11,即3integer x 整数x ; typeset -i2 x :二进制数xulimit commandbc : '10 * 21' | bc 阅读全文
摘要:
User and Group ID Numbers/etc/passwd :User database/etc/shadow : Password database/etc/group : Group databaseSystem User and Group : 1-499 for systemchanging your indentity : chang password :passwd commandpasswd --status user1su user1 切换账号su - user1 切换账号和环境变量(run login shell)whoami commandgroups com 阅读全文
摘要:
Local variables , Aliases and functions , the set commandVariables : local and environmentset command display all variablesenv command display all environment variablesecho $xxxCommon Local Variables : HISTFILESIZE , COLUMNS , LINES , PS1Aliases : alias lf='ls -laF' ; alias see all set alias 阅读全文
摘要:
if xxx thenelif yyy thenelsefiuntil/while xxxdodonefor xxx indodonefor (( initialize; test; incrememt ))docommandsdonecase ,select ,exit , break ,continue ,null Logic ":" 阅读全文
摘要:
default fs : ext3 other : etx2 ,msdos ,iso9660inodes :inode-no;cp mv rm 对inode的影响Symbolic(Soft) Link : ln -s filename [linkname]Hard Link : ln filename [linkname]Filetype : - ; d ; l ; b ; c ; p: named pipe file; s : socketcheck free space : df :kilobytes in fs ;-h : gitabyte ; du -shRemovable Media 阅读全文
摘要:
command mode: hjkl 游标移动,w :word ahead ,b :word back,( :上一句,) :下一句,{ :上一段,} :下一段 Line Letter Wordchange: ccclcwdelete:dd dldwyank(copy): yy yl ywPut(paste) : p粘贴在游标后,P游标前u : undo 回溯上一次操作<Ctrl-r> : 取消一次回溯U : 回溯游标所在行的所有修改Search: /text 往下找,?text 往上找,n 顺找下一个,N 逆找下一个关键字“text”dt"m" :删除到第一个“ 阅读全文
摘要:
schema = databasedb.opt保存database属性信息:character set and collatealter database xxxdrop database if exists xxx 阅读全文
摘要:
return value :0 or othersecho $? :last command return codecondition execution: 成功&&;失败||numeric expression: exp1 -eq|-ne|-lt|-le|-gt|-ge exp2signal:killtrap 阅读全文
摘要:
permission :d rwx rwx rwxu g ochmod ug-x /xxx;chmod a+x /xxx;chmod 777 /xxx 阅读全文