zoukankan      html  css  js  c++  java
  • linux常用命令

    CentOS常用命令
     
    #安装中文输入法
    yum install "@Chinese Support"
    #安装zip解压工具
    yum install zip unzip
     
    #tail命令
    tail -f ./xxx.log
     
    #启动openoffice
    cd /openoffice/program
    soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
     
    #ps查找进程
    ps -ef | grep java
    ps -ef | grep tomcat
    #参数
    -e 显示所有进程,环境变量
    -f 全格式
    -h 不显示标题
    -l 长格式
    -w 宽输出
    a
    显示终端上地所有进程,包括其他用户地进程
    r
    只显示正在运行地进程
    x
    显示没有控制终端地进程
     
    #kill结束进程
    kill -9 [PID]
     
    #zip unzip压缩解压
    zip ./test.zip ./dir ./file.html#将dir目录和file.html文件打包压缩成test.zip
    unzip ./dir.zip -d ./testDir
     
    #scp远程复制
    scp -r user@remote.machine:/remote/path  /local/path
    #将远程linux主机上/remote/path的文件copy到本主机的/local/path目录
    scp -r /local/path user@remote.machine:/remote/path
    #将本主机的/local/path目录copy到远程linux主机上/remote/path的文件
     
    #ssh命令
    #输入登录密码
    exit
    #退出当前连接
  • 相关阅读:
    【脑图】iOS的Crash分类和捕获
    Ruby03
    Ruby02
    Ruby01
    如何快速把一个十进制数转换为二进制?
    iOS
    互联网协议基本知识
    XCBB
    iOS
    iOS
  • 原文地址:https://www.cnblogs.com/welcomer/p/5068283.html
Copyright © 2011-2022 走看看