linux 简单命令
1.给普通用户操作/opt的权限
root下:
chown-R用户名/opt
2.du-sh*
df-lh
3.netstat-nltp
4.cataccess.log.2011120400|grep"--"|wc-l
5.netstat-pnt|grep:80|wc-l
6.前后5行
catvrs.log.2011-12-05|grep"731438"-5
7.文件个数
ls-lR|grep"^-"|wc-l
8.文件夹个数
ls-lR|grep"^b"|wc-l
9.定时删除,crontab-e
4523***/usr/bin/find/data/vrslogs-name"vrs.log.*"-ctime+15-execrm-rf{}\;
10.pid的堆栈日志:
/usr/java/jdk1.6/bin/jstack<pid>>dumplog.log
11.将svn服务器上的文件checkout到本地目录
svncheckoutpath(path是服务器上的目录)
例如:svncheckoutsvn://192.168.1.1/pro/domain
svnco--username$SVNUSER--password$SVNPASSWORD$SVNPATH$SRCDIR
简写:svnco
12.复制:
[email protected]:targetPath
13.开机启动文件
/etc/rc.d/rc.local
相关推荐
bluecarrot 2020-11-23
Attend 2020-11-17
ZHAICAN 2020-11-16
codedecode 2020-11-14
zhangbingb 2020-11-12
ykmail 2020-11-11
futurezone 2020-11-06
rikeyone 2020-11-04
橄榄 2020-11-04
WenCoo 2020-10-31
zhangbingb 2020-09-21
liuyuchen 2020-10-27
ROES 2020-10-24
Gexrior 2020-10-22
ZHAICAN 2020-10-20
风语者 2020-10-16
zhongguomin 2020-10-16