Tag Info

Hot answers tagged

3

Try this: shopt -s dotglob echo *


2

As an alternative to Cyrus' answer, you could also loop over and print all directory contents in one line: for file in {.*,*}; do echo "$file"; done However, this is slightly different from ls -A as it includes . and ..; but may still be of use.



Only top voted, non community-wiki answers of a minimum length are eligible