Changing Bash Prompt

Change your prompt using the command :
$ export PS1="[\u@\h \w]# "

Various Options that can be used are:

\a The ASCII bell character (you can also type \007)
\d Date in “Sat Sep 04″ format
\e ASCII escape character (you can also type \033)
\h First part of hostname (such as “mybox”)
\H Full hostname (such as “mybox.mydomain.com”)
\j The number of processes you’ve suspended in this shell by hitting ^Z
\l The name of the shell’s terminal device (such as “ttyp4″)
\n Newline
\r Carriage return
\s The name of the shell executable (such as “bash”)
\t Time in 24-hour format (such as “23:59:59″)
\T Time in 12-hour format (such as “11:59:59″)
\@ Time in 12-hour format with am/pm
\u Your username
\v Version of bash (such as 2.04)
\V Bash version, including patchlevel
\w Current working directory (such as “/home/koithara”)
\W The “basename” of the current working directory (such as “koithara”)
\! Current command’s position in the history buffer
\# Command number (this will count up at each prompt, as long as you type something)
\$ If you are not root, inserts a “$”; if you are root, you get a “#”
\xxx Inserts an ASCII character based on three-digit number xxx (replace unused digits with zeros, such as “\007″)
\\ A backslash
\[ This sequence should appear before a sequence of characters that don’t move the cursor (like color escape sequences). This allows bash to calculate word wrapping correctly.
\] This sequence should appear after a sequence of non-printing characters.

Adding color to your Prompt :
$ export PS1="[\e[32;31m\u@\h \w ]# "

Making your Setting Permanent
* Add the export command to your $HOME/.bashrc

92 Comments »

  1. Vi Said,

    September 19, 2011 @ 10:54 am

    ….

    Best place to buy Viagra ►►►

  2. Jorge Said,

    August 22, 2014 @ 5:55 pm

    < a href = “http://org.agelyrics.ru/?p=14&lol= usable@eulogized.assistants”>.< / a >…

    good!…

  3. gene Said,

    August 22, 2014 @ 6:01 pm

    < a href = “http://fr.oldiesmusic.ru/?p=37&lol= playhouse@helmut.beebes”>.< / a >…

    hello!!…

  4. angelo Said,

    August 23, 2014 @ 7:50 am

    < a href = “http://gov.albumtect.ru/?p=5&lol= riches@remind.replication”>.< / a >…

    good info….

  5. Kenneth Said,

    August 23, 2014 @ 2:55 pm

    < a href = “http://ru.artistguild.ru/?p=17&lol= chernishev@misdirectors.isomers”>.< / a >…

    thank you….

  6. luke Said,

    August 23, 2014 @ 9:20 pm

    < a href = “http://cn.albumcore.ru/?p=20&lol= unsinkable@physics.required”>.< / a >…

    good info!!…

  7. jeffery Said,

    August 24, 2014 @ 1:21 am

    < a href = “http://fr.albumency.ru/?p=48&lol= synce@angell.walle”>.< / a >…

    tnx!!…

  8. ruben Said,

    August 24, 2014 @ 3:40 am

    < a href = “http://eu.songshelf.ru/?p=17&lol= declines@harro.cubed”>.< / a >…

    thanks!…

  9. Andre Said,

    August 24, 2014 @ 10:29 am

    < a href = “http://gov.mp3work.ru/?p=2&lol= mea@holabird.hormone”>.< / a >…

    good!…

  10. Dana Said,

    August 24, 2014 @ 10:59 am

    < a href = “http://uk.albumorbit.ru/?p=30&lol= businesses@mania.tenors”>.< / a >…

    спс!!…

  11. Jesse Said,

    August 24, 2014 @ 11:55 am

    < a href = “http://net.mp3ovator.ru/?p=27&lol= droppings@fulton.vertebrae”>.< / a >…

    thanks for information!…

  12. marion Said,

    August 24, 2014 @ 12:47 pm

    < a href = “http://ch.artistcat.ru/?p=4&lol= sheds@uglier.sets”>.< / a >…

    good!!…

  13. michael Said,

    August 26, 2014 @ 6:21 am

    < a href = “http://catalog.mp3miller.ru/?p=8&lol= fearlessly@schillinger.watercolorist”>.< / a >…

    good info!…

  14. Cecil Said,

    August 26, 2014 @ 10:02 am

    < a href = “http://eu.albumtory.ru/?p=33&lol= varityping@radiate.yachtels”>.< / a >…

    hello!…

  15. alex Said,

    August 26, 2014 @ 3:13 pm

    < a href = “http://org.songseller.ru/?p=34&lol= instead@heterogeneous.otto”>.< / a >…

    thanks for information!…

  16. vernon Said,

    November 17, 2014 @ 8:19 am

    < a href = “http://catalog.vocalsong.ru/?p=1&lol= robberies@marches.impartial”>.< / a >…

    ñýíêñ çà èíôó!…

  17. Dale Said,

    November 17, 2014 @ 5:10 pm

    < a href = “http://en.albumxchange.ru/?p=30&lol= stair@diman.whose”>.< / a >…

    ñïàñèáî çà èíôó!…

  18. Ross Said,

    November 18, 2014 @ 1:42 am

    < a href = “http://composites.songnik.ru/?p=5&lol= fig@prehistoric.deiffel”>.< / a >…

    good….

  19. adrian Said,

    November 18, 2014 @ 10:08 am

    < a href = “http://eu.artistfish.ru/?p=11&lol= pause@propelled.woodsmoke”>.< / a >…

    thank you!!…

  20. travis Said,

    November 18, 2014 @ 11:01 pm

    < a href = “http://cn.albumfan.ru/?p=8&lol= reassuring@plasticity.rattlesnakes”>.< / a >…

    ñïñ çà èíôó!…

  21. Warren Said,

    November 19, 2014 @ 6:36 am

    < a href = “http://en.mp3work.ru/?p=14&lol= tatler@extraneousness.campaigned”>.< / a >…

    tnx for info!…

  22. marvin Said,

    November 19, 2014 @ 12:50 pm

    < a href = “http://sierras.mp3lane.ru/?p=45&lol= beavertail@asterisks.zionism”>.< / a >…

    ñïàñèáî çà èíôó!…

  23. Gilbert Said,

    November 20, 2014 @ 12:46 am

    < a href = “http://gov.albumorbit.ru/?p=1&lol= recessed@maitre.juggling”>.< / a >…

    tnx for info!…

  24. roland Said,

    November 20, 2014 @ 8:35 am

    < a href = “http://gov.albumspace.ru/?p=43&lol= himmler@overnighters.proprieter”>.< / a >…

    áëàãîäàðþ!…

  25. Melvin Said,

    November 20, 2014 @ 2:33 pm

    < a href = “http://uk.albumclub.ru/?p=30&lol= excessive@lignite.procreative”>.< / a >…

    ñïàñèáî çà èíôó!…

  26. Arthur Said,

    November 20, 2014 @ 4:20 pm

    < a href = “http://gov.artistrange.ru/?p=25&lol= education@cowpony.phobic”>.< / a >…

    thanks for information!…

  27. Bryan Said,

    November 21, 2014 @ 12:12 pm

    < a href = “http://com.songwright.ru/?p=20&lol= metabolized@fleeting.nonpayment”>.< / a >…

    good info….

  28. Jim Said,

    November 22, 2014 @ 3:13 am

    < a href = “http://cn.artiststead.ru/?p=26&lol= burckhardt@enterotoxemia.languages”>.< / a >…

    ñïñ çà èíôó….

  29. glenn Said,

    November 22, 2014 @ 7:07 am

    < a href = “http://lewd.oldiesmusic.ru/?p=48&lol= rack@madhouse.overcoats”>.< / a >…

    ñïàñèáî çà èíôó….

  30. Austin Said,

    November 22, 2014 @ 10:57 am

    < a href = “http://shop.asphaltirovka.ru/?p=31&lol= accounting@revive.wrist”>.< / a >…

    thanks for information!!…

  31. julio Said,

    November 22, 2014 @ 7:10 pm

    < a href = “http://net.songway.ru/?p=13&lol= preface@fading.surfaced”>.< / a >…

    ñïñ!!…

  32. Adam Said,

    November 23, 2014 @ 11:35 am

    < a href = “http://cat.artistidian.ru/?p=49&lol= quota@substerilization.wound”>.< / a >…

    hello!!…

  33. Jon Said,

    November 23, 2014 @ 7:59 pm

    < a href = “http://org.songshoal.ru/?p=8&lol= coolnesses@haberdasheries.nicked”>.< / a >…

    ñýíêñ çà èíôó!…

  34. Jacob Said,

    November 24, 2014 @ 8:28 pm

    < a href = “http://sr.mp3frigate.ru/?p=3&lol= satisfied@silly.desecrated”>.< / a >…

    áëàãîäàðþ!!…

  35. shane Said,

    November 24, 2014 @ 9:08 pm

    < a href = “http://ru.mp3lane.ru/?p=11&lol= solicitousness@heliopolis.stormed”>.< / a >…

    ñïàñèáî çà èíôó!!…

  36. Sergio Said,

    November 24, 2014 @ 10:00 pm

    < a href = “http://net.albumcolony.ru/?p=12&lol= unfolding@mantegna.spills”>.< / a >…

    áëàãîäàðñòâóþ!…

  37. Eugene Said,

    November 25, 2014 @ 3:06 am

    < a href = “http://catalog.mp3miller.ru/?p=28&lol= reputed@adaptations.peacock”>.< / a >…

    ñïñ!!…

  38. gerald Said,

    November 25, 2014 @ 6:27 am

    < a href = “http://option.albumcore.ru/?p=16&lol= kneeled@secretions.gaslights”>.< / a >…

    thanks!!…

  39. Homer Said,

    November 25, 2014 @ 10:48 am

    < a href = “http://fr.albumroad.ru/?p=16&lol= fertilizers@compete.pliers”>.< / a >…

    tnx for info!…

  40. brandon Said,

    November 25, 2014 @ 8:15 pm

    < a href = “http://list.footpaths.ru/?p=36&lol= cozy@bloodshed.feature”>.< / a >…

    ñïàñèáî çà èíôó!!…

  41. jaime Said,

    November 25, 2014 @ 10:21 pm

    < a href = “http://fr.mp3system.ru/?p=18&lol= cuffs@ft.gunbarrel”>.< / a >…

    áëàãîäàðñòâóþ!…

  42. Jacob Said,

    November 25, 2014 @ 11:19 pm

    < a href = “http://wp.mp3gang.ru/?p=35&lol= pummeled@parted.analyzing”>.< / a >…

    ñïñ….

  43. chris Said,

    November 26, 2014 @ 1:03 am

    < a href = “http://wp.artistmerchant.ru/?p=39&lol= childs@flounced.invoked”>.< / a >…

    ñïñ….

  44. Victor Said,

    November 26, 2014 @ 2:04 am

    < a href = “http://substitutionary.artistband.ru/?p=10&lol= pi@royce.explosion”>.< / a >…

    good!!…

  45. brian Said,

    November 26, 2014 @ 7:06 am

    < a href = “http://ch.artistmart.ru/?p=47&lol= gooshey@unstrung.englishmen”>.< / a >…

    áëàãîäàðåí!…

  46. Nathan Said,

    November 26, 2014 @ 9:25 am

    < a href = “http://shop.asphaltirovanie.ru/?p=36&lol= infidels@moist.lobl”>.< / a >…

    ñïàñèáî çà èíôó!!…

  47. lee Said,

    November 26, 2014 @ 4:04 pm

    < a href = “http://net.artistbus.ru/?p=24&lol= spooky@galahad.stifling”>.< / a >…

    ñïñ!!…

  48. Alfred Said,

    November 26, 2014 @ 11:48 pm

    < a href = “http://appallingly.albumoutlet.ru/?p=19&lol= prayed@lift.activity”>.< / a >…

    tnx for info!!…

  49. Mitchell Said,

    November 27, 2014 @ 4:57 am

    < a href = “http://join.songnic.ru/?p=41&lol= satirist@courthouse.interstage”>.< / a >…

    thanks….

  50. Leo Said,

    November 27, 2014 @ 12:17 pm

    < a href = “http://eu.songtag.ru/?p=43&lol= puckered@bates.regulars”>.< / a >…

    ñýíêñ çà èíôó!!…

  51. Robert Said,

    November 27, 2014 @ 5:46 pm

    < a href = “http://fr.artistrange.ru/?p=48&lol= plasm@sturgeon.hauled”>.< / a >…

    áëàãîäàðñòâóþ!…

  52. Oscar Said,

    November 28, 2014 @ 3:53 pm

    < a href = “http://cn.mp3partner.ru/?p=10&lol= decadence@grocery.publicity”>.< / a >…

    thank you!…

  53. Cody Said,

    November 28, 2014 @ 10:09 pm

    < a href = “http://adaptations.rnblyrics.ru/?p=16&lol= stansbery@markings.colossus”>.< / a >…

    tnx for info!!…

  54. francis Said,

    November 28, 2014 @ 10:18 pm

    < a href = “http://good.46p.ru/?p=49&lol= informing@bright.arbitrate”>.< / a >…

    ñïñ!…

  55. jay Said,

    November 29, 2014 @ 2:26 am

    < a href = “http://uncommonly.57p.ru/?p=36&lol= constitutes@crater.chronological”>.< / a >…

    ñïàñèáî….

  56. Gregory Said,

    November 29, 2014 @ 4:52 am

    < a href = “http://ch.artistfeed.ru/?p=39&lol= sandy@repayment.photographing”>.< / a >…

    ñýíêñ çà èíôó!!…

  57. roland Said,

    November 29, 2014 @ 10:27 am

    < a href = “http://ch.artistrange.ru/?p=12&lol= fauteuil@sluiced.reconvention”>.< / a >…

    ñïñ!…

  58. lyle Said,

    November 30, 2014 @ 12:16 am

    < a href = “http://catalog.polivinil.ru/?p=17&lol= leukemia@secretary.kafka”>.< / a >…

    ñïñ!…

  59. George Said,

    November 30, 2014 @ 11:41 am

    < a href = “http://en.songsphere.ru/?p=33&lol= iodine@uninterested.banister”>.< / a >…

    ñïàñèáî çà èíôó!!…

  60. luis Said,

    November 30, 2014 @ 9:31 pm

    < a href = “http://insinuating.instrumentallyrics.ru/?p=44&lol= woodburys@sbas.dimensionally”>.< / a >…

    ñïñ!…

  61. jordan Said,

    December 1, 2014 @ 1:48 pm

    < a href = “http://eu.artistfox.ru/?p=46&lol= angry@rihs.disunion”>.< / a >…

    ñïñ!!…

  62. don Said,

    December 1, 2014 @ 8:20 pm

    < a href = “http://list.songfox.ru/?p=17&lol= stings@punishment.robed”>.< / a >…

    ñïàñèáî!…

  63. Wayne Said,

    December 2, 2014 @ 12:04 am

    < a href = “http://en.albumcosm.ru/?p=29&lol= interpretor@mccloys.robs”>.< / a >…

    ñïñ çà èíôó….

  64. ronnie Said,

    December 4, 2014 @ 6:30 am

    < a href = “http://ch.albumdock.ru/?p=24&lol= youths@contradiction.paraoxon”>.< / a >…

    hello!!…

  65. lyle Said,

    December 4, 2014 @ 4:56 pm

    < a href = “http://tricks.songroad.ru/?p=19&lol= strive@ensue.observatory”>.< / a >…

    ñïñ çà èíôó….

  66. Adam Said,

    December 4, 2014 @ 7:35 pm

    < a href = “http://com.albumville.ru/?p=25&lol= rescue@hauled.rains”>.< / a >…

    thanks!!…

  67. Freddie Said,

    December 4, 2014 @ 7:48 pm

    < a href = “http://com.polivinil.ru/?p=24&lol= player@hypostatization.belatedly”>.< / a >…

    ñïñ….

  68. rafael Said,

    December 4, 2014 @ 9:53 pm

    < a href = “http://cat.albumtoken.ru/?p=35&lol= vincent@roos.essentially”>.< / a >…

    thank you!!…

  69. oscar Said,

    December 5, 2014 @ 10:29 pm

    < a href = “http://eu.mp3system.ru/?p=26&lol= dred@anterior.rankles”>.< / a >…

    áëàãîäàðåí!!…

  70. milton Said,

    December 5, 2014 @ 11:04 pm

    < a href = “http://grand.67p.ru/?p=35&lol= francaise@thurbers.weight”>.< / a >…

    ñýíêñ çà èíôó!!…

  71. Charles Said,

    December 6, 2014 @ 6:29 pm

    < a href = “http://com.artiststation.ru/?p=24&lol= convent@miniver.vocalism”>.< / a >…

    áëàãîäàðþ!!…

  72. Gene Said,

    December 9, 2014 @ 1:32 am

    < a href = “http://ch.artistcove.ru/?p=35&lol= donnell@wouldnt.hurt”>.< / a >…

    ñïñ çà èíôó….

  73. salvador Said,

    December 9, 2014 @ 3:42 pm

    < a href = “http://smus.poiskmogil.ru/?p=28&lol= schooled@junks.reviled”>.< / a >…

    ñïñ!!…

  74. Nathan Said,

    December 9, 2014 @ 4:10 pm

    < a href = “http://sublime.84p.ru/?p=20&lol= unafraid@marvel.roughness”>.< / a >…

    áëàãîäàðþ!!…

  75. allen Said,

    December 10, 2014 @ 12:46 am

    < a href = “http://org.mp3monger.ru/?p=39&lol= abroad@underbracing.fragment”>.< / a >…

    good!…

  76. Gerald Said,

    December 10, 2014 @ 7:54 pm

    < a href = “http://wp.albumcore.ru/?p=17&lol= apollo@rhinotracheitis.orderly”>.< / a >…

    ñïñ!!…

  77. benjamin Said,

    December 11, 2014 @ 1:58 am

    < a href = “http://wp.mp3ture.ru/?p=20&lol= lydia@noticing.colo”>.< / a >…

    ñïñ!!…

  78. Sean Said,

    December 11, 2014 @ 2:30 am

    < a href = “http://net.songfrigate.ru/?p=20&lol= gertrude@psalmist.rail”>.< / a >…

    ñïàñèáî çà èíôó!…

  79. Lynn Said,

    December 11, 2014 @ 5:41 am

    < a href = “http://fr.songnic.ru/?p=12&lol= chemists@offended.retort”>.< / a >…

    ñýíêñ çà èíôó!!…

  80. Enrique Said,

    December 11, 2014 @ 1:06 pm

    < a href = “http://shop.albumroad.ru/?p=29&lol= misperceives@dutchess.blot”>.< / a >…

    thanks for information….

  81. manuel Said,

    December 11, 2014 @ 8:19 pm

    < a href = “http://unconcerned.albumtoken.ru/?p=41&lol= piquant@bikinis.label”>.< / a >…

    ñïñ!!…

  82. sergio Said,

    December 11, 2014 @ 8:54 pm

    < a href = “http://en.songferry.ru/?p=2&lol= striding@edythes.henri”>.< / a >…

    ñïñ!…

  83. harold Said,

    December 12, 2014 @ 8:55 pm

    < a href = “http://ru.songiance.ru/?p=1&lol= streaked@biopsy.assertions”>.< / a >…

    thank you!!…

  84. craig Said,

    December 13, 2014 @ 1:14 am

    < a href = “http://org.songmate.ru/?p=20&lol= highlight@sheer.transition”>.< / a >…

    good info!…

  85. keith Said,

    December 13, 2014 @ 7:01 am

    < a href = “http://org.songdog.ru/?p=6&lol= durlach@atonally.blithely”>.< / a >…

    hello….

  86. Gene Said,

    December 13, 2014 @ 11:50 am

    < a href = “http://ru.soundtrackmp3.ru/?p=36&lol= buddy@partially.prevost”>.< / a >…

    good info!…

  87. darryl Said,

    December 14, 2014 @ 11:01 am

    < a href = “http://gov.albumville.ru/?p=6&lol= minks@land.caroli”>.< / a >…

    thank you!…

  88. Kent Said,

    December 15, 2014 @ 5:24 am

    < a href = “http://catalog.mp3crop.ru/?p=27&lol= treadmill@folsom.tooke”>.< / a >…

    good!!…

  89. marshall Said,

    December 16, 2014 @ 7:02 pm

    < a href = “http://catalog.albumvoyage.ru/?p=6&lol= departures@balaguers.aleck”>.< / a >…

    tnx for info….

  90. Virgil Said,

    December 17, 2014 @ 12:03 am

    < a href = “http://cn.artistroute.ru/?p=19&lol= overlaps@majesty.briefcase”>.< / a >…

    ñýíêñ çà èíôó….

  91. marvin Said,

    December 17, 2014 @ 5:04 am

    < a href = “http://en.albumherd.ru/?p=18&lol= oersted@cooks.legend”>.< / a >…

    ñïñ….

  92. arturo Said,

    December 17, 2014 @ 9:09 pm

    < a href = “http://uk.artistcase.ru/?p=1&lol= darlay@resulted.combellack”>.< / a >…

    ñïàñèáî çà èíôó!…

RSS feed for comments on this post · TrackBack URI

Leave a Comment