LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2011, 02: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, 02: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, 02:19 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

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-21-2011, 11:06 PM   #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-21-2011, 11:43 PM   #5
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
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-21-2011 at 11:49 PM.
 
Old 08-22-2011, 01:45 AM   #6
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
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, 06: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, 10: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



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 12:16 PM
Get the title of xterm/gnome-terminal redleafong Linux - Software 6 01-10-2011 06:38 PM
weird terminal title bujecas Linux - General 5 09-28-2006 11:18 AM
How to change terminal title obnascar Linux - General 1 01-12-2006 02:41 PM
change window title in terminal sandman Linux - General 4 12-15-2002 03:55 AM

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

All times are GMT -5. The time now is 11:35 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
Open Source Consulting | Domain Registration