Difference between revisions of "PS1"
Mrjcleaver (talk | contribs) (New page: If you want to show the current VEID in your unix prompt: export PS1="[\u@\h(\`cut -d' ' -f8 < /proc/vz/veinfo\`) \w]\$") |
Mrjcleaver (talk | contribs) |
||
Line 1: | Line 1: | ||
If you want to show the current VEID in your unix prompt: | If you want to show the current VEID in your unix prompt: | ||
− | export PS1="[\u@\h(\`cut -d' ' -f8 < /proc/vz/veinfo\`) \w]\$" | + | export PS1="[\u@\h(\`cut -d' ' -f8 < /proc/vz/veinfo | sort -n | tr '\n' ' ' \` ) \w]\$" |
+ | |||
+ | This shows the current VE number for a CT or all active VEs for the host. |
Latest revision as of 15:34, 7 June 2008
If you want to show the current VEID in your unix prompt:
export PS1="[\u@\h(\`cut -d' ' -f8 < /proc/vz/veinfo | sort -n | tr '\n' ' ' \` ) \w]\$"
This shows the current VE number for a CT or all active VEs for the host.