码迷,mamicode.com
首页 > 系统相关 > 详细

linux命令单次或组合样例

时间:2014-07-13 17:55:28      阅读:352      评论:0      收藏:0      [点我收藏+]

标签:color   os   io   linux   sql   re   

[root@localhost ~]# which passwd
/usr/bin/passwd
[root@localhost ~]# whereis passwd
passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1.gz /usr/share/man/man5/passwd.5.gz
[root@localhost ~]# locate passwd
/etc/passwd
/etc/passwd-
/etc/pam.d/passwd
/etc/security/opasswd
/lib64/security/pam_passwdqc.so
/lib64/security/pam_unix_passwd.so
[root@localhost ~]# find / -name passwd
/selinux/class/passwd
/selinux/class/passwd/perms/passwd
/usr/bin/passwd
/etc/pam.d/passwd
/etc/passwd

[root@localhost ~]# mkdir wode
[root@localhost ~]# locate wode
[root@localhost ~]# updatedb
[root@localhost ~]# locate wode
/root/wode

[root@localhost ~]# type type
type is a shell builtin
[root@localhost ~]# type cd
cd is a shell builtin
[root@localhost ~]# type if
if is a shell keyword
[root@localhost ~]# type ssh
ssh is /usr/bin/ssh
[root@localhost ~]# type -p ssh
/usr/bin/ssh
[root@localhost ~]# type ls
ls is aliased to `ls --color=auto‘
[root@localhost ~]# type cp
cp is aliased to `cp -i‘

[root@localhost ~]# ifconfig eth0 192.168.2.128/24

[root@localhost wode]# ls -altr
[root@localhost wode]# ls -alt
总用量 140
drwxr-xr-x. 2 root root   4096 2月  27 12:53 .
dr-xr-x---. 7 root root   4096 2月  27 12:53 ..
-rw-r--r--. 1 root root    219 2月  17 02:12 fi
-rw-r--r--. 1 root root     97 2月  16 13:02 ee
-rw-r--r--. 1 root root     97 2月  16 13:02 dd
-rw-r--r--. 1 root root 122479 2月  16 11:02 aa

[root@localhost ~]# du -ab --max-depth=1|sort -n
18      ./.bash_logout
58      ./.lesshst
66      ./.xauth1RcH8v
100     ./.cshrc
129     ./.tcshrc
176     ./.bash_profile
176     ./.bashrc
219     ./si
586     ./.sqlite_history
1160    ./.mysql_history

[root@localhost ~]# find / -name "*.h" | xargs ls -alt|more
[root@localhost ~]# find / -name "*.c" | xargs grep "printf"|more
[root@localhost ~]# find ./ ! -type d
./.lesshst
./.sqlite_history
./.gconfd/saved_state
./.bashrc

[root@fileserv ~]# smbpasswd lizongbin
[root@coreserv ~]# snmpwalk -c 123456 -O n -v 2c 192.168.2.254
[root@coreserv ~]# htpasswd -c /usr/local/nagios/htpasswd.users 用户名 新密码

[root@com1 ~]# watch -d ‘ipvsadm -l --stats‘
[root@com1 ~]# watch -d ‘netstat -an|grep 10000‘
[root@com1 ~]# tcpdump port 50001 udp
[root@com1 ~]# netstat -anp|grep 41934


 

linux命令单次或组合样例,布布扣,bubuko.com

linux命令单次或组合样例

标签:color   os   io   linux   sql   re   

原文地址:http://www.cnblogs.com/createyuan/p/3841194.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!