unix beginning

unix beginning 

1 touch filename->creat file      wc -clL filename-> count the file 
2 chown 503 /abc = chown username /abc  chgroup groupname filename   
3 umask 022  -> 644  666
4 /etc/fstab   quotacheck -acug /home    cd /home touch quotas chmod 600 quotas                    edquota jeff          
5 rm -irf  i->ask yes or no      more       less->space:next screen  B:back screen  
6 ls `pwd`=ls $(pwd)= pwd|ls     ls -l /etc | more      ls>filename    sort<terms->from terms file sort      myprog 2>errfile      sort <terms>terms-alpha |mail fred   ->send mail to fred and sort from terms 
7 *->1 or more    ?->1  []->1    
8 apropos gzip->find keyword in path         whereis gunzip
9 man=info  info apropos  
10 LD_LIBRARY_PATH->high level than PATH, usually use it to test program
11 LD_DEBUG      export LD_DEBUG=help    Is
12 DLL      /etc/ld.so.conf->lib set      freeBSD->/var/run/ls.so.hints 
13 alias rm="rm -i"
14 set -> path set  /etc/profile        personal -> /home/username/.bashrc  /home/username/.profile   source /etc/profile 
15 PATH=$PATH:/home/jane  PATH=PATH          export PATH
16 PS1="[\u@\h \w\$"       \t->now time    \d->now date   \s->now shell   \W->work dir    \w->all work dir   \u->user name   \h->computer name  \$->root or general user
17 df -k -> disk usage  du /etc/ -> dir usage   -h -> human readable  fsck->check file system FTB
18 head -n 15 /etc/profile  tail -n 15 /etc/profile  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值