Linux command Miscellaneous

Source: Internet
Author: User

Ping with time stamp:

Ping 10.23.46.37-c 10000 | awk ' {print $ ' \ t ' strftime ("%h:%m:%s", Systime ())} '


Bulk execution of commands, such as bulk ignoring dependent offload:

Rpm-qa|grep Package name |xargs rpm-e--nodeps


Batch Kill Process:

PS Ax|grep Process name |awk ' {print $} ' | Xargs kill-9


Mount Disc Image:

Mount-t Iso9660-o Loop *.iso/dir


Execute command once per second:

watch-d-N 1 ' command '


LoadRunner Monitoring Linux Resources:

Service xinetd Restart

Rpc.rstatd


transcoding format:

Iconv-f gbk-t UTF-8 file1-o file2


Grab Bag:

Tcpdump-i eth0-s 60000-w/root/test.pcap


To set the system encoding format:

/etc/sysconfig/i18n

Lang= "en_US. UTF-8 "

Sysfont= "Latarcyrheb-sun16"


View directory Size-level 1:

Du-h--max-depth=1


To view the CentOS version:

Lsb_release-a

View number of bits:

Uname-a


Linux command Miscellaneous

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.