LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-16-2012, 07:08 AM   #1
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Rep: Reputation: Disabled
How to change the login name in the shell prompt?


How can I edit the name of my terminal?
 
Old 04-16-2012, 07:17 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
The easiest way is, from the menu Terminal -> "Set Title..." something like this.

The other way you can do is -

Code:
# wmctrl -r :ACTIVE: -N "MyWindowTitle"
If you use vim editor, then you can do like this

Quote:
:set title
It is disabled by default. It will show you some cool terminal titles, will show you the filename which you're editing.
 
Old 04-16-2012, 07:20 AM   #3
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
I mean my linux terminal. When I input my password after typing su - authentification fails.
 
Old 04-16-2012, 07:21 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Try sudo -s

then type the password. su doesn't work by default on Ubuntu, AFAIK.
 
Old 04-16-2012, 07:31 AM   #5
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
After typing sudo -s it has worked but how do I now rename the terminal?
 
Old 04-16-2012, 07:36 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Do you mean that you want to rename this:

Quote:
anisha@linux-dopx:~
to something else?
 
Old 04-16-2012, 07:48 AM   #7
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
Yes
 
Old 04-16-2012, 07:56 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
read the man page of usermod command.
 
Old 04-16-2012, 08:00 AM   #9
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have tried to open my synaptic package manager and this is the reply I get
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.canonical.com_dists_maverick_partner_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
How can I configure it?
 
Old 04-16-2012, 08:01 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
What has all this to do with the package manager? For a new topic, create a new thread.
 
Old 04-16-2012, 08:12 AM   #11
MURIITHI P
LQ Newbie
 
Registered: Apr 2012
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have tried to open my synaptic package manager and this is the reply I get
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/archive.canonical.com_dists_maverick_partner_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report.
How can I configure it?
 
Old 04-16-2012, 08:13 AM   #12
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
You need to post that here: http://www.linuxquestions.org/questi...=newthread&f=8
 
  


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] How do I permanently change my shell prompt? venom4u31 Linux - Newbie 2 11-16-2011 05:34 PM
I'd like to change the default shell prompt. lynnevan Linux - General 9 09-08-2011 09:00 AM
How to: Change Login Prompt wildem Linux - General 1 05-24-2006 08:02 PM
change the shell prompt ust Linux - Distributions 5 04-28-2005 04:26 PM
how to change login prompt ChronusDark Linux - General 2 03-03-2005 02:34 AM


All times are GMT -5. The time now is 12:29 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