One-Liner: Pull details of all attached storage.

I took one Linux Desktop class back before I realized what a waste of time college was. Name something in Windows, I know the commands and shortcuts because years of practical experience > anything in a classroom. In *nix, I find myself googling and when I do have something that works, I save it into a network shared scripts directory for easy access on any of my *nix systems. This one-liner that I use often returns details of all attached storage devices. BTW: I only remember two things from that class, “tmux” which is infinitely useful for long-running scripts… and “finger” / “touch” which have no practical use for me, but I still find hilarious because I’m like fifteen years old.

lsblk -d -o NAME,SIZE,MODEL,SERIAL,TYPE | grep 'disk'