LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-21-2011, 03:06 AM   #1
sanjayagayan
Member
 
Registered: Feb 2010
Location: Sri Lanka
Posts: 59

Rep: Reputation: 15
How to chang the terminal title


I am a linux user.When i start a terminal it always start in a folder named documet(when i typed pwd after starting a teminal it's not in the home directory and it give the following out put '/home/sanjayagayan/Documents')
I want it to be in my home directory.how can i do that.
 
Old 08-21-2011, 03:09 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It would help us if you said which terminal emulator (e.g. xterm, GNOME Terminal, etc) you were using.
 
1 members found this post helpful.
Old 08-21-2011, 03:19 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
You give very little information. What distro & version are you using? Are you talking about a terminal program used in a desktop environment like gnome or kde? or a virtual terminal, tty (accessed by ctl-alt-F1)? The solution depends on factors like these.

jdk
 
1 members found this post helpful.
Old 08-22-2011, 12:06 AM   #4
sanjayagayan
Member
 
Registered: Feb 2010
Location: Sri Lanka
Posts: 59

Original Poster
Rep: Reputation: 15
i am using kubuntu
 
0 members found this post helpful.
Old 08-22-2011, 12:43 AM   #5
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 513

Rep: Reputation: 160Reputation: 160
That didn't help... Which terminal program do you use ? (As mentioned by Nylex)

Also your title doesn't fit with your question (or you have two questions...)

The title of the terminal is not related to the current working directory...

Btw, it might be the "link" (on your menu/desktop) that you use which doesn't have the working directory you're expecting...

Edit: With the right search, you could have found this too...

Last edited by NoStressHQ; 08-22-2011 at 12:49 AM.
 
Old 08-22-2011, 02:45 AM   #6
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 866

Rep: Reputation: 121Reputation: 121
try doing a "cd ~" then shut down the terminal from it's menu
the next time you start it up it should be in ~ the next time you start it
 
Old 08-22-2011, 07:15 AM   #7
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
what shell are you using? If you're using bash you may be able to force it to start in your home folder by adding cd ~ to ~/.bashrc
Code:
echo cd ~ >> ~/.bashrc
 
1 members found this post helpful.
Old 08-23-2011, 11:01 AM   #8
sanjayagayan
Member
 
Registered: Feb 2010
Location: Sri Lanka
Posts: 59

Original Poster
Rep: Reputation: 15
I am using bash and "echo cd ~ >> ~/.bashrc" work on me.thank you.
 
  


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
[SOLVED] Terminal xterm Title is too dynamic (title doesn't change manually) ZeroDaHero Slackware 4 11-04-2012 01:16 PM
Get the title of xterm/gnome-terminal redleafong Linux - Software 6 01-10-2011 07:38 PM
weird terminal title bujecas Linux - General 5 09-28-2006 12:18 PM
How to change terminal title obnascar Linux - General 1 01-12-2006 03:41 PM
change window title in terminal sandman Linux - General 4 12-15-2002 04:55 AM


All times are GMT -5. The time now is 05:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration