troubleshooting Question

Need help on Linux ls command

Avatar of sam_2012
sam_2012 asked on
Linux
3 Comments1 Solution262 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Mihai Barbos
Trying to tame bits. They're nasty.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros