Menu
blog.headdesk.me
blog.headdesk.me

GNU moreutils

Posted on 2016/10/052016/10/05

Moreutils comes with additional Unix utilities. Sysadmin loves tools. Let’s see what tools are available.

# dpkg -L moreutils | grep /usr/bin/
/usr/bin/lckdo
/usr/bin/ts
/usr/bin/sponge
/usr/bin/chronic
/usr/bin/ifne
/usr/bin/vidir
/usr/bin/pee
/usr/bin/zrun
/usr/bin/vipe
/usr/bin/isutf8
/usr/bin/ifdata
/usr/bin/combine
/usr/bin/errno
/usr/bin/parallel
/usr/bin/mispipe

Now let’s see what they do:
lckdo – run a program with a lock held
ts – add a timestamp prefix to input
sponge – buffer inputs before writing to output
chronic – run command silently unless it fails or crashes
ifne – run command if stdin is not empty
vidir – edit filenames in a directory with vi
pee – pile outputs to commands
zrun – automatically uncompress arguments to command
vipe – pipe to vi, allows manual editing, and then pipe to next command
isutf8 – check whether files are valid UTF-8
ifdata – get network interface info without parsing ifconfig output (e.g. ifdata -pa virbr0 #prints just the IP address)
combine – combine sets of lines from two files using boolean operations
errno – look up errno names and descriptions
parallel – run programs in parallel
mispipe – pipe two commands, returning the exit status of the first

I absolutely love these utilities and have been using some of them for a while.

Inspired by: https://www.linux.com/learn/moreutils-your-linux-shell-tool-set

Loading

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Full text search

Recent Posts

  • Generate secure password
  • AWS Compute Savings Plans
  • AWS Zonal Shift
  • Coffee break…
  • Prevent private key from being committed to git
  • aws (14)
  • coffee (2)
  • headfi (1)
  • linux (9)
  • others (61)
  • security (2)
  • tech (41)
  • terraform (3)
  • wordpress (2)

Loading

apache aws awscli azure backup boot cloud coffee docker ec2 EL8 ElasticBeanstalk espresso featured git kernel lelit linux lvm meltdown MFA nat gateway php power proliant python rdp Redhat RHEL rpm Ryzen scp security smartarray smart switch snapshot spectre tech terraform ubuntu ubuntu upgrade vpn windows wordpress workspace

©2026 blog.headdesk.me | Powered by SuperbThemes