On most linux systems we can use tree
to dump the directory structure, but if for some reason the tree command isn’t available, we can use the following one-line command:
find / -type d | perl -lne 'print tr:/::, " $_"' | sort -n | cut -d' ' -f2
Notes on penetration testing journeys
On most linux systems we can use tree
to dump the directory structure, but if for some reason the tree command isn’t available, we can use the following one-line command:
find / -type d | perl -lne 'print tr:/::, " $_"' | sort -n | cut -d' ' -f2