3.5 KiB
3.5 KiB
title, type, tags, date
| title | type | tags | date | |||
|---|---|---|---|---|---|---|
| Linux 运维必会的 150 个命令 | source |
|
2025-09-29 |
Source File
Summary (用中文描述)
- 核心主题:Linux 系统管理命令的全面分类参考,涵盖 150 个运维必备命令
- 问题域:Linux 系统日常运维中的命令查询与学习
- 方法/机制:按功能将命令分为 16 大类(帮助、文件操作、文本处理、压缩、信息显示、搜索、用户管理、网络操作、磁盘管理、权限管理、系统监控等)
- 结论/价值:提供系统化的 Linux 命令速查清单,适合运维工程师日常参考和系统化学习
Key Claims (用中文描述)
- Linux 命令是系统运行核心,与 DOS 命令类似,通过文件抽象管理所有资源(CPU、内存、磁盘、键盘、用户等)
- Linux 命令分为两类:内置 Shell 命令和独立 Linux 命令
- 150 个命令覆盖 Linux 运维的 16 个核心领域
Key Quotes
"Linux 命令在系统中有两种类型:内置 Shell 命令和 Linux 命令。" — 核心分类原则 "对于 Linux 系统来说,无论是中央处理器、内存、磁盘驱动器、键盘、鼠标,还是用户等都是文件" — Linux 一切皆文件哲学
Key Concepts
命令分类体系(16 大类)
| 类别 | 命令数 | 核心命令 |
|---|---|---|
| 线上查询及帮助命令 | 2 | man, help |
| 文件和目录操作命令 | 18 | ls, cd, cp, find, mkdir, mv, pwd, rm, touch, tree, chmod, chown |
| 查看文件及内容处理命令 | 21 | cat, tac, more, less, head, tail, grep, sort, uniq, wc, diff, vi/vim |
| 文件压缩及解压缩命令 | 4 | tar, unzip, gzip, zip |
| 信息显示命令 | 11 | uname, hostname, dmesg, uptime, du, df, top, free, date, cal |
| 搜索文件命令 | 4 | which, find, whereis, locate |
| 用户管理命令 | 10 | useradd, usermod, userdel, groupadd, passwd, su, sudo, visudo |
| 基础网络操作命令 | 11 | telnet, ssh, scp, wget, ping, ifconfig, netstat, ss |
| 深入网络操作命令 | 9 | nmap, lsof, mail, mutt, nslookup, dig, traceroute, tcpdump |
| 有关磁盘与文件系统的命令 | 16 | mount, umount, fsck, dd, fdisk, mkfs, mkswap, sync |
| 系统权限及用户授权相关命令 | 4 | chmod, chown, chgrp, umask |
| 查看系统用户登陆信息的命令 | 7 | whoami, who, w, last, lastlog, users, finger |
| 内置命令及其它 | 19 | echo, printf, rpm, yum, alias, history, time, xargs, export, bc |
| 系统管理与性能监视命令 | 9 | chkconfig, vmstat, mpstat, iostat, sar, strace, ltrace |
| 关机/重启/注销和查看系统信息的命令 | 6 | shutdown, halt, poweroff, logout, exit, Ctrl+d |
| 进程管理相关命令 | 15 | bg, fg, jobs, kill, crontab, ps, pstree, nohup, pgrep |
Shell 命令:内置在 Shell 中的命令(如 cd, echo, history)
系统命令:独立可执行文件(如 ls, cp, grep)
管道(Pipe):通过 | 连接多个命令实现数据流处理
重定向:通过 >, >>, < 实现输入输出重定向
Key Entities
Connections
Contradictions
无明显冲突点,该文档为纯知识参考文档