Fast VPS access on OpenVZ

Tired of typing in: “vzctl enter <VEID>” all the time? If you’ve not made it already your self, here’s a very handy script:

If you copy and paste it directly to the commandline take the first line as well (save it with ctrl-D), else copy it from the second. Call it “vzenter”, permissions: chmod vzenter 0700 and put it in; /usr/local/bin

cat > vzenter

# Simple script to enter a VPS by

if [[ ! $1 ]]; then
   echo "Usage: vzenter <veid>"
   vzctl enter $veid
Tags: , ,

About Esmé