Edit the shell environment configuration file (for example , to configure bash, add to the ''~/.bashrc'' file): export PS1="[\d \t \u@\h:\w ] $ " # shows date, time, host and current directory in your prompt HISTTIMEFORMAT="%d/%m/%y %T " # adds timestamps to your history Alternatively, gather this information by running commands: * ''$ hostname'' will output something like: cometlogin01.comet.hpc.ncl.ac.uk * ''$ pwd'' will output something like: /nobackup/proj/MyProject * ''$ date'' will output something like: Mon 7 Jul 12:25:26 BST 2025