Linux命令详解(一)
今日详解
❍
locate
▶locate 命令可以快速的定位文件,特别是在用户完全不知道文件放在哪里的时候,locate命令是个不错的选择,如下:
[WWW@log01 ~]$ locate *exe/usr/bin/gzexe/usr/lib64/python2.6/distutils/command/wininst-6.0.exe/usr/lib64/python2.6/distutils/command/wininst-7.1.exe/usr/lib64/python2.6/distutils/command/wininst-8.0.exe/usr/lib64/python2.6/distutils/command/wininst-9.0-amd64.exe/usr/lib64/python2.6/distutils/command/wininst-9.0.exe/xcatpost/upflagx64.exe/xcatpost/upflagx86.exe
❍
who
▶who命令可以查看当前系统中有哪些人登陆,以及他们都工作在哪个控制台上,如下:
[WWW@log01 ~]$ who
...
pts/37 2019-05-06 10:27 (10.0.88.12)
...
❍
uname
▶uname命令用于显示当前系统的版本信息,如下:
[WWW@log01 ~]$ unameLinux
▶-a 选项的uname命令可以显示当前操作系统的所有有用信息,如下:
[WWW@log01 ~]$ uname -aLinux log01 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
▶大部分时候,只需要知道内核信息,此时可以使用-r选项,如下:
[WWW@log01 ~]$ uname -r2.6.32-220.el6.x86_64
❍
pwd
▶pwd命令会显示当前所在的位置,即工作目录,如下:
[WWW@log01 ~]$ pwd/nu/u/home/WWW
❍
man
▶man命令可以方便的获取某个命令的帮助信息,如下:
[WWW@log01 ~]$ man pwdPWD(1) User Commands PWD(1)NAME pwd - print name of current/working directorySYNOPSIS pwd [OPTION]...DESCRIPTION Print the full filename of the current working directory. -L, --logical use PWD from environment, even if it contains symlinks -P, --physical avoid all symlinks --help display this help and exit --version output version information and exit NOTE: your shell may have its own version of pwd, which usually supersedes the version described here. Please refer to your shell’s documentation for details about the options it supports.AUTHOR Written by Jim Meyering.REPORTING BUGS Report pwd bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/>:
下期预告:
cat | mkdir | watch | * | wget
每周三、周六更新
道阻且长 不忘初心
守卫蓝天 同舟共济
![b524f43126dfe25ee5236ca8fcab1764.png](https://i-blog.csdnimg.cn/blog_migrate/9cd518ece99aae412e9b80eae74431cf.jpeg)