Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Today I was just curious which directory holds the deepest file on my Linux PC.
- The below command will print the dir with maximum depth.
- >find / -type d | awk -F "/" -v slash=0 '{if (NF > slash) { slash=NF; DIR=$0}} END { print DIR":"slash}'
- The result I got is 16 as max depth which was a ruby dir.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement