I know it's been a while, I have not found much to write about and have been busy at work, sounds like a lame excuses and you're probably right, howeverI have just found a new command I have never heard of before and needed to share it. I am not sure how I have missed this one in my circles, but at last we have been connected.
There have been countless times where I have needed to know the UID of disks or the file type, device name etc and spend my time typing in long commnads and looking through /dev/disk/by-xxx then I read I only needed to type one magic command and all my little one liners are no longer required.
What is the magic command well, it's a simple as:
# blkid
output:
[root@unix ~]# blkid
/dev/hda1: LABEL="/boot" UUID="662aaf16-9ec7-44e3-9161-43a0813559bb" SEC_TYPE="ext3" TYPE="ext2"
/dev/hda2: LABEL="/" UUID="0d9be1c1-3daf-4736-8224-deaea3601f1d" SEC_TYPE="ext3" TYPE="ext2"
/dev/hda3: LABEL="/extra" UUID="d63697eb-4a6e-41d0-b0ca-83a199296430" SEC_TYPE="ext3" TYPE="ext2"
/dev/hda4: UUID="7dfe75fc-9939-4210-b873-a85099703c3b" SEC_TYPE="ext3" TYPE="ext2"
/dev/hda5: LABEL="/shared" UUID="4c626dda-4614-48c2-b98c-0e74bed81ec8" SEC_TYPE="ext3" TYPE="ext2"
Thought I'd share so someone else may have there life enlightened by this knowledge.