LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   More on BASH please ;) (https://www.linuxquestions.org/questions/linux-newbie-8/more-on-bash-please-%3B-247577/)

Pyus 10-26-2004 02:34 PM

More on BASH please ;)
 
Ive been readin threads all day @ my work oh the Bourne Again SHell and am still not understanding how i right or save my PS1 string correctly to .bashrc. like is kinda explained in ->

http://www.ibiblio.org/pub/Linux/doc...TO.html#AEN141

the problem i seem to be having is saving it correctly to the bashrc through bash
is this a problem or am i just a gimp and cant figure it out
probably the later but any help is greatly appreciated in my learning of linux all around.

--
Pyus

david_ross 10-26-2004 02:38 PM

You should just need to save the file with your PS1 line included. What does the file look like now?

Pyus 10-26-2004 02:44 PM

im sorry
 
i didnt think i was this stupid but ive only been messing with this OS for a few days lightly
when i open to the directory i cannot see the file because the . in front of the file

im not very sure how to open it through bash to edit it
not very sure i should mess with it without reading alot more

Komakino 10-26-2004 02:51 PM

if you're in a shell (bash, for example) type:
ls -a
to show all files (including hidden files). Nautilus in gnome has an option (somewhere) to show hidden files. Can't speak for konquerer, I can't stand it :)

Pyus 10-26-2004 02:56 PM

ok
 
yah i got the ls -a dir -a down
im having trouble accessing the file to change it through bash

or finding it through konqueror file:/home/pyus
i guess my question would be how to edit the file to make my changes stick when i open the konsole

this is kinda my first linux experience and i figured if i started at the bash i could learn about the different distros all i wanted

thanks for your help and quick replies
i love this forum ;)

david_ross 10-26-2004 03:02 PM

You just need to use a text editor like vi, pico, nano, emacs etc - eg:
vi ~/.bashrc

Pyus 10-26-2004 03:11 PM

yah!
 
Thank You So Much

i knew how to open vimm and read a little about it but i couldnt open any files from the toolbars or anything
thanks very much again

btw ill prob have more stupid questions for you David so stay tuned ;)

david_ross 10-27-2004 02:21 PM

Re: yah!
 
Quote:

Originally posted by Pyus
Thank You So Much

btw ill prob have more stupid questions for you David so stay tuned ;)

No problem. I'm sure everyone here will be happy to help.

LkNsngth 10-27-2004 02:29 PM

Type in ls in the directory you are in. If you want to change directory use cd directory.
Once you are in the directory of the program you want to execute type in : ./program


All times are GMT -5. The time now is 08:21 PM.