Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 08-01-2001, 09:59 PM   #1
Registered: Jul 2001
Location: Chicago
Distribution: RH7.1 ; OSX
Posts: 62

Rep: Reputation: 15
defualt terminal folder

Silly, odd, total newbie question.

When I start a terminal window in X, instead of it going to my Home folder (matt), it goes to another folder within my official home folder. So I have to type "cd" to get Home (matt). I must have changed this somehow with my endless tinkering.

How do you change your default folder when you start a terminal window, so the opening command line is like:

[matt@localhost whatever_folder_I_want]


Much thanks - this site is great.

Old 08-11-2003, 08:07 AM   #2
Registered: Jul 2003
Location: Geneva, Switzerland
Distribution: Debian 3.1, SLC3 (based on RHEL)
Posts: 84

Rep: Reputation: 15
Well, it may not be the right way to do it, but you can try the following:

define an alias to your xterm call like that:

alias xterm "xterm -e cd"

The -e option in xterm is a command to be executed in the terminal before opening. It has to be the last option of your call !! So if you decide to change some other options in your alias, do them before.

If you don't know about aliases, please reply to this posting.

I'm sure there is a more efficient way, but I don't know it! I still have things to learn!

Hope this helps!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a Directory from the Terminal without deleting each file or folder lennysokol Linux - General 4 05-30-2005 11:30 PM
Hi, I need to know how to make a new folder using the terminal? grupoapunte Linux - Newbie 1 05-19-2005 06:23 PM
how to get Terminal to start in current folder woodywellhung Linux - Software 1 04-28-2004 09:13 AM
Terminal folder name entry problems timsch75 Linux - Newbie 1 03-14-2004 05:48 PM
How to open a terminal in a special folder under nautilus? kevinqian Linux - Newbie 1 12-04-2003 07:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration