Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys, I'm kind of new at this. My problem is:
-I have Linux Mint 14 KDE, and I use Terminator as terminal.
-I need to know 2 things:
1)I already know how to change the bash text in prompt, ex:
user@userPC ~/Documents $ PS1="ß "
ß
But my problem is that after I exit my terminal, it stays the same as before... I want to know how to make a definitive change in PS1, so whaen i close and open again terminal it stays like i told him to.
2)As you see, my starting dir is Documents.. I want to change it to other dir when I open the terminal.
Thank you for taking consideration on my request for help.
.bashrc is a file in your home directory (~). Edit it with whatever text editor you like, and put your PS1 command inside.
Thank you
I was hoping to get answer to my second question too. My terminal always starts at documents dir. How can I change the start dir when I open my terminal?
You can always throw a "cd wherever" into .bashrc.
That script is sourced every time a terminal opens. Anything that you want to automatically happen when you open a terminal can be put there.
Or many terminal emulators let you specify the cwd on the command line when they're called. You can append this argument to whatever you're using to launch your terminal (menu option, desktop button, keyboard shortcut) to pass it in.
For example, konsole has the "--workdir <dir>" option. So you could just change your launcher so that instead of running "konsole" when you click it, it runs "konsole --workdir /home/user". gnome-terminal has a similar option "--working-directory=DIRNAME". Terminator probably has one too.
Last edited by suicidaleggroll; 10-25-2013 at 04:52 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.