What is the difference between `find` and `locate`?
BeginnerConceptFilesystem Hierarchy, Inodes & Links
Answer
find walks the filesystem live, so it is accurate but slower, and supports rich predicates. locate (mlocate/plocate) searches a prebuilt database updated by updatedb, so it is instant but can be stale.
find /var/log -name '*.log' -size +100M -mtime -1
find / -xdev -perm -4000 -type f 2>/dev/null
More on Filesystem Hierarchy, Inodes & Links
Explain the purpose of the main top-level directories in the FHS.BeginnerWhat is the "/usr merge"?IntermediateWhat are /proc and /sys?BeginnerWhat is an inode? What does it store and what does it NOT store?BeginnerA disk shows free space but you get "No space left on device". Why?IntermediateWhat is a hard link?Beginner