PDA

View Full Version : [ubuntu] Terminal



p.caraglio
June 2nd, 2011, 02:35 PM
My question regards the terminal in ubuntu. Is there any way to get the terminal to start off in a different directory then the default? For example I always start off in the directory with desktop, downloads, etc, but I want to start off in another directory (let's call it mystuff for simplicity's sake) how would I go about doing that. I do know about the change directory (cd) feature but I want to be able to always start off in mystuff so I don't always have to type "cd mystuff" every time I turn on my terminal. As a side note I am using ubuntu 11.04.

Mariane
June 2nd, 2011, 02:39 PM
If you use Konqueror you can right-click on the folder and select "Actions" and then "Open Terminal Here".

Mariane

frankbooth
June 2nd, 2011, 02:46 PM
One way to do it is by adding a command at the end of ~/.bashrc

Example:


echo "cd Desktop" >> .bashrc

We added 'cd Desktop' (make sure this is added to a new line) and as a result the terminal will start at ~/Desktop instead of ~/

EDIT:
just add 'cd /to/your/stuff' instead of 'cd Desktop'

Legendary_Bibo
June 2nd, 2011, 02:54 PM
where is your stuff?

p.caraglio
June 3rd, 2011, 02:46 AM
Thank you frankbooth! It worked like a charm. What exactly is that file anyways?

Mariane
June 3rd, 2011, 08:03 AM
.bashrc is a file with default instructions given to the bash terminal. It is in your /home/username directory.

Mariane

hakermania
June 3rd, 2011, 08:43 AM
sudo apt-get install nautilus-open-terminal
it provides you this option:
http://img545.imageshack.us/img545/197/screenshotwic.png