查看端口#lsof -i :端口号|\根据端口号查看进程信息例如:#lsof -i:8080command pid user fd type device size nodejava 15419 root 29u ipv6 8277 tcpname*:webcache 根据进程号查看进程对应可执行程...
分类:
系统相关 时间:
2015-01-22 06:55:02
阅读次数:
202
server with sites set up for download files sometimes provide ananonymous ftp account数据传输ftp 192.168.0.128name: usernamepassword:user's passwordcomman...
分类:
系统相关 时间:
2015-01-22 01:42:20
阅读次数:
225
#who 或者 #w 展示所有登录到当前系统的用户信息#who am i 展示真是用户信息#whoami 展示登陆系统的用户名例如 :登陆用户和真实用户一致#whoamiroot#who am iroot pts/3 oct 23 12:17 (:0.0)登陆用户和真实用户不一致#whoamicic...
分类:
系统相关 时间:
2015-01-22 01:41:20
阅读次数:
209
#wc 文件名.txt输出 4 13 65 文件名.txt -->4 行13个单词#wc -w 文件名.txt 统计单词数量#wc -l 文件名.txt 统计行数#wc -c 文件名.txt 显示文件byte数grep wang /etc/passwd |wc -d
分类:
系统相关 时间:
2015-01-22 01:41:09
阅读次数:
185
ftpserver with sites et up for downloaing filessometimes provides an anonymous ftp account数据传输ftp 192.168.0.128name:(username)password:(user's passwor...
分类:
系统相关 时间:
2015-01-22 01:37:09
阅读次数:
185
cd + 回车 = cd ~ 进入当前用户主目录查看指定进程信息*ps -ef |grep 进程名*ps -查看属于自己的进程*ps -aux 查看所有的用户的执行进程换成 ps -aux |less -MN 可以逐条查看进程ctil +f 向前移动一平幕ctrl+b 向后移动一平幕*ps -el ...
分类:
系统相关 时间:
2015-01-22 00:09:10
阅读次数:
149
#tail -f -n 100 catalina.out含义:从文件尾部监视catalina.out文件 主要看尾部100行#tail -f -n 100 catalina.out > nohup.out& ------------也可以指定输出文件的路径 &进入后台 ...
分类:
系统相关 时间:
2015-01-22 00:06:33
阅读次数:
284
如ls |less -MN 含义把ls结果输出到less[ls] ==管道== [more]ls命令ls -a 展示隐藏的文件 ls -t 以时间戳排序 ls -Fls -l 显示长列ls -R 递归显示信息创建文件touch 创建文件夹 mkdir mkdir dir3 dir4 dir5 建立多...
分类:
系统相关 时间:
2015-01-22 00:03:59
阅读次数:
289
r w x读 写 执行4 2 1如果要启动tomcat服务器 即执行startup.sh 脚本文件1) #chmod 444 startup.sh <----增加文本读权限即 -r--r--r-- 1 root root ....2) #cd /usr/etc/DEV/tomcat/bin3)#ch...
分类:
系统相关 时间:
2015-01-22 00:01:25
阅读次数:
373
chown chown -R mysql. /usr/local 把/usr/local/以及其下的所有的文件和子目录属主改为mysql ls -al * 删除用户 /etc/passwd删除组 /etc/group其他相关信息 /etc/passwd法2 >#userdel -r mysql 将用...
分类:
系统相关 时间:
2015-01-21 23:55:17
阅读次数:
353