Files
nexus/wiki/sources/linux-运维必会的-150-个命令.md

66 lines
3.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Linux 运维必会的 150 个命令"
type: source
tags: [linux,运维,命令行]
date: 2025-09-29
---
## Source File
- [[raw/Home Office/Linux 运维必会的 150 个命令.md]]
## 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
- [[man 命令]]:查看命令帮助的手册工具
- [[Shell]]命令行解释器bash/zsh等
- [[文件系统]]Linux 以文件为单位管理所有资源
## Connections
- [[Linux]] ← 基础平台 ← [[Linux 命令]]
- [[Shell]] ← 命令执行环境 ← [[管道]]
- [[管道]] ← 数据流处理 ← [[文本处理命令]]
## Contradictions
无明显冲突点,该文档为纯知识参考文档