LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 01: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, 03: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, 01: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: 17
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, 04:49 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
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



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 11 01-30-2023 04:45 AM
xterm default home directory Fritz_Monroe Linux - Newbie 2 08-05-2005 01:33 PM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Xterm does not start in root directory mystique98ls Linux - Newbie 2 12-14-2004 05:45 PM
initial boot pepsi Fedora 0 05-18-2004 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration