Difference between revisions of "PS1"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 8: Line 8:
 
  PS1='[\u@\h \W]\$ '
 
  PS1='[\u@\h \W]\$ '
  
 +
 +
echo $PS1
 +
${debian_chroot:+($debian_chroot)}\u@\h:\w\$
  
 
== See also ==
 
== See also ==

Revision as of 12:12, 8 August 2021

This article is a Draft. Help us to complete it.


ssh SERVER_NAME -t "export PS1=your_text; bash" 


Examples:

PS1='[\u@\h \W]\$ '


echo $PS1
${debian_chroot:+($debian_chroot)}\u@\h:\w\$

See also

Advertising: