Some useful but unknown Unix commands

Source: Internet
Author: User
Tags processing text website server
Many Linux commands come to mind, some of which are unknown, and others are very common, as follows: xargsorparallel: run some programs in parallel. The command has many options: sedandawk: widely known and useful commands for processing text files, such as Python and R

Many Linux commands come to mind, some of which are unknown and others are common, as follows:

  • Xargs or parallel: runs some programs in parallel and has many options for commands.
  • Sed and awk: widely known and useful command for processing text files, faster than Python and Ruby
  • M4: simple macro processing command
  • Screen: powerful terminal reuse and session persistence tools, see http://www.ibm.com/developerworks/cn/linux/l-cn-screen/
  • Yes: repeated output strings see http://codingstandards.iteye.com/blog/826940
  • Cal: very nice calendar
  • Env: run a command, which is very useful in scripts.
  • Look: search for English words starting with a string
  • Cut and paste and join: data operation command
  • Fmt: format a text segment
  • Pr: format a string of text or a large file in units of a page/column, see the http://hi.baidu.com/mchina_tang/item/1ce11d5d317dfc05aaf6d70d
  • Fold: wrap text
  • Column: format text into columns or tables
  • Expand and unexpand: convert between tabs and spaces
  • Nl: add row number
  • Seq: print the row number
  • Bc: Calculator
  • Factor: the factor that outputs an integer. The factor outputs an integer prime factor.
  • Nc: Network debugging and data transmission
  • Dd: move data between files and devices
  • File: determines whether it is a file.
  • Stat: view the file status
  • Tac: output file content from the last line, which is opposite to cat output
  • Shuf: randomly selects data for a file by row.
  • Comm: compare an ordered file by row
  • Hd and bvi: outputs or edits binary files
  • Strings: view the content in the binary file
  • Tr: Character translation or operation character
  • Iconv or uconv: the string to be converted.
  • Split and csplit: divide files
  • 7z: compressed files with high compression ratio
  • Ldd: View dynamic library information
  • Nm: view the symbol table in the target file
  • AB: website server stress testing tool
  • Strace: Debug System calls
  • Mtr: a better route tracking tool for network debugging
  • Cssh: visual concurrent shell
  • Wireshark and tshark: packet capture and network debugging
  • Host and dig: find DNS
  • Lsof: View process file descriptors and socket information
  • Dstat: a useful statistical tool for system data.
  • Iostat: CPU and disk usage statistics
  • Htop: Improved version of top
  • Last: logon history
  • W: current login user
  • Id: View user/group representation information
  • Sar: Tools for viewing historical system Statistics
  • Iftop or nethogs: view the network utilization of the socket or process
  • Ss: View statistics
  • Dmesg: Startup or system error message
  • (Linux) hdparm: displays or sets disk parameters.
  • (Linux) lsb_release: view the release version of the linux system
  • (Linux) lshw: View hardware information
  • Fortune, ddate, and sl: It depends on whether you think the steam engine is more useful than quotes.

For more commands, see Joshua Levy's reply in another Q & A Post, "command line saving skills that every Linux user should understand.

Original article: Quora-Joshua Levy translation: Bole online-Jerry

Related Article

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.