• English
  • Español
  • Português
  • Français
  • Deutsch
  • Italiano
  • Русский
  • 日本語
  • 한국어
  • हिन्दी
  • 简体中文
  • 繁體中文

Kumander Linux

La experiencia de Windows 7 en Linux. Basado en Debian con el escritorio XFCE. Ligero, estable y familiar para todos.

¡Kumander Linux 2.1 (Bulalo) está listo! Síguenos en YouTube y Patreon

Change terminal prompt default

Moderador: Roy | 2 postsPágina 1 de 1
Responder
dodtrax
Posts: 0
Registro: Wed Jun 11, 2025
Tipo: Cliente
Ubicación: Brazil
Change terminal prompt default Sun May 11, 2025 6:52 pm

Hello everyone.

I'm using Kumander Linux and I'm really enjoying it.

How to change terminal prompt: C:/home/username

For this: username@hostname:~$

I would like to return to the default prompt.

Thanks!

Arriba
akts
Posts: 0
Registro: Thu May 15, 2025
Tipo: Cliente
Ubicación: India
Re: Change terminal prompt default Mon May 19, 2025 4:16 pm

Hey dodtrax,

Open up your terminal and type:

nano ~/.bashrc

This opens up bash's (your shell) configuration file in a command line text editor called nano. Then at the very end put:

PS1='\u@\h:\w\$ '

Ctrl + o to save

Ctrl + x to exit

You can also do this.

Open your file manager. Then in your home folder press Ctrl + h. This shows hidden files in your folder. Locate the file called .bashrc and then edit it by double clicking it. Paste the PS1 bit at the end. Save the file.

Open a new terminal and see your new prompt in action. Give the arch wiki a read to learn more about prompt customization.

Welcome to the forums btw.

Arriba
Responder
2 postsPágina 1 de 1