zoukankan      html  css  js  c++  java
  • 面试过程中被问到的Linux命令

    说出5个以上 Linux 命令(注重考察性能测试监控常用命令?)
    答:cd、ls、grep(grep test *file )、mkdir、pwd、ping等等,重要是性能测试常用监控命令:netstat 、top 、Nmon 、dstat、ulimit、vmstat 、tcpdump、free 、lsof ,需回答上至少两个。

    grep test *file :在当前目录中,查找后缀有 file 字样的文件中包含 test 字符串的文件,并打印出该字符串的行

     

    1、创建文件:touch                       2、删除文件:rm(remove)   3、查看文件:cat    4、复制: cp(copy)       5、创建文件夹: mkdir(make directory)

    6、剪切或者重命名:mv(move)     7、压缩解压缩: tar             8、查看:ls list        9、编辑: vi/vim           10、查看当前路径:pwd(Print Working Directory)

    11、切换用户:su switch user       12、创建用户:useradd       13、删除用户:userdel

    14、创建用户组: groupadd          15、删除用户组:groupdel

    16、查找: find                              17、修改权限: chmod(change mode)

    18、查看进程: ps process           19、杀进程: kill

    20、查看日志:tail

    1、Linux的每个命令,是一个或者多个英文单词的缩写。

    2、拷贝: cp 文件1 文件2 cp -r 目录1 目录2(方式一:对文件进行copy:#cp object_file source_file 

          方式二:对目录下文件进行copy:  #cp -r object_file source_file)

    3、杀进程: kill -9 进程号

    4、查看日志: tail -f catalina.out -n 300

    查看命令的使用:tail --help    man tail

     

    linux命令:  https://www.runoob.com/linux/linux-command-manual.html

  • 相关阅读:
    [Docker]一键部署gitlab中文版
    [Docker]python 2.7.5 docker-compose安装
    [CentOS7]pip安装
    快速傅里叶变换FFT
    HDU 4734 f(x)
    DP
    HDU 3555 Bomb
    HDU 5898 odd-even number
    将文本拷贝到剪贴板
    数论分块
  • 原文地址:https://www.cnblogs.com/guotang/p/12622555.html
Copyright © 2011-2022 走看看