From 42c3744ad34c9eb5982ea903531587db34f19834 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 2 Jul 2020 20:11:55 -0500 Subject: [PATCH] Added printuuid and printpartuuid because blkid syntax escapes me --- .bashrc.d/10-alias.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc.d/10-alias.bash b/.bashrc.d/10-alias.bash index d373002..167903b 100644 --- a/.bashrc.d/10-alias.bash +++ b/.bashrc.d/10-alias.bash @@ -17,3 +17,9 @@ alias nmap='sudo -E nmap' # Switch $TERM temporarily (for logging into machines that don't have tmux-256color terminfo) alias screenterm='TERM=screen-256color' + +# Output only the UUID of the target device +alias printuuid='blkid -o value -s UUID' + +# Output only the PARTUUID of the target device +alias printpartuuid='blkid -o value -s PARTUUID'