Display command

With what command can you list only the hidden files of your home directory?

ok, last one...now start using the man pages, apropos, or a book. Heck, try Google.

ls -a

the command ls -a lists all the files including the hidden file. I'm looking for a command that lists only the hidden files in my home directory.

This depends on exactly what you mean and on your shell. Taken literally,

ls -d .*

will do it. The problem with this is that . and .. get listed as well. Maybe that's not a problem, they are directories, but directories are files too.

ls -d .??*

will avoid . and .. however it also avoids stuff like .x and .y. To pick up filenames that begin with a dot but are not .. you will need a good shell. With ksh:

ls -d .??* .[!.]

will do it. Moving away from ls, here is a command that will work with a low-rent shell:

find . \( ! -name . -prune \) -name ./* -print | sed s=\./==