What are some lesser known but useful Unix commands

A few that come to mind, some less known, some more:
 
 xargs or parallel: run things in parallel, with lots of options
 sed and awk: more well-known but still super useful for processing text files, and faster than Python or Ruby
 m4: simple macro processor
 screen: powerful terminal multiplexing and session persistence
 yes: print a string a lot
 cal: nice calendar
 env: run a command (useful in scripts)
 look: find English words (or lines in a file) beginning with a string
 cut and paste and join: data manipulation
 fmt: format text paragraphs
 pr: format text into pages/columns
 fold: wrap lines of text
 column: format text into columns or tables
 expand and unexpand: convert between tabs and spaces
 nl: add line numbers
 seq: print numbers
 bc: calculator
 factor: factor integers
 nc: network debugging and data transfer
 dd: moving data between files or devices
 file: identify type of a file
 stat: file info
 tac: print files in reverse
 shuf: random selection of lines from a file
 comm: compare sorted files line by line
 hd and bvi: dump or edit binary files
 strings: extract text from binary files
 tr: character translation or manipulation
 iconv or uconv: conversion for text encodings
 split and csplit: splitting files
 7z: high-ratio file compression
 ldd: dynamic library info
 nm: symbols from object files
 ab: benchrmarking web servers
 strace: system call debugging
 mtr: better traceroute for network debugging
 cssh: visual concurrent shell
 wireshark and tshark: packet capture and network debugging
 host and dig: DNS lookups
 lsof: process file descriptor and socket info
 dstat: useful system stats
 iostat: CPU and disk usage stats
 htop: improved version of top
 last: login history
 w: who's logged on
 id: user/group identity info
 sar: historic system stats
 iftop or nethogs: network utilization by socket or process
 ss: socket statistics
 dmesg: boot and system error messages
 (Linux) hdparm: SATA/ATA disk manipulation/performance
 (Linux) lsb_release: Linux distribution info
 (Linux) lshw: hardware information
 fortune, ddate, and sl: um, well, it depends on whether you consider steam locomotives and Zippy quotations "useful"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值