zoukankan      html  css  js  c++  java
  • 测试必须常用linux

    whereis file (搜素文件位置)

    蓝色表示目录;
    绿色表示可执行文件;
    红色表示压缩文件;
    浅蓝色表示链接文件;
    灰色表示其它文件;
    红色闪烁表示链接的文件有问题了;
    黄色是设备文件,包括block, char, fifo。


    vi模式
    $ 所行行尾
    ^ 所行首字母

    1、tomcat日志文件查看

    cd /home/tomcat/logs 

    tail -f catalina.out

    ctrl+c

    2、修改配置文件内容

    vim /etc/profile

    soucre /etc/profile

    cat /etc/profile

    3、vi vim

    $行尾

    ^行首

    4、查看tomcat进程,杀死进程,重启进程

    ps -ef/grep tomcat ps -aux /grep tomcat

    5、压缩、解压缩文件

    tar -zxvf a.tar.gz

    6、上传、下载

    yum install lrzsz

    rz :上传

    sz:  下载

    7、文件查找

    find file

    whereis file

    8、移动、复制

    移动:mv file resource/file

    复制:cp  file resource/file

    跨服务设置:

    9、权限

    chmod u+x file 给自己加上可执行权限

    owner group other

    10、服务器

    top:相当于windows任务管理器,能够实时系统的运行状态,显示各个进程资源使用情况,cpu、内存、负载

    free:查看服务器内存使用情况,包括物理内存、交换内存、和内核缓冲区内存的空闲和剩余

    指标分析。。。

  • 相关阅读:
    WAMPP安装后mysql无法启动
    转:xampp-php5.6下安装memcached.exe
    apache配置多域名多站点记录
    抽象类
    this关键字
    static关键字
    super关键字
    Set
    Map
    List
  • 原文地址:https://www.cnblogs.com/mobies/p/11683882.html
Copyright © 2011-2022 走看看