Home
|
简体中文
|
繁体中文
|
杂文
|
Github
|
知乎专栏
|
Facebook
|
Linkedin
|
Youtube
|
打赏(Donations)
|
About
部分 II. System Administrator
上一页
下一页
知乎专栏
部分 II. System Administrator
目录
5. 获取系统信息
5.1. 查看版本信息
5.2. System Infomation
5.2.1. Cpu Bit
5.2.2. dmesg - print or control the kernel ring buffer
5.3. Device information 设备信息
5.3.1. 硬件信息
5.3.2. 网络设备
5.3.3. USB 设备
5.3.4. 存储设备
5.3.5. 内存设备
5.3.6. PCI 设备
5.3.7. udev - Linux dynamic device management
6. /etc 配置文件
6.1. /etc/rc.local
6.2. getent 用来察看系统的数据库中的相关记录
6.2.1. 主机名
6.2.2. 用户组
6.2.3. 查看端口
6.2.4. shadow 密码
6.3. /etc/inputrc
6.4. /etc/shells
6.5. shutdown
6.6. Profile
6.6.1. shell
6.7. 环境默认值
6.7.1. 显示所有配置项
6.7.2. 切换版本
6.7.3. 使用 alternatives 管理自己的软件版本
6.7.4. 配置系统默认编辑器
7. Kernel
7.1. 编译安装内核
7.2. sysctl - configure kernel parameters at runtime
7.2.1. sysctl.d
7.2.2. vm.overcommit_memory
7.2.3. TCP 拥塞控制算法
7.2.4. bbr
7.3. /sys
7.3.1. /sys/class/net/
7.3.2. sysfsutils
7.4. /proc
7.4.1. 查看系统版本
7.4.2. /proc/进程ID
7.4.3. /proc/*/fd/ 进程所打开的文件
7.4.4. 进程内存监控
7.4.5. ulimit 状态
7.4.6. /proc/cpuinfo
7.4.7. 内存信息
7.4.8. overcommit_memory
7.5. 资源配置
7.5.1. ulimit - Modify shell resource limits.
7.5.2. prlimit - Show or change the resource limits of a process.
7.6. Kernel modules
7.6.1. modprobe - program to add and remove modules from the Linux Kernel
7.6.2. 查看内核模块信息
8. Package Management
8.1. APT 包管理
8.1.1. 搜索软件包
8.1.2. 显示软件包的详细信息
8.1.3. policy
8.1.4. 软件包的依赖关系
8.1.5. 查看所属镜像
8.1.6. Installation
8.1.7. 重新安装
8.1.8. 列出已安装软件包
8.1.9. Update
8.1.10. Remove
8.1.11. purge
8.1.12. aptitude
8.1.13. Automatic Updates
8.1.14. 更换 api 源镜像
8.1.15. dpkg
8.1.16. Upgrading
8.1.17. 制作.deb安装包
8.2. snap - Tool to interact with snaps
8.2.1. 安装 snap
8.2.2. 列出已经安装的snap包
8.2.3. 搜索要安装的snap包
8.2.4. 安装snap包
8.2.5. 更新snap包
8.2.6. 把一个包还原到以前安装的版本
8.2.7. 删除snap包
8.2.8. 查询最近做的操作日志
8.3. DNF 包管理
8.3.1. 安装 epel-release 包
8.3.2. DNF 软件库管理
8.3.3. 软件库管理
8.3.4. 列出所有 RPM 包
8.3.5. 搜索软件库中的包
8.3.6. 查看软件包详情
8.3.7. 查找某一文件的提供者
8.3.8. 删除软件包
8.4. yum - Yellowdog Updater Modified 包管理
8.4.1. Yum Resource & Yum Mirror
8.4.2. yum - Yellowdog Updater Modified
8.4.3. rpm - RPM Package Manager
8.4.4. rpmbuild - Build RPM Package(s)
8.5. Zerobrew / Homebrew
8.5.1. Zerobrew
8.5.2. Homebrew
8.6. SDKMAN
8.7. 清理安装包
9. 区域/语言/时间
9.1. 时区设置
9.2. 修改服务区吃的日期和时间
9.2.1. 日期写入BIOS
9.3. 早起 Linux 版本
9.3.1. Ubuntu
9.3.2. CentOS 区域设置
10. console / terminal 控制台与终端
10.1. serial console
10.2. console timeout
10.3. TUI (Text User Interface)
10.4. framebuffer
11. Harddisk 磁盘管理
11.1. 查看分区分区 UUID
11.2. 通过 UUID 或 标签 查询设备文件
11.3. Label
11.3.1. Ext2
11.4. swap 交换分区
11.4.1. swapon failed: Invalid argument
11.5. Show partition
11.6. Create partition
11.7. Clone partition
11.8. estimate disk / directory / file space usage
11.9. Convert from ext3 to ext4 File system
11.10. GPT
11.10.1. 设置GTP磁盘
11.10.2. 查看分区
11.10.3. 创建分区
11.10.4. 删除分区
11.10.5. 退出
11.10.6. mount
11.11. loop devices
11.11.1. losetup - set up and control loop devices
11.12. Linux磁盘分区加密
12. Removable Storage
12.1. usb flash
12.2. CD / DVD
12.2.1. Mount an ISO file
12.2.2. create iso file from CD
12.2.3. burner
12.2.4. ISO Mirror
13. File System 文件系统
13.1. /etc/fstab
13.1.1. 绑定目录
13.1.2. 禁止执行
13.1.3. 禁止更新访问时间
13.1.4. /etc/fstab 例子
13.2. Mount partition
13.2.1. Mount
13.2.2. Umount
13.2.3. bind directory
13.3. ext2
13.4. ext3
13.5. EXT4
13.5.1. install
13.5.2. format
13.5.3. label
13.5.4. mount/umount
13.5.5. LVM 卷
13.6. ReiserFS
13.7. LVM
13.8. Btrfs
13.8.1. btrfs 格式化
13.8.2. 子卷 subvolumes
13.8.3. 快照 snapshot
13.8.4. 挂载 btrfs
13.8.5. btrfsctl
13.8.6. btrfs-vol
13.8.7. btrfs-convert
13.8.8. btrfsck
13.8.9. btrfs-debug-tree
13.9. zfs
13.10. iSCSI
13.10.1. GFS
13.11. GFS - Cluster Storage
13.12. glusterfs
13.13. RAM FS
13.14. tmpfs
13.15. ftp fs
13.16. SSHFS (sshfs - filesystem client based on SSH File Transfer Protocol)
13.17. davfs2 - mount a WebDAV resource as a regular file system
13.18. redisfs
13.19. File system test
13.19.1. ext4 vs btrfs
13.19.2. xfs vs jfs vs reiserfs
13.19.3. RAID10 (146G*8) vs EMC VNX 5300 (8G Fibre Channel)
13.19.4. Dell 2950(RAID5 500G SATA * 6) vs MD1200
13.20. 磁盘占用100%删除文件后不是放的解决方法
14. Networking 网络管理
14.1. hosts
14.1.1. /etc/hostname
14.1.2. /etc/host.conf
14.1.3. /etc/hosts
14.1.4. hosts.allow / hosts.deny
14.1.5. /etc/resolv.conf
14.2. Network adapter 网络适配器
14.2.1. 接口名称
14.3. CentOS 8 Stream
14.3.1. hostnamectl - Control the system hostname
14.3.2. nmtui - Text User Interface for controlling NetworkManager
14.3.3. nmcli - command-line tool for controlling NetworkManager
14.4. Ubuntu netplan (Ubuntu 18.04 之后才用 netplan 管理网络)
14.4.1. DHCP
14.4.2. 静态IP地址
14.5. Gateway 设置默认网关
14.6. 配置 DNS
14.6.1. 常规 DNS 配置 /etc/resolv.conf
14.6.2. 安全 DNS 配置
14.7. IP forwarding(IP转发)
14.8. bonding
14.8.1. bonding
14.8.2. Ubuntu
14.9. Wireless - WiFi 配置
14.9.1. rfkill - tool for enabling and disabling wireless devices
14.9.2. iwlist - Get more detailed wireless information from a wireless interface
14.9.3. iwconfig - configure a wireless network interface
14.9.4. /proc/net/wireless
14.10. Linux IP And Router
14.10.1. IP 地址类别
14.10.2. ping
14.10.3. Finding optimal MTU
14.10.4. ss - another utility to investigate sockets
14.10.5. netmask 子网掩码
14.10.6. arp - manipulate the system ARP cache
14.10.7. iproute2
14.10.8. VLAN
14.10.9. 网桥
14.10.10. Zebra
14.11. IPv6
14.11.1. 禁用 IPv6
14.11.2. Ipv6 无法连接
14.12. 早期版本
14.12.1. 早期 Ubuntu
14.12.2. CentOS 6
15. 服务管理
15.1. systemd, init - systemd system and service manager
15.1.1. 什么是 systemd
15.1.2. why-为什么做
15.1.3. systemd 是何时被采用的
15.1.4. 那些系统使用 systemd
15.1.5. system 是谁开发的
15.1.6. 怎样编写systemd脚本
15.1.7. 电源管理
15.1.8. rc.local
15.1.9. 编辑 service 文件
15.1.10. 查看 service 文件
15.1.11. 查看配置项
15.1.12. is-enabled 查看当前服务的启用状态
15.1.13. 重载 systemd
15.1.14. 列出启动失败的服务
15.1.15. list-units
15.1.16. 定时器单元
15.1.17. 环境变量
15.2. Debian/Ubuntu
15.2.1. update-rc.d - install and remove System-V style init script links
15.2.2. invoke-rc.d - executes System-V style init script actions
15.2.3. runlevel
15.2.4. sysv-rc-conf
15.2.5. xinetd - replacement for inetd with many enhancements
15.2.6. Scheduled Tasks
15.2.7. sv - control and manage services monitored by runsv
15.3. CentOS 6
15.3.1. service
15.3.2. xinetd.d
15.3.3. rpcinfo
15.3.4. SELINUX
16. Process 进程管理
16.1. top - display Linux tasks
16.1.1. 查找内存消耗最大的进程
16.2. ps - report a snapshot of the current processes
16.2.1. 完整的显示命令参数
16.2.2. 显示进程之间的关系
16.2.3. ps axef
16.2.4. ps jax
16.2.5. 僵尸进程
16.2.6. 查找内存消耗最大的进程
16.2.7. 格式化输出
16.2.8. 线程
16.3. renice
16.4. kill - terminate a process
16.4.1. 列出信号名称
16.5. mpstat
16.6. pid
16.6.1. 查找进程 ID
16.6.2. pkill
16.6.3. pidof -- find the process ID of a running program.
16.7. jobs
16.7.1. &
16.7.2. Ctrl + Z
16.7.3. jobs
16.7.4. fg / bg
16.7.5. nohup - run a command immune to hangups, with output to a non-tty
16.7.6. wait 等待后台任务运行结束
16.8. ionice - get/set program io scheduling class and priority
16.9. Utilities for managing processes on your system
16.9.1. pstree - display a tree of processes
16.9.2. fuser - identify processes using files or sockets
16.10. pkexec - Execute a command as another user
17. 权限管理
17.1. User 用户管理
17.1.1. 添加用户
17.1.2. 删除用户
17.1.3. 修改用户组
17.1.4. 修改 shell
17.1.5. 修改自己的登陆shell
17.1.6. 账号加锁与解锁
17.2. Group
17.2.1. Add a new group
17.2.2. Add a user to the group
17.2.3. /etc/group
17.2.4. gpasswd - administer /etc/group and /etc/gshadow
17.3. 访问权限
17.3.1. umask
17.3.2. chown - change file owner and group
17.3.3. chgrp - change group ownership
17.3.4. chmod - change file access permissions
17.4. chattr - change file attributes on a Linux second extended file system
17.5. su - run a shell with substitute user and group IDs
17.6. runuser - run a command with substitute user and group ID
17.7. sudo, sudoedit - execute a command as another user
17.7.1. /etc/sudoers
17.7.2. /etc/sudoers
17.7.3. 设置示例
17.7.4. NOPASSWD
17.7.5. 允许或禁止命令
17.7.6. Cmnd_Alias 用法
17.7.7. wheel 组
17.7.8. 注意事项
17.8. ACL - Access Control List
17.8.1. getfacl - get file access control lists
17.8.2. setfacl - set file access control lists
18. crontab 定时任务
18.1. /etc/crontab
19. Logging 日志
19.1. lastlog - reports the most recent login of all users or of a given user
19.2. last, lastb - show a listing of last logged in users
19.3. rsyslog
19.3.1. rsyslog.conf
19.4. logrotate - rotates, compresses, and mails system logs
19.4.1. /etc/logrotate.conf
19.4.2. /etc/logrotate.d/
19.5. syslog-ng
19.6. syslog, klogctl - read and/or clear kernel message ring buffer; set console_loglevel
19.6.1. /etc/sysconfig/syslog
19.6.2. /etc/syslog.conf
19.6.3. logger
19.6.4. To Log Messages Over UDP Network
19.7. 挂载日志卷
19.7.1. 子卷挂载
19.7.2. 使用过个子卷
19.7.3. /etc/fstab配置
20. kickstart
20.1. install kickstart
20.2. ks.cfg
20.3. boot 参数
21. System Utilities 配置工具
21.1. CentOS 6
21.1.1. system-config-date
21.1.2. system-config-firewall
21.1.3. system-config-securitylevel
21.1.4. system-config-language
21.1.5. system-config-keyboard
21.1.6. system-config-network
21.1.7. ntsysv
21.1.8. lokkit
21.1.9. system-config-kdump
21.1.10. system-config-services
21.1.11. authconfig-tui