Date: Wed, 15 Oct 1997 10:07:53 -0700 (PDT) From: Tom Bartol <bartol@salk.edu> To: Mariusz Potocki <potok@friko.onet.pl> Cc: Justin Muir <jkuir@uniserve.com>, freebsd-questions@FreeBSD.ORG Subject: RE: lean mean kernel with sound!! + dumb questions Message-ID: <Pine.BSF.3.95.971015095335.4443D-100000@dale.salk.edu> In-Reply-To: <2.2.32.19971016040534.00995e08@midwest.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>
> At 03:49 PM 10/15/97 +0200, Mariusz Potocki wrote:
> >>ps- how do I distinguish between types files etc since I can't seem to
> >>find extensions?
The file command is useful, as you have already been told, but I prefer to
use csh and especially tcsh (you'll have to install tcsh as a port or
package) as my shell because I can easily alias the ls command as follows:
alias ls ls -F
Of course you can just use the ls -F command from bash as well (I'm not
sure how to get the equivalent to an alias in sh or bash). From the man
page on ls we see the following documentation on the -F flag:
-F Display a slash (/) immediately after each pathname that is a di-
rectory, 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.
Thus allowing you to quickly see which files are directories etc...
To set your prompt in csh you can put the following in your .cshrc:
if ( $?prompt ) then
alias cd 'cd \!*;s_prompt'
alias s_prompt 'set prompt = "`hostname` [$cwd] -> "'
s_prompt
endif
or more conveniently if you are using tcsh:
if ($shell != /bin/csh) then
set prompt = "%m [%/] -%# "
endif
Hope this doesn't confuse you even more :-)
Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971015095335.4443D-100000>
