[Solved] How to show the Linux command line on 1 row? [closed]


You need edit the file .bash_profile,

  1. Open the terminal

  2. Run the command to edit:

    nano .bash_profile

  3. Insert this line:

    export PS1=”[\e[0;31m]\u[\e[0;36m]@[\e[1;36m]\h[\e[1;34m]:[\e[1;33m]\w[\e[0;31m]$ [\e[0;37m]”

  4. Ctrl+X to save, close and open again the temrinal

  5. You will get a

    user@host:~/working/dir $

2

solved How to show the Linux command line on 1 row? [closed]