Advertisement
FranzVuttke

cool_oneliners.sh

May 31st, 2025 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | Source Code | 0 0
  1. #
  2. # list bluetooth devices
  3. #
  4. bluetoothctl devices | cut -d " " -f2,3 | while read line || [[ -n $line ]]; do echo $line ; done
  5.  
  6. #
  7. # info about OS version, distribution and kernel version
  8. #
  9. alias eche='echo -e'
  10. eche -n $(cat /etc/*-release | grep -i "^name" | cut -d "=" -f2) $(cat /etc/*-release | grep -i "^version=" | cut -d = -f2) &&
  11. [[ -v XDG_CURRENT_DESKTOP ]] && eche -n " - $XDG_CURRENT_DESKTOP" || eche -n " - command line mode ...\007"  && echo " Kernel: "`uname -r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement