Summary of common commands in linux

Thought: Everything is a file

Directory Structure:

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

Common commands:

toggle: cd , tab, pwd,
delete: rm, mv, cp, scp , dd
connect: ln ,
add: mkdir, touch
find: find,
execute: . , sh , source
user: useradd, userdel
permission: visudo, chmod, chown
view: cat, vim(vi), more, less , head, tail, ls, echo, file, stat
process: ps , top, uptime, w, who, grep,
log: last, lastlog,
troubleshooting: dmesg,
performance: vmstat, iostat, mpstat, # sysstat
capacity: free, df , du
network: ss, netstat, ip
software: rpm, yum , 编译三步曲(./configure ; make ; make install )
service: service, systemctl, chkconfig
help: man , help, -h(--help), info(不常用)
packaging: tar , zip
advanced:
edit: sed, awk, cut,sort, uniq
Firewall: iptables,
Network: nat, ping, telnet, curl, wget
Other:
alias, env, export, hostname, mount
>>, >, .. , ; , rz, sz , ssh , clear, kill, date, seq, {}, (), ``, history,
Switzerland ×××:
lsof, nc, sar

Detailed explanation:

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324746219&siteId=291194637