几种查看linux版本信息的方法: 1. uname -a 2. cat /proc/version 3. cat /etc/issue 4. lsb_release -a详解 lsb_release -a 1. 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如: 1. [root@3.5.5Biz-46 ~]# lsb_release -a 2. LSB Version: 1.3 3. Distributor ID: RedHatEnterpriseAS 4. Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1) 5. Release: 4 6. Codename: NahantUpdate1 7. [root@3.5.5Biz-46 ~]# 这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版在每个用户的家目录里,看文本命令很多,如: cat \ more \ less \ vi 等等这些命令都可以看某个用户的 .bash_history 文件。例:# more ~user/.bash_history 看 user 用户的历史命令,但是你要访问的权限才行。忘说了,看的是上次的历史命令 :em02:
取消
评论
如果觉得《linux查询用过的历史命令 在linux中 怎麼查看系统的版本 怎麼查看自己用过的历史命令...》对你有帮助,请点赞、收藏,并留下你的观点哦!