How do you differentiate between a local and remote terminal? [closed]

The two main ways to do this are to change your PS1 variable so it contains the host name, and to use different colour schemes on your terminal app for different hosts. You could also use separate colour schemes for root shells.


I always have user and host name in my shell prompt