Linux command single or combined sample

Source: Internet
Author: User
Tags builtin

[email protected] ~]# which passwd
/usr/bin/passwd
[Email protected] ~]# Whereis passwd
passwd:/usr/bin/passwd/etc/passwd/usr/share/man/man1/passwd.1.gz/usr/share/man/man5/passwd.5.gz
[Email protected] ~]# locate passwd
/etc/passwd
/etc/passwd-
/etc/pam.d/passwd
/etc/security/opasswd
/lib64/security/pam_passwdqc.so
/lib64/security/pam_unix_passwd.so
[Email protected] ~]# Find/-name passwd
/selinux/class/passwd
/selinux/class/passwd/perms/passwd
/usr/bin/passwd
/etc/pam.d/passwd
/etc/passwd

[Email protected] ~]# mkdir Wode
[Email protected] ~]# Locate Wode
[Email protected] ~]# UpdateDB
[Email protected] ~]# Locate Wode
/root/wode

[[Email protected] ~]# type type
Type is a shell builtin
[[Email protected] ~]# type cd
CD is a shell builtin
[[Email protected] ~]# type if
If is a shell keyword
[[Email protected] ~]# type SSH
SSH is/usr/bin/ssh
[[email protected] ~]# type-p SSH
/usr/bin/ssh
[[Email protected] ~]# type ls
LS is aliased to ' LS--color=auto '
[[Email protected] ~]# type CP
CP is aliased to ' cp-i '

[Email protected] ~]# ifconfig eth0 192.168.2.128/24

[[email protected] wode]# ls-altr
[[email protected] wode]# ls-alt
Total usage: drwxr-xr-x. 2 root root   4096 February   27 12:53.
Dr-xr-x---. 7 root root   4096 February   27 12:53.
-rw-r--r--. 1 root root    219 February   02:12 fi
-rw-r--r--. 1 root root     97 February   13:02 EE
-rw-r--r--. 1 root root     97 February   13:02 DD
-rw-r--r--. 1 root Root 122479 February   11:02 AA

[Email protected] ~]# Du-ab--max-depth=1|sort-n
/.bash_logout.
/.lesshst.
/.xauth1rch8v.
/.CSHRC.
129./.TCSHRC
176./.bash_profile
176./.BASHRC
219./si
586./.sqlite_history
1160./.mysql_history

[Email protected] ~]# Find/-name "*.h" | Xargs Ls-alt|more
[Email protected] ~]# Find/-name "*.C" | Xargs grep "printf" |more
[[email protected] ~]# find./! -type D
./.lesshst
./.sqlite_history
./.gconfd/saved_state
./.BASHRC

[Email protected] ~]# smbpasswd Lizongbin
[Email protected] ~]# snmpwalk-c 123456-o n-v 2c 192.168.2.254
[[email protected] ~]# htpasswd-c/usr/local/nagios/htpasswd.users user name new password

[Email protected] ~]# watch-d ' ipvsadm-l--stats '
[Email protected] ~]# watch-d ' netstat-an|grep 10000 '
[[email protected] ~]# tcpdump port 50001 UDP
[Email protected] ~]# Netstat-anp|grep 41934


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.