blkid
this is useful to get information about partitions. if they are formated or not and the UUID of them
by default partitions are now mounted using UUIds in fstab
you can also use
lsblk -fp
lsblk -fs
both will get you the UUID
====Finding files===
===find===
format is
| find | starting where | what | how |
what options are huge
| -name | case snesitive name of files |
| -iname | case insensitive name of files |
| -user | to search for files owned by a user |
| -group | files owned by a group |
| -uid | files by user id |
| -gid | files by group id |
| -perm | look for files with certain permissions add the -ls option so you can see permissions |
| -size | find files of certain size add **- or +** so it looks for bigger than or less than can be used sevral times ti soecify between |
| -mmin | to look for modification time |
lots more options and options can be added to command for complex searches
===locate===
this one uses a DB that is updated daily.
you might need to update this db manually
updatedb
then run command specifying file name you want
for example
locate passwd
options are -i for case insenitive and -n to limit number of results