Asking LS for a list of directories only
How do I ask LS to list only the directories in my current directory or in a specified directory?
Also how do I ask LS to list only the files (not the directories)? Also how do I ask LS to list only the files beginning with a period (.) ? Using backslash as in ls \.* does not work. Evidently the backslash does not quote the period as bash documentation says it will. Thanks, Gary Knott, |
for a list of directories only try
ls -d im unsure how to only get a list of files but you should check out man ls |
All times are GMT -5. The time now is 06:45 PM. |