Linux常用的一些命令
时间:2010-09-27 来源:joejoe0332
一、找出用户及其Linux系统的名字:
student@ubuntu:~$ whoami #显示用户ID
student
student@ubuntu:~$ hostname #显示登录上的主机名字
ubuntu
student@ubuntu:~$ uname #显示运行在计算机上的操作系统的信息
Linux
二、用man来显示帮助手册,按空格键,一次一满屏的查看帮助手册,按q退出。
三、用whatis得到更任何Linux命令更短描述
student@ubuntu:~$ whatis man
man (7) - macros to format man pages
man (1) - an interface to the on-line reference manuals
四、判断默认shell的类型
student@ubuntu:/etc/profile.d$ echo $SHELL
/bin/bash
student@ubuntu:~$ whoami #显示用户ID
student
student@ubuntu:~$ hostname #显示登录上的主机名字
ubuntu
student@ubuntu:~$ uname #显示运行在计算机上的操作系统的信息
Linux
二、用man来显示帮助手册,按空格键,一次一满屏的查看帮助手册,按q退出。
三、用whatis得到更任何Linux命令更短描述
student@ubuntu:~$ whatis man
man (7) - macros to format man pages
man (1) - an interface to the on-line reference manuals
四、判断默认shell的类型
student@ubuntu:/etc/profile.d$ echo $SHELL
/bin/bash
相关阅读 更多 +