Linux Kerala
Wednesday, December 1, 2010
List only directories using ls command
ls -d */
Will list all directories in the current directory.
For example,
ls -d /mnt/*/
will list the path of all the directories in /mnt/.
ls -d1 */
will list all directories in the current directory one per line.
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment