linux常用命令汇总

思想: 一切皆文件

目录结构:

    /var/log   # 系统服务日志
    /proc/   #系统运行时状态及信息记录
    /etc/     #配置目录
    /etc/{bashrc, profile}   #操作启动时初始化
    /etc/init.d/     # centos 6 中系统服务操作路径
    /etc/passwd    #用户

常用命令:

切换: cd , tab键, pwd,
删除: rm, mv, cp, scp , dd
连接: ln ,
增加: mkdir, touch
查找: find,
执行:. , sh , source
用户: useradd, userdel
权限: visudo, chmod, chown
查看: cat, vim(vi), more, less , head, tail, ls, echo, file, stat
进程: ps , top, uptime, w, who, grep,
记录:last, lastlog,
排错:dmesg,
性能: vmstat, iostat, mpstat, # sysstat
容量: free, df , du
网络: ss, netstat, ip
软件: rpm, yum , 编译三步曲(./configure ; make ; make install )
服务: service, systemctl, chkconfig
帮助: man , help, -h(--help), info(不常用)
打包:tar , zip
高级:
编辑:sed, awk, cut,sort, uniq
防火墙: iptables,
网络: nat, ping, telnet, curl, wget
其他:
alias, env, export, hostname, mount
>>, >, .. , ; , rz, sz , ssh , clear, kill, date, seq, {}, (), ``, history,
瑞士×××:
lsof, nc, sar

详解:

    yum install xx
    yum search 
    yum provides 
    yum list |  grep xx
    yum update  # 禁用

猜你喜欢

转载自blog.51cto.com/zhenfen/2107106