Re: [newbie] How to distinguish file and directory in shell?

1999-04-29 Thread Ben


> % ls -F  [doesn't show color, but denotes executables with a *, and
> directories with a / ]
> % ls --color
>
> ...or, insert this line in your .bashrc file:
>
> alias 'ls' 'ls --color'

I find it helpful to use the above command with -F
This option appends a character to the filenames that indicate what it is.
* for programs or executable scripts
/ for directories
@ for symbolic links
| for pipes
= for sockets
nothing for regular files.

the entire command would be alias ls='ls -F --color'

btw, regular files are white, programs are green, directories are blue and
links are aqua.

Hope that helps,
Ben



Re: [newbie] How to distinguish file and directory in shell?

1999-04-29 Thread Dan Brown

From: John l.yn <[EMAIL PROTECTED]>

>I am using linux Mandrake. I found it is difficulty to distinguish
file
> and directory,to judge which file is runnable and which is not.It is
more
> easy in linux SlackWare which support different color to distinguish
them.

Several ways to do this:

% ls -F  [doesn't show color, but denotes executables with a *, and
directories with a / ]
% ls --color

...or, insert this line in your .bashrc file:

alias 'ls' 'ls --color'

and then just type "ls" at the prompt.  You might also check out man ls.





[newbie] How to distinguish file and directory in shell?

1999-04-29 Thread John l.yn

Hi:
   I am using linux Mandrake. I found it is difficulty to distinguish file
and directory,to judge which file is runnable and which is not.It is more
easy in linux SlackWare which support different color to distinguish them.
Does Mandrake support this function?


Thanks

John l.yn