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

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

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

Loading

apache apigateway aws awscli azure backup cloud coffee docker ec2 EL8 ElasticBeanstalk enpass espresso featured kernel lelit linux lvm meltdown MFA nat gateway nginx php proliant python rdp Redhat RHEL rpm Ryzen s2s scp serverless site-to-site smartarray snapshot spectre tech terraform transit gateway ubuntu ubuntu upgrade vpn wordpress

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