You are not logged in.

#1 2011-07-27 11:59:15

KrisZX
Member
Registered: 2011-07-05
Posts: 9

Terminal starts in wrong dir

I haven't done anything to change this voluntarily. My terminal starts in my pictures dir no matter what.

How do I change it back to my home dir?

Offline

#2 2011-07-27 12:27:28

examon
Member
Registered: 2011-05-07
Posts: 208

Re: Terminal starts in wrong dir

Try put this into your ~/.bashrc

cd /home/yourname/ 

Offline

#3 2011-07-27 12:34:58

Firestone
Member
From: Amsterdam
Registered: 2009-07-26
Posts: 20

Re: Terminal starts in wrong dir

Is your $HOME variable set to your home dir?

Offline

#4 2011-07-27 13:09:19

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Terminal starts in wrong dir

How are you starting X? If you're using startx and you were in wherever your pictures directory is, then this is expected.

Offline

#5 2011-07-27 13:11:58

KrisZX
Member
Registered: 2011-07-05
Posts: 9

Re: Terminal starts in wrong dir

falconindy wrote:

How are you starting X? If you're using startx and you were in wherever your pictures directory is, then this is expected.

Ahh this is probably it! I haven't tinkered with anything in the .bashrc so this is most plausible. Thanks everybody!

Offline

#6 2011-07-27 13:12:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Terminal starts in wrong dir

How do you start your terminal? If you're starting it from another terminal

[karol@black ~]$ cd test
[karol@black test]$ xterm
<start xterm>

In xterm

$ pwd
/home/karol/test
$ 

Offline

Board footer

Powered by FluxBB