linux中man用法(转)

34 篇文章 0 订阅
代號代表內容
1使用者在shell中可以操作的指令或可执行档
2系統核心可呼叫的函数与工具等
3一些常用的函数(function)与函数库(library),大部分是C的函数库(libc)
4装置档案的说明,通常在/dev下的档案
5设定档或者是某些档案的格式
6游戏(games)
7惯例与协定等,例如Linux档案系统、网络协定、ASCII code等等的說明
8系統管理員可用的管理指令
9跟kernel有关的文件

如:man 5 data

大致上理解了man page的內容后,那么在man page中我还可以利用哪些按键來帮忙查找呢?首先, 如果要向下翻页的話,可以按下键盘的空白键,也可以使用[Page Up]与[Page Down]來翻页呢!同时,如果你知道某些关键字的话, 那么可以在任何時候输入『/word』,來主动搜寻关键字!例如在上面的搜寻中,我输入了『/date』会变成怎樣?

PASSWD(1)                       User utilities                       PASSWD(1)

NAME
       passwd - update user¡¯s authentication tokens

SYNOPSIS
       passwd [-k] [-l] [-u [-f]] [-d] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [username]

DESCRIPTION
       The passwd utility is used to update user¡¯s authentication token(s).

       This  task  is achieved through calls to the Linux-PAM and Libuser API.  Essentially, it initializes itself as a "passwd" service with
       Linux-PAM and utilizes configured password modules to authenticate and then update a user¡¯s password.

       A simple entry in the global Linux-PAM configuration file for this service would be:

        #
        # passwd service entry that does strength checking of
        # a proposed password before updating it.
        #
        passwd password requisite pam_cracklib.so retry=3
        passwd password required pam_unix.so use_authtok
        #
PASSWD(5)                  Linux Programmer¡¯s Manual                 PASSWD(5)

NAME
       passwd - password file

DESCRIPTION
       Passwd  is  a  text file, that contains a list of the system¡¯s accounts, giving for each account some useful information like user ID,
       group ID, home directory, shell, etc.  Often, it also contains the encrypted passwords for each account.  It should have general  read
       permission (many utilities, like ls(1) use it to map user IDs to user names), but write access only for the superuser.

       In  the good old days there was no great problem with this general read permission.  Everybody could read the encrypted passwords, but
       the hardware was too slow to crack a well-chosen password, and moreover, the basic assumption used to be that of a friendly  user-com-
       munity.   These  days  many  people  run  some  version  of  the shadow password suite, where /etc/passwd has asterisks (*) instead of
       encrypted passwords, and the encrypted passwords are in /etc/shadow which is readable by the superuser only.

       Regardless of whether shadow passwords are used, many sysadmins use an asterisk in the encrypted password field to make sure that this
       user can not authenticate him- or herself using a password. (But see the Notes below.)

       If you create a new login, first put an asterisk in the password field, then use passwd(1) to set it.

既然有man page,自然就是因为有一些文件资料,所以才能夠以man page读出來!那么这些man page的资料 放在哪里呢?不同的distribution通常可能有点差异性,不过,通常是放在/usr/share/man这个目录里,然而,我们可以透过修改他的man page搜寻路径來改善这个目录的问题!修改/etc/man.config (有的版本为man.conf或manpath.conf)即可!至于更多的关于man的讯息你可以使用『 man man 』來查询呦!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值