I'm curious if the man pages on ls and vdir are complete. They both look the same. I used the diff command to compare the man pages and they were the same. I know they should be different since the actions are different.
Also the "ls -ld" command is not working the way I expect it to work. I would expect it to list all the information of the subdirectories, but it only gives the current directory information. So I added the recursive option and that isn't changing my output at all. Can anyone explain its not showing all subdirectories?
ls -ld
drwx------ 49 bob bob 12288 2010-05-30 21:54
ls -ldR
drwx------ 49 bob bob 12288 2010-05-30 21:54
It worked :). Could you please explain the second command that you gave. My man pages seem incomplete and I don't understand what is going on. Also I have a ton of subdirectories in my cwd so could I use more or another command to show all of my subdirectories? Several of my subdirectories are being cut off.
define 'cut off'. Is your terminal truncating instead of wrapping?
Anyway output to a file:
find . -type d -exec ls -ld {} \; > mylistofdirs
find
. == start in current directory
-type d == find only directory files
-exec means execute the command after the word exec up to the \;
ls -ld means 1. l==long format 2. d==just show the directory directory, please