Linux · question
Question 3 of 52
How do you find files and directories in Linux?
← All Linux questions
Re-explain
Multiple commands are available for finding files:
find command (most powerful):
# Find by name
find /path -name "filename"
find . -name "*.txt"
# Find by type
find /home -type f # Files only
find /home -type d # Directories only
# Find by size
find /var -size +100M # Files larger than 100MB
find . -size -1k # Files smaller than 1KB
# Find by permissions
find . -perm 755
find . -perm -u+x # Files executable by owner
# Find and execute action
find /tmp -name "*.tmp" -delete
find . -name "*.log" -exec rm {} \;
locate command (faster, uses database):
locate filename
updatedb # Update locate database
which/whereis commands:
which python # Find executable in PATH
whereis python # Find binary, source, manual
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.
Why there's no diagram: “”
The diagram below the answer is the concept .
Jump to it ↓
What should the new diagram focus on?
How well did you know this?
AI:
Saved in this browser - sign in to keep your review list.
How should your speech become text?
Listening… your words appear above as you speak - tap Stop when you're done.
Recording · cr - tap Stop & transcribe when you're done.
Transcribing with AI…
Voice:
Keep going - a few more words and AI can grade it.
Interview lens
Likely follow-ups, what you can say, and the weak answers to avoid.
Pro · $10/mo
45 of 52 Linux answers are in Pro.
Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.
-
Full answers + code
-
AI explanations, simpler or deeper
-
1,000 AI credits / month
-
Cancel anytime