Loading...

Linux Terminal 201: Customize The Shell Prompt - HakTip 148

24,918 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Mar 10, 2017

Today on HakTip, we're customizing our shell prompt!
-------------------------------
Shop: http://www.hakshop.com
Support: http://www.patreon.com/threatwire
Subscribe: http://www.youtube.com/hak5
Our Site: http://www.hak5.org
Contact Us: http://www.twitter.com/hak5
Threat Wire RSS: https://shannonmorse.podbean.com/feed/
Threat Wire iTunes: https://itunes.apple.com/us/podcast/t...
------------------------------

Subscribe to Hak5's YouTube channel at http://www.youtube.com/hak5
Support Hak5 via our shop at https://www.hakshop.com


Commands I used on this episode include:

echo $PS1

original_backup="$PS1"

PS1=

PS1="\$"

PS1="\[\033[0;35m\]\u@\h:\w$ "

PS1="\[\033[1;35m\]\u@\[\033[1;36m\]\h:\[\033[1;32m\]\w\[\033[1;37m\]$ "

End the line with \[\033[0m\] to make it a black background again

Save your new lines to the bashrc file as: PS1="\[\033[1;35m\]\u@\[\033[1;36m\]\h:\[\033[1;32m\]\w\[\033[1;37m\]$ "

export PS1

http://ezprompt.net/

-~-~~-~~~-~~-~-
Please watch: "Bash Bunny Primer - Hak5 2225"
https://www.youtube.com/watch?v=8j6hr...
-~-~~-~~~-~~-~-

Loading...

Advertisement
When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...