18 Temmuz 2013 Perşembe

Change Bash Prompt



Showing server name  at blogger posts is known problem for bloggers. Especially  if you are beginner blogger you have to face lots of screenshots sharing problem.  Best and practical case you can change your server name with simple this command. This change effects only your session.


command :

$echo $PS1

output :

\\u@\h \\W]\\$


run command : PS1="[\d \t \u@server:\w ] $ "

\d : the date in (Thu Jul 18)  format
\t  : the time in (16:48:35) format
\u : user
\w: current working directory







Hiç yorum yok: