Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In DOS, the command dir /s /ah will recurse through every subdirectory and show all files with the "hidden" attribute.

What is the linux equivalent?

share|improve this question

The standard linux filesystems don't come with a "hidden" attribute for files, but convention is that files with names starting with a dot are not shown by e.g. ls. You can find these with with find

find . -name '.*'
share|improve this answer

I usually use ls -lAR which recurses through a directory tree, showing file attributes and any 'hidden' files (commonly called 'dot files' because they start with a dot ('.'). You could also replace the 'A' with 'a' to show the current and parent directory in each, but except for the top-level directory, all are shown in the parent's directory.

share|improve this answer
    
That also shows the non-hidden files. – Dennis Williamson Jan 29 '11 at 3:43

I have the following aliases in my .zshrc:

alias l.='ls -CAF --ignore=\*'
alias ll.='ls -CAlhF --ignore=\*'

They show dotfiles in the current directory. In case you want to recurse through subdirectories, add the -R switch to ls.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .