您的位置:首页 > 运维架构 > Linux

linux 命令大全

2016-06-05 17:45 543 查看
#tar -zxvf apache-tomcat-8.0.9.tar.gz //解压文件
#cp -R apache-tomcat-8.0.9 /usr/local/tomcat //移动和重命名


ps命令用于显示当前进程 (process) 的状态。

ps -ef //显示所有进程信息,连同命令行
grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户。


[root@iZ25oux6yl1Z download]# ps -ef | grep nginx
root      8563  8483  0 21:44 pts/1    00:00:00 grep nginx
root     25079     1  0 Jun05 ?        00:00:00 nginx: master process ./nginx
nobody   25093 25079  0 Jun05 ?        00:00:00 nginx: worker process


  

  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: