Linked Questions

1
vote
2answers
20k views

Change the terminal prompt [duplicate]

This can be really trivial,but it helps in ways of making it more comfortable while coding and sending commands to terminal. My terminal source/bash/root name(my apologies, I dunno which is the right ...
1
vote
1answer
595 views

How do I change hostname? [duplicate]

The hostname of my name is very long, which is odd. How can change the hostname for my system? My hostname, currently, is himanshu@himanshu-Lenovo-ideapad-100-15IBD:~$ Is there any way I can ...
0
votes
1answer
521 views

How can I change computer name? [duplicate]

currently I have " carlos@hoffman-c:~$ " I need to change the above to read " hamburg@hoffman-c:~$ " I need to preserve all my settings data etc. Thank you in advance.
0
votes
1answer
831 views

How to change terminal prefix to $ [duplicate]

My Xterm always print: tony@tony-ThinkPad-Edge-E540:~$ I want it to print only ~$ How can I do that?
2
votes
2answers
142 views

How to rename the shell current working directory [duplicate]

I am using gnome-terminal. I often work on large projects where there are lots of sub-directories and I have to compile them from the terminal. It's a very problematic to work with long-path terminal ...
0
votes
1answer
453 views

How to edit displayed bash name [duplicate]

I've done some googling, and looking around this stack overflow, but this one seems to elude me. How might I reduce/edit the displayed bash name on the terminal prompt? I.E. This: fresearch@...
1
vote
1answer
525 views

How to change command line prompt name and add path of current directory after name? [duplicate]

Currently my command line prompt looks like this nuve@nuve-Inspiron-5547:~$ but I want to change it Azer's Terminal:"Path of current directory". How can I do this? I need exact code line to add to ...
0
votes
2answers
203 views

Terminal Username [duplicate]

So I am new to Linux and whenever I open up my terminal, my username is gansaikhan@gansaikhan: ; So my question is how can I change this terminal username to something like maybe gansaikhan@ubuntu: ......
1
vote
1answer
94 views

How to change the terminal title and the prompt path to show only the current working directory’s name? [duplicate]

I use Terminator terminal. As you can see from the screenshot below, everywhere it shows the directory names. Instead of showing whole directory names, I want it to show only the last directory name i....
0
votes
1answer
67 views

how to change xyz@abc where i need to change xyz when terminal starts [duplicate]

Every time I open my terminal, I see xyz@abc where I type my sudo commands.However, my concern is this xyz and I want to change it to the name of my choice. I am unaware of the technical term for this ...
0
votes
1answer
67 views

Customizing terminal not affecting after restart through ~/.profile [duplicate]

Any welcome text, modifying PS1, aliases not working after restart. I have to put "source ~/.profile" every new terminal i open. Wishing for complete fix for these all to effect everytime on ...
0
votes
1answer
31 views

Change the value of root@example with Ubuntu [duplicate]

When I connect with the Terminal on Mac, I see: root@example:~# How can I change the value of example ? Is it the hostname ? Thanks.
215
votes
7answers
23k views

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.
39
votes
7answers
40k views

trim the terminal command prompt working directory

When using the terminal in a deep folder structure sometimes the prompt can take up most of the line. Is there any way in which I can trim the working directory? I know I can do PS1="\W >" to ...
9
votes
5answers
793 views

Toggle format of gnome terminal prompt string by command?

My terminal has a default prompt format like this one: username@boxname /path/to/current/directory $ The code that produces it looks like this: (it has some color definitions too) PS1='${...

15 30 50 per page