You probably have noticed that your SSH shell prompt displays [UWNetID@csslab# ~$] when login in to the CSS Remote lab, followed by the current directory. However, you can easily customize your prompt to display information important to you. For example, displaying your working directory on your shell.

To display the working directory you can use this command:

export PS1="\u@\h:\`pwd\` $ "

This will change your shell from: 

UWNetID@csslab1:~$  

To:

UWNetID@csslab1:/home/NETID/UWNetID $

Please note that using the above command will only change the Bash prompt for the current session. 
If you want to make the changes permanent, edit your .bashrc to include the changes above at the end of the file.

Open your .bashrc file using your preferred editor and include the following to the end of the file.

$nano ~/.bashrc 
# User specific aliases and functions
PS1="\u@\h:\`pwd\` $ "

Save the file and log off/on for the changes to take effect.

Other Examples

To display the date:

export PS1="\d \h $ "

Sample output:

Fri Jul 28 csslab1 $ 

To display date/time, hostname and the current working directory::

export PS1="[\d \t \u@\h:\w ] $ "

Sample output:

[Fri Jul 28 16:47:53 UWNetID@csslab1:~ ] $