Need help on Linux ls command

sam_2012 used Ask the Experts™
Hi Team,
I want to know the difference in the output of the below unix commands

ls -F

ls -F I get the output with directories suffixed with a / , but some regular files suffixed with * , @ symbols. Why is it so?

[root@localhost ~]# ls -F
abc.txt          Desktop/     install.log.syslog  Public/     testfile*
accounts/        Documents/   logdata             Templates/  test.ksh*
anaconda-ks.cfg  Downloads/   LOGFILENAME         test        typescript
backup/          $file        Music/              test1       Videos/
CALNOV           filename     novcal              test123@
cc               install.log  Pictures/           test2

ls -d list only the current directory , but ls -d */  , is there any other command to list only directories.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Trying to tame bits. They're nasty.
man ls

-F      Display a slash (`/') immediately after each pathname that is a directory, an asterisk (`*') after each that is executable, an at sign (`@') after each symbolic link, an equals sign (`=') after each socket, a percent sign (`%') after each whiteout, and a vertical bar (`|') after each that is a FIFO.

To list only directories:

find . -type d

Try man find


Thanks for the clarification, iam sorry ,but it is very simple question , I would like to know what white out means
Mihai BarbosTrying to tame bits. They're nasty.

A whiteout is a special type of file that hides the existence of a file with the same name.
It appears in some special cases when you delete a file, normally is of no interest.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial