官术网_书友最值得收藏!

Getting additional information about commands

As we progress, you may see this book use many commands extensively and without exhaustive explanations. Without polluting this entire book with an introduction to Linux and useful commands, there are a couple of commands available that are really handy: man and info.

The man command, or manual command, is quite extensive and even has multiple sections when the same entry exists in different categories. For the purposes of investigating executable programs or shell commands, category 1 is sufficient. Let's look at the entry for the mount command:

$ man mount
...
MOUNT(8) System Administration MOUNT(8)
NAME
mount - mount a filesystem
SYNOPSIS
mount [-l|-h|-V]
mount -a [-fFnrsvw] [-t fstype] [-O optlist]
mount [-fnrsvw] [-o options] device|dir
mount [-fnrsvw] [-t fstype] [-o options] device dir
DESCRIPTION
All files accessible in a Unix system are arranged in one big tree, the
file hierarchy, rooted at /. These files can be spread out over sev‐
eral devices. The mount command serves to attach the filesystem found
on some device to the big file tree. Conversely, the umount(8) command
will detach it again.
...
(Press 'q' to Quit)
$

Alternatively, there is the info command, which will give you information should info pages exist for the item you are looking for.

Getting used to the style of the man and info pages can easily save you time by allowing you to access information quickly, especially if you don't have the internet.
主站蜘蛛池模板: 云梦县| 榕江县| 普洱| 高碑店市| 东乌珠穆沁旗| 昭苏县| 旌德县| 奉贤区| 湖南省| 罗平县| 榆中县| 平遥县| 吉木乃县| 汉沽区| 松桃| 泾川县| 景宁| 报价| 宁蒗| 甘洛县| 姚安县| 平舆县| 盐边县| 慈利县| 内黄县| 辽阳市| 广宗县| 福泉市| 深圳市| 阿尔山市| 建平县| 江津市| 沽源县| 南宁市| 张北县| 涡阳县| 黔东| 澎湖县| 上林县| 斗六市| 龙海市|