Kumander Linux 2.1 (Bulalo) is ready Follow us on YouTube and Patreon

Change terminal prompt default

A place to introduce yourself and share your Linux journey

Moderator: Bernadette

Post Reply
dodtrax
Posts: 1
Joined: Wed Jun 11, 2025 6:52 pm
Brazil

Change terminal prompt default

Post by dodtrax »

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!
User avatar
akts
Posts: 3
Joined: Thu May 15, 2025 5:05 pm
Most familiar OS: Other
MBTI Type: ISTP
Has thanked: 1 time
Been thanked: 1 time
Contact:
India

Post by akts »

Hey dodtrax,

Open up your terminal and type

Code: Select all

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

Code: Select all

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 :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests