How can I change $ to > in terminal? [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • How can I change the prompt of the terminal permanently

    1 answer




In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'.



Please guide me How can I make this change.










share|improve this question













marked as duplicate by dessert command-line
Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Nov 28 at 20:48


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















    up vote
    0
    down vote

    favorite













    This question already has an answer here:




    • How can I change the prompt of the terminal permanently

      1 answer




    In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'.



    Please guide me How can I make this change.










    share|improve this question













    marked as duplicate by dessert command-line
    Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

    StackExchange.ready(function() {
    if (StackExchange.options.isMobile) return;

    $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
    var $hover = $(this).addClass('hover-bound'),
    $msg = $hover.siblings('.dupe-hammer-message');

    $hover.hover(
    function() {
    $hover.showInfoMessage('', {
    messageElement: $msg.clone().show(),
    transient: false,
    position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
    dismissable: false,
    relativeToBody: true
    });
    },
    function() {
    StackExchange.helpers.removeMessages();
    }
    );
    });
    });
    Nov 28 at 20:48


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:




      • How can I change the prompt of the terminal permanently

        1 answer




      In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'.



      Please guide me How can I make this change.










      share|improve this question














      This question already has an answer here:




      • How can I change the prompt of the terminal permanently

        1 answer




      In any terminal there is specific meaning of puneet@Puneet-Ubuntu-PC:~$I want to replace '$' symbol with '>'.



      Please guide me How can I make this change.





      This question already has an answer here:




      • How can I change the prompt of the terminal permanently

        1 answer








      command-line .profile






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 28 at 20:22









      Puneet Dixit

      3553517




      3553517




      marked as duplicate by dessert command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Nov 28 at 20:48


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by dessert command-line
      Users with the  command-line badge can single-handedly close command-line questions as duplicates and reopen them as needed.

      StackExchange.ready(function() {
      if (StackExchange.options.isMobile) return;

      $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
      var $hover = $(this).addClass('hover-bound'),
      $msg = $hover.siblings('.dupe-hammer-message');

      $hover.hover(
      function() {
      $hover.showInfoMessage('', {
      messageElement: $msg.clone().show(),
      transient: false,
      position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
      dismissable: false,
      relativeToBody: true
      });
      },
      function() {
      StackExchange.helpers.removeMessages();
      }
      );
      });
      });
      Nov 28 at 20:48


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


          In my case it was at line 53. Replace it with:



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]> '


          And you are done. Open a new terminal to see changes.






          share|improve this answer





















          • I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
            – heynnema
            Nov 28 at 20:55








          • 1




            @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
            – Kulfy
            Nov 28 at 21:00












          • Fair enough! Good job.
            – heynnema
            Nov 28 at 21:03










          • Thanks @heynnema
            – Kulfy
            Nov 28 at 21:07










          • Thanks Kulfy for description
            – Puneet Dixit
            Nov 29 at 19:07


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


          In my case it was at line 53. Replace it with:



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]> '


          And you are done. Open a new terminal to see changes.






          share|improve this answer





















          • I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
            – heynnema
            Nov 28 at 20:55








          • 1




            @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
            – Kulfy
            Nov 28 at 21:00












          • Fair enough! Good job.
            – heynnema
            Nov 28 at 21:03










          • Thanks @heynnema
            – Kulfy
            Nov 28 at 21:07










          • Thanks Kulfy for description
            – Puneet Dixit
            Nov 29 at 19:07















          up vote
          2
          down vote



          accepted










          Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


          In my case it was at line 53. Replace it with:



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]> '


          And you are done. Open a new terminal to see changes.






          share|improve this answer





















          • I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
            – heynnema
            Nov 28 at 20:55








          • 1




            @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
            – Kulfy
            Nov 28 at 21:00












          • Fair enough! Good job.
            – heynnema
            Nov 28 at 21:03










          • Thanks @heynnema
            – Kulfy
            Nov 28 at 21:07










          • Thanks Kulfy for description
            – Puneet Dixit
            Nov 29 at 19:07













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


          In my case it was at line 53. Replace it with:



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]> '


          And you are done. Open a new terminal to see changes.






          share|improve this answer












          Open .bashrc file with your favorite text editor. In my case I used nano. Find the line that looks like



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '


          In my case it was at line 53. Replace it with:



          PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]> '


          And you are done. Open a new terminal to see changes.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 28 at 20:38









          Kulfy

          2,47521033




          2,47521033












          • I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
            – heynnema
            Nov 28 at 20:55








          • 1




            @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
            – Kulfy
            Nov 28 at 21:00












          • Fair enough! Good job.
            – heynnema
            Nov 28 at 21:03










          • Thanks @heynnema
            – Kulfy
            Nov 28 at 21:07










          • Thanks Kulfy for description
            – Puneet Dixit
            Nov 29 at 19:07


















          • I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
            – heynnema
            Nov 28 at 20:55








          • 1




            @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
            – Kulfy
            Nov 28 at 21:00












          • Fair enough! Good job.
            – heynnema
            Nov 28 at 21:03










          • Thanks @heynnema
            – Kulfy
            Nov 28 at 21:07










          • Thanks Kulfy for description
            – Puneet Dixit
            Nov 29 at 19:07
















          I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
          – heynnema
          Nov 28 at 20:55






          I believe there's an error at the very end of your replacement line. Shouldn't it end in > '?
          – heynnema
          Nov 28 at 20:55






          1




          1




          @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
          – Kulfy
          Nov 28 at 21:00






          @heynnema Nopes. Actually is used to print special characters which has other meanings. And as far as I know was used before $ so that $ isn't mistaken as staring of new command. PS: I tested both the situations before writing the answer. If I consider prompt is like >. And Formatting comment with is giving me a headache
          – Kulfy
          Nov 28 at 21:00














          Fair enough! Good job.
          – heynnema
          Nov 28 at 21:03




          Fair enough! Good job.
          – heynnema
          Nov 28 at 21:03












          Thanks @heynnema
          – Kulfy
          Nov 28 at 21:07




          Thanks @heynnema
          – Kulfy
          Nov 28 at 21:07












          Thanks Kulfy for description
          – Puneet Dixit
          Nov 29 at 19:07




          Thanks Kulfy for description
          – Puneet Dixit
          Nov 29 at 19:07



          Popular posts from this blog

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei