SSH people
Thread started by
Roadblock at 09.4.10 - 4:38 pm
is there a command that lets me count the total number of files (recursive through all directories) on the root folder of a server!?
reply
find . | wc -l
just in case you don't know what that line symbol is, it's called a "pipe" shift + backslash = |
the command above prints the total number of files in the current directory you're in. change the "." to whatever path you want to count. or just "cd" to the directory you want to count.
XPC09.4.10 - 6:24 pm
reply
Oh, by the way. I ordered a wolfpack shirt from you and it just came, it's pretty sweet. Now all I need is to win some dogtags.
XPC09.4.10 - 6:26 pm
reply
that includes directories and symbolic links. if you want just files in all subdirectories use this:
find . -type f | wc -l
aaron09.9.10 - 12:29 am
reply