命令行实用技巧:搜索、重定向与自定义命令
1. 搜索命令文档
在使用命令行时,了解命令的详细信息至关重要。以下几种方法可以帮助我们查找命令的文档。
1.1 apropos - 显示合适的命令
apropos 可以根据搜索词在手册页列表中查找可能匹配的内容。虽然这种搜索方式比较粗略,但有时很有帮助。例如,搜索包含 “partition” 的手册页:
[me@linuxbox ~]$ apropos partition
addpart (8) - simple wrapper around the "add partition" ioctl
all-swaps (7) - event signalling that all swap partitions have been ac...
cfdisk (8) - display or manipulate disk partition table
cgdisk (8) - Curses-based GUID partition table (GPT) manipulator
delpart (8) - simple wrapper around the "del partition" ioctl
fdisk (8) - manipulate disk partition table
fixparts (8) - MBR partition table repair utility
gdisk (8)
超级会员免费看
订阅专栏 解锁全文
78

被折叠的 条评论
为什么被折叠?



