3.4 KiB
title, type, tags, date
| title | type | tags | date | |||
|---|---|---|---|---|---|---|
| Linux 运维必会的 150 个命令 | source |
|
2025-09-29 |
Source File
Summary
- 核心主题:Linux 系统管理常用命令的分类汇总
- 问题域:Linux 运维日常工作所需掌握的命令工具
- 方法/机制:按功能分类组织,共12类150个命令
- 结论/价值:掌握这些命令是 Linux 运维的基础技能
Key Claims
- Linux 系统将所有资源(CPU、内存、磁盘、文件、设备、用户)抽象为文件进行管理
- Linux 命令分为内置 Shell 命令和外部 Linux 命令两类
- 命令按功能分为12个类别:帮助命令、文件操作、文件内容处理、压缩解压、信息显示、搜索文件、用户管理、网络操作、磁盘文件系统、权限管理、用户登录信息、系统管理
Key Quotes
"Linux 命令是它正常运行的核心,与之前的 DOS 命令类似。"
Key Concepts
- Shell:Linux 命令解释器,负责执行用户输入的命令
- 管道 (Pipeline):将前一个命令的输出作为下一个命令的输入
- 重定向:将命令输出重定向到文件或其他设备
Key Entities
- (本篇为命令工具汇总,不涉及具体实体)
Connections
- (本篇为基础工具文档,不涉及与其他页面的连接)
Contradictions
- (无)
Commands Summary
1. 线上查询及帮助命令(2个)
| 命令 | 功能 |
|---|---|
| man | 查看命令帮助手册 |
| help | 查看 Linux 内置命令帮助 |
2. 文件和目录操作命令(18个)
ls, cd, cp, find, mkdir, mv, pwd, rename, rm, rmdir, touch, tree, basename, dirname, chattr, lsattr, file, md5sum
3. 查看文件及内容处理命令(21个)
cat, tac, more, less, head, tail, cut, split, paste, sort, uniq, wc, iconv, dos2unix, diff, vimdiff, rev, grep/egrep, join, tr, vi/vim
4. 文件压缩及解压缩命令(4个)
tar, unzip, gzip, zip
5. 信息显示命令(11个)
uname, hostname, dmesg, uptime, stat, du, df, top, free, date, cal
6. 搜索文件命令(4个)
which, find, whereis, locate
7. 用户管理命令(10个)
useradd, usermod, userdel, groupadd, passwd, chage, id, su, visudo, sudo
8. 基础网络操作命令(11个)
telnet, ssh, scp, wget, ping, route, ifconfig, ifup, ifdown, netstat, ss
9. 深入网络操作命令(9个)
nmap, lsof, mail, mutt, nslookup, dig, host, traceroute, tcpdump
10. 有关磁盘与文件系统的命令(16个)
mount, umount, fsck, dd, dumpe2fs, dump, fdisk, parted, mkfs, partprobe, e2fsck, mkswap, swapon, swapoff, sync, resize2fs
11. 系统权限及用户授权相关命令(4个)
chmod, chown, chgrp, umask
12. 查看系统用户登陆信息的命令(7个)
whoami, who, w, last, lastlog, users, finger
13. 内置命令及其它(19个)
echo, printf, rpm, yum, watch, alias, unalias, date, clear, history, eject, time, nc, xargs, exec, export, unset, type, bc
14. 系统管理与性能监视命令(9个)
chkconfig, vmstat, mpstat, iostat, sar, ipcs, ipcrm, strace, ltrace
15. 关机/重启/注销和查看系统信息的命令(6个)
shutdown, halt, poweroff, logout, exit, Ctrl+d
16. 进程管理相关命令(15个)
bg, fg, jobs, kill, killall, pkill, crontab, ps, pstree, nice/renice, nohup, pgrep, runlevel, init, service