From owner-freebsd-questions Wed Oct 15 10:13:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA02575 for questions-outgoing; Wed, 15 Oct 1997 10:13:38 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA02563 for ; Wed, 15 Oct 1997 10:13:35 -0700 (PDT) (envelope-from bartol@salk.edu) Received: from dale.salk.edu (dale [198.202.70.112]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id KAA00542; Wed, 15 Oct 1997 10:07:54 -0700 (PDT) Date: Wed, 15 Oct 1997 10:07:53 -0700 (PDT) From: Tom Bartol To: Mariusz Potocki cc: Justin Muir , freebsd-questions@FreeBSD.ORG Subject: RE: lean mean kernel with sound!! + dumb questions In-Reply-To: <2.2.32.19971016040534.00995e08@midwest.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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