LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-23-2003, 02:43 PM   #1
walt
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
initial directory in xterm


Hi Guys:

How is the initial directory specified when an xterm is started up?
I'm using gnome and when I launch an xterm from gnome apps,
the directory is my home dir. But when I right click the mouse
and start an xterm that way the initial directory is /usr/games/.
I've been looking in my home dir for startup scripts etc but have
only found one for gnome xterm. It also started at /usr/games
until I changed it to my home dir. I think it's connected to a
problem I've been having with Mozilla quitting on launch.
I'm using Redhat 8.0

tia,
Walt
 
Old 08-23-2003, 04:56 PM   #2
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
The thing with Xterm and all other terminals is that when launched
it will start off at the dir your currently in.

Go to /usr/local/, do startx, and open up xterm.. your directory will
be /usr/local/. do startx in /home/<user>, xterm will start at
/home/<user>

-vexer
 
Old 05-29-2006, 02:58 PM   #3
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Rep: Reputation: 16
However, the very first shell that starts must know somehow to start in a particular directory. If I'm not mistaken, this seems like something that is more relevant to the shell than the terminal that it's running from, right? I don't know the answer though, as I got to this thread while looking for it.
 
Old 05-29-2006, 05:49 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
Originally Posted by chadwick
However, the very first shell that starts must know somehow to start in a particular directory. If I'm not mistaken, this seems like something that is more relevant to the shell than the terminal that it's running from, right? I don't know the answer though, as I got to this thread while looking for it.
Actually, I think the login command (and others such as su -) will change to the user's directory before calling the shell.
 
  


Reply


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
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 8 02-26-2008 04:18 PM
xterm default home directory Fritz_Monroe Linux - Newbie 2 08-05-2005 02:33 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM
Xterm does not start in root directory mystique98ls Linux - Newbie 2 12-14-2004 06:45 PM
initial boot pepsi Fedora 0 05-18-2004 07:29 PM


All times are GMT -5. The time now is 10:32 PM.

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