系统:ubuntu 9.04
chsh -l 不能用:
-----------------------------------------------
~$ chsh -l
chsh: invalid option -- 'l'
Usage: chsh [options] [LOGIN]
Options:
-h, --help display this help message and exit
-s, --shell SHELL new login shell for the user account
-----------------------------------------------
根据一些资料,”chsh -l“命令与"cat /etc/shells"命令的作用是一样的,返回系统中各种可用shell的位置。
下面是cat命令的返回值:
-----------------------------------------------
~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
-----------------------------------------------
不知道具体原因,待查。。。