Change name in terminal to something shorter [duplicate]

So on every line in terminal, it leads with something like this:

bs7280@bs7280-Lenovo-IdeaPad-U530-Touch:~/path/to/dir$

is there a way to make this shorter, without all of the useless text out front? so maybe it looks something like this:

bs7280:~/path/to/dir$
1

1 Answer

You can change this by changing your hostname as described here. The hostname is basically the name of your computer, so this will only have to be changed once to affect all users.

You Might Also Like