1. 基本常识
cat /etc/shell
chsh /bin/tcsh
emacs = vi ?
pdksh
zsh
B C K
PID is 1 not 0
HOME variables是存在passwd里面的,passwd的最后一个entry是sh.
ps -ef SVR4
ps au for BSD/Linux ps
echo $status
echo $?
EUID //can be changed, like chown
EGID
real uid/gid //from passwd file
//owner, root的uid是0
setuid
setgid
有意思,umask默认为000,directory默认是777,file默认是666,两个相减即可。
比如umask是022,则directory就是755,file就是644.
umask是passwd里面设置的。
cd - built-in - no fork
file descriptor
0 1 2 assigned
csh比较不常见
一般都没有csh
pipe实际上也是file discriptor间的操作
date --help有两类,一类是命令帮助,一类是用于shell脚本编写。
如 data +%H
csh可以yum install
$1
$#
FINIS
常用regular expressions
escape means switch from one to another
^ $
beginning of a line enchor doesn't mean word start with it. NOTICE: LINE BEGINNING NOT SENTENCE BEGINNING.
/< />
beginning of word and end of word
其中倒数第二个看不懂,终于懂了
在这个命令的时候有用:
/1,$/s/([0o]ccur/)ence//1rence/
*被叫做wild card.....
date +%H可以,但是date + %H就不行
2.分类命令
2.1 grep