QuestionQ3

Basic Unix Skills

Which command locates every directory inside the current user’s home directory?

  • A find ~ -type d
  • B find . -dir
  • C find / -d | home
  • D find -uid myname
  • E find -d home
Explanation

In a shell, ~ expands to the current user’s home directory. The find predicate -type d limits the results to directories.

Community Discussion

No comments yet. Be the first to start the discussion!