Understanding .bashrc
\u
-> Returns username
\h
-> Hostname
\n
-> Newline
\s
-> shell name
\t
-> Current time
\w
-> Current Working directory
\W
-> Basename of current working directory
We can run man test
to check what the if loop condition checks mean. [shell script]
Last updated