[{TableOfContents }] !!! Linux %%prettify {{{ $ ls -l | grep "^d" }}} /% %%prettify {{{ $ find . -type d -maxdepth 1 -mindepth 1 }}} /% %%prettify {{{ $ tree -d -L 1 }}} /% %%prettify {{{ $ ls -d */ }}} /% %%prettify {{{ $ tree -fid }}} /% lets your format however you want {{{ $ find . -type d -printf ā%P\nā }}} %%prettify {{{ $ ls -R | grep ./ }}} /% Escapes the spaces. Can be useful %%prettify {{{ $ find . -type d | sed ās/ /\\ /gā }}} /% Print directory names one line at a time, without any other characters (and pipeless): %%prettify {{{ $ find . -maxdepth 1 -mindepth 1 -type d -printf %P\\n }}} /% !!! Sources * [http://ubuntu.wordpress.com/2005/10/19/list-only-the-directories] ---- [CategoryComputing.Linux.Shell]