[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Add a hard drive to existing system??



On 19/1/21 7:18 am, David Christensen wrote:
I set PS1 in my Bash profile to print a blank line, print useful
contextual information, and then print the prompt.  This makes it easier
to read, understand, and/or reproduce the session:

2021-01-18 12:01:50 root@tinkywinky ~
# cat /etc/debian_version
9.13

2021-01-18 12:13:41 root@tinkywinky ~
# uname -a
Linux tinkywinky 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05)
x86_64 GNU/Linux

2021-01-18 12:13:43 root@tinkywinky ~
# grep PS1 .profile
export PS1='\n\D{%Y-%m-%d %H:%M:%S} '${USER}'@\h \w\n\$ '


Thanks for this.

I'll just add that if you make this change, run

source .profile

to activate it.

--
Keith Bainbridge

ke1thozgroups@gmx.com


Reply to: