Linux 常用小命令

1. find(在指定目录下搜索指定文件名的文件)

##在bin目录下查找名为insmanyou的文件##
[liuweifeng@mydev ~]$ find ./bin/  -name insmanyou 

2. groups (查看当前用户的用户组)

[liuweifeng@mydev ~]$ groups

3. su (切换当前登录用户)

[liuweifeng@mydev ~]$ su root

4. sudo(执行root有权限执行的命令)

[liuweifeng@mydev ~]$ sudo svn info

5. ps aux(查看所有进程)

[liuweifeng@mydev ~]$ ps aux

6. kill(强制关闭指定进程)

[liuweifeng@mydev ~]$ kill 67788

7. history(查看当前用户在本机上执行过的命令)

[liuweifeng@mydev ~]$ history 10

8. pwd(查看当前所在路径)

[liuweifeng@mydev ~]$ pwd
/home/liuweifeng

9. man(针对某一命令,寻求帮助)

[liuweifeng@mydev ~]$ man rm

10. wget(下载网络文件)

[liuweifeng@mydev ~]$ wget http://521-wf.com

11. whoami(查看当前登录用户名)

[root@localhost ~]# whoami
root

12. whois(查看某域名的注册信息)

[root@localhost ~]# whois 521-wf.com
 

标签: shell, 命令

18
Feb 2010
AUTHOR WiFeng
CATEGORY Web
COMMENTS No Comments

添加新评论 »

   点击刷新验证码