Bash-interesting-command-examples
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#