4
2
How can I tell which ones are directories in ls output? It seems ls doesn't differentiate directories and files. I know I can use cd to test but is there a way to make it more obvious when I ls a pth? PS: I have one Debian 5.0.9 server which uses different colors to show directories and files. But another Debian 6.0.4 server doesn't do it.
ls -G
, and then subsequentlyalias ls='ls -G'
did it for me. I'm using a bash shell and OSX. I'd suggest runningman ls
and look for a color option if neither of these work for you. – Peter Berg – 2014-07-15T20:42:04.7602Adding this to bash profile solved the problem alias ls='ls --color=auto' – sdaffa23fdsf – 2012-04-09T00:14:55.597
You can type:
file filename
. This is not ls but just wanted to put it out there. – None – 2012-04-09T03:10:14.817