top of page

Unix command to change prompt from default to PWD

  • Writer: Jatin Madaan
    Jatin Madaan
  • Feb 21, 2019
  • 1 min read

Go to home directory in Unix/Linux machine and edit file .bash_profile (file name is with . and might not be visible with ls -ltr command ,use ls -lart instead ) .


Edit file and enter : PS1='$PWD-->'


Save file and then type $source .bash_profile





Comments


  • linkedin

©2019 by Jatinmadaan

bottom of page