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
相关阅读 更多 +
- 系统休眠文件删除后果 如何删除计算机的休眠文件 2025-04-22
- 站群服务器是什么意思 站群服务器的作用 站群服务器和普通服务器的区别 2025-04-22
- jQuery插件有何作用 jQuery插件的使用方法 2025-04-22
- jQuery插件有哪些种类 简单的jQuery插件实例 2025-04-22
-