Chinaunix

标题: 与Shell有关的命令有哪些? [打印本页]

作者: SeAL80s    时间: 2015-01-21 20:07
标题: 与Shell有关的命令有哪些?
    比如,如何确定自己当前运行的是哪个shell? sh,bash,csh

    如何知道系统都安装了哪些shell?

    Terminal-Emulator会挑特定的Shell吗?好像记得KDE下的Terminal-Emulator有选项,指定要运行的Shell路径/bin/bash,但是XFCE下的Terminal-Emulator ,xfce4-terminal没见着有啊。是要chsh /usr/bin/zsh后(注销)重启,xfce4-terminal就运行zsh了吗?xfce4-terminal有配置文件吗?

    多谢指教!
作者: Shell_HAT    时间: 2015-01-22 09:28
  1. echo $0
  2. echo $SHELL
复制代码

作者: cu_shell    时间: 2015-01-22 09:53
学习了。
  1. [root@localhost ~]#
  2. [root@localhost ~]# echo $0
  3. -bash
  4. [root@localhost ~]# echo $SHELL  
  5. /bin/bash
  6. [root@localhost ~]# ls -l /bin/sh
  7. lrwxrwxrwx. 1 root root 4 12月  5 00:38 /bin/sh -> bash
  8. [root@localhost ~]#
复制代码

作者: 关阴月飞    时间: 2015-01-22 10:01
回复 1# SeAL80s


    如何知道系统都安装了哪些shell?
  1. cat /etc/shells
复制代码

作者: SeAL80s    时间: 2015-01-22 10:07
回复 2# Shell_HAT


    多谢!

    知道的,就两行,十几个字符,不知道的就天上地下的搜...




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2