Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[solved]Change prompt

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Osmario
Posts: 3
Joined: 2022-08-09 07:59

[solved]Change prompt

#1 Post by Osmario »

Hi
I need to change the prompt from osmario@osm to osmario@lma
Is it possible?

Thanks in advance
Debian 11
Last edited by Osmario on 2022-08-11 04:40, edited 1 time in total.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Change prompt

#2 Post by sunrat »

That is the hostname.
To change for the current session, as root or sudo:

Code: Select all

hostname lma
To change permanently, edit /etc/hostname.
For more info:

Code: Select all

man hostname
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

peer
Posts: 443
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 20 times

Re: [solved]Change prompt

#3 Post by peer »

I think you have to change the hostname in the file /etc/hosts also.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [solved]Change prompt

#4 Post by Head_on_a_Stick »

Probably best to use the provided hostnamectl(1) abstraction.
deadbang

Post Reply