You can setup the configuration of terminal/command line in order to show user@hostname followed by full path to the current directory by entering the following command in the terminal:

 

export PS1=”\u@\h [\$(pwd) ]#”

After this, your terminal line should look like:

root@server [/home/current/folder ]#

Leave a Reply