[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: looking for a script to display current location in filesystem

On Wed, 11 Dec 1996, cs51wcs wrote:

> Hi,
>   I'm currently trying to figure a way to display where I am in the
> filesystem like in dos, but am having a hard time. Any assistance is
> appreciated. 

To display the current directory with a command:

$ pwd

To have the current directory in the prompt (I think this is what you
mean) (this only applies if bash is your shell):

$ PS1='[\u@\h:\w]\$ '

See the `PROMPTING' section of the `bash' manual page for other things you
can include in the prompt.


TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .

Reply to: