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

facebookShare on Facebook
TwitterTweet

Leave a Reply Cancel reply

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

Full text search

Recent Posts

  • Terraform and segregated permissions
  • LVM Compression and Deduplication
  • Edit gpg encrypted file with vim
  • Lelit Elizabeth PL92T Pressure Tuning
  • jq transformation
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (6)
  • others (58)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup clearlinux cloud coffee docker DOCP ec2 EL8 epyc espresso featured gpg jenkins kernel lelit linux lvm meltdown memory MFA mikrotik php python rdp Redhat RHEL roasting rpm Ryzen site-to-site snapshot spectre tech terraform tuning ubuntu ubuntu upgrade vim vpn wordpress xdotool

©2023 blog.headdesk.me | Powered by SuperbThemes & WordPress