Bash-interesting-command-examples

From I Will Fear No Evil
Revision as of 15:03, 15 March 2022 by Chubbard (talk | contribs) (Created page with "====Interesting one-liners==== * Find all drives and ignore loop devices <pre> root@kvm03:/var/log# lsblk | grep -v "loop\|NAME" | grep "^[a-z]\|^[A-Z]" | awk '{print $1}' sda...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Interesting one-liners

  • Find all drives and ignore loop devices
root@kvm03:/var/log# lsblk | grep -v "loop\|NAME" | grep "^[a-z]\|^[A-Z]" | awk '{print $1}'
sda
sdb
root@kvm03:/var/log#