标题:
Linux 系统命令及其使用详解(大全) 19
[打印本页]
作者:
samwalton
时间:
2013-3-17 10:04
标题:
Linux 系统命令及其使用详解(大全) 19
名称:
chfn
使用权限:所有使用者
用法:
shell>> chfn
说明:提供使用者更改个人资讯
,
用于
finger and mail username
范例:
shell>> chfn
Changing finger information for user
Password: [del]
Name[]:Johnney Huang ###
提供
finger
时的资料
Office[]:NCCU
Office Phone[]: [del]
Home Phone[]: [del]
名称:
chsh
使用权限:所有使用者
用法:
shell>> chsh
说明:更改使用者
shell
设定
范例:
shell>> chsh
Changing fihanging shell for user1
Password: [del]
New shell [/bin/tcsh]: ### [
是目前使用的
shell]
[del]
shell>> chsh -l ###
展示
/etc/shells
档案内容
/bin/bash
/bin/sh
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
” finger [
返回
]
名称:
finger
使用权限:
所有使用者
使用方式:
finger [options] user[@address]
说明:
finger
可以让使用者查询一些其他使用者的资料。会列出来的资料有:
Login Name
User Name
Home directory
Shell
Login status
mail status
.plan
.project
.forward
其中
.plan ,.project
和
.forward
就是使用者在他的
Home Directory
里的
.plan , .project
和
.forward
等档案里的资料。如果没有就没有。
finger
指令并不限定于在同一伺服器上查询
,
也可以寻找某一个远端伺服器上的使用者。只要给一个像是
E-mail address
一般的地址即可。
把计
:
-l
多行显示。
-s
单行显示。这个选项只显示登入名称
,
真实姓名
,
终端机名称
,
闲置时间
,
登入时间
,
办公室号码及电话号码。如果所查询的使用者是远端伺服器的使用者
,
这个选项无效。
范例:下列指令可以查询本机管理员的资料:
finger root
其结果如下:
Login: root Name: root
Directory: /root Shell: /bin/bash
Never logged in.
No mail.
No Plan.
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/)
Powered by Discuz! 7.0.0