Like the title says; I need to find the amount of sub directories and files in 'documents/'. The command runs fine but its the not the right answer. Here's my command :
There is nothing wrong but a typo. -type f shows files. -type d shows directories. \( -type f -o -type d \) shows both.
Assuming there are only files and directories, you can simply show everything