1 |
usermod -d /data/download/client -m wangjunfeng |
1
2 |
[root@localhost download] # id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 |
1 |
pkill -kill -t pts/1 |
1 |
ln -s 【目标文件】 名字 |
1 |
service nscd restart或者/etc/init.d/nscd restart |
1 |
vi /etc/resove.conf |
1 |
ps auxw|head -1; ps auxw| sort -rn -k3|head -10 |
1 |
ps auxw|head -1; ps auxw| sort -rn -k4|head -10 |
1 |
ps auxw|head -1; ps auxw| sort -rn -k5|head -10 |
1
2
3
4 |
#sync #echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches |
1
2 |
下面这个例子就是将当前目录及所有子目录下的所有*.send文件中的 "-ip=" 替换为“ -localIp =10.0.0.1/n -ip =” find -name "*.send" | xargs perl -pi -e 's|-ip=|-localIp=10.0.0.1/n-ip=|g' |