Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Unix some practical but unknown commands

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There are many Linux commands that come to mind, some of which are unknown, while others are common, as follows:

Xargs or parallel: running some programs in parallel, there are many options for commands

Sed and awk: a well-known and useful command for working with text files, faster than Python and Ruby

M4: simple macro processing commands

Screen: a powerful terminal reuse and session persistence tool, see http://www.ibm.com/developerworks/cn/linux/l-cn-screen/ for details

Yes: for more information on repeated output strings, please see http://codingstandards.iteye.com/blog/826940.

Cal: a very beautiful calendar

Env: run a command, which is very useful in scripts

Look: find English words that start with a string

Cut and paste and join: data manipulation command

Fmt: format a text segment

Pr: format a string of text or a larger file in page / column units, see http://hi.baidu.com/mchina_tang/item/1ce11d5d317dfc05aaf6d70d for details

Fold: wrapping text

Column: formatting text into columns or tables

Expand and unexpand: converting between tabs and spaces

Nl: add line number

Seq: print line number

Bc: calculator

Factor: the factor of the output integer, and the prime factor of the integer output by factor

Nc: network debugging and data transfer

Dd: moving data between files and devices

File: determine the type of a file

Stat: viewing file statu

Tac: outputs the contents of the file from the last line, as opposed to the cat output

Shuf: randomly selects data by row for a file

Comm: compare an ordered file by line

Hd and bvi: exporting or editing binaries

Strings: viewing the contents of binaries

Tr: character translation or manipulation character

Iconv or uconv: converting encoded strings

Split and csplit: dividing files

7z: compressed files with high compression rate

Ldd: viewing dynamic library information

Nm: view the symbol table in the target file

Ab: a stress testing tool for website servers

Strace: debugging system calls

Mtr: better route tracking tool for network debugging

Cssh: visual concurrent shell

Wireshark and tshark: packet capture and network debugging

Host and dig: finding DNS

Lsof: view process file descriptors and socket information

Dstat: a useful tool for system data statistics

Iostat: CPU and disk usage statistics

Htop: an improved version of top

Last: login history

W: currently logged in user

Id: view user / group presentation information

Sar: view Historical system Statistics tool

Iftop or nethogs: check the network utilization of socket or process

Ss: viewing statistics

Dmesg: boot or system error message

(Linux) hdparm: displays or sets disk parameters

(Linux) lsb_release: view linux system release information

(Linux) lshw: view hardware information

Fortune, ddate, and sl: it depends on whether you think the steam engine or Bibi quotation is useful.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report