Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Notes on ls-F and ls -F' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Notes on ls-F and ls -F
Authored by: ali on Nov 27, '01 10:13:32AM

You get different results because you actually use different commands.

ls -F calls the ls command (usually in /bin) with the Flag -F so you get the listing with symbols like / (for dir) or @ (for sym link) after every file. See man ls.

ls-F (no space) calls the bultin function of tcsh or bash - not the ls command of /bin. This builtin can't take any additional options in your command line. Alas you can set a tcsh variable called listflags to alter the behavior of ls-F. If you set the variable to a (set listflags = a) ls-F will produce a colored output equivialent to ls -a (note space). See man tcsh.

the --color option does not work as ls is not compiled with this option (afaik). You would need to get the sources and recompile it.

Hope it helps,


[ Reply to This | # ]