title: How to switch between the X sessions by only-using the command line?
body: <p>Since I am running the X session in the VirtualBox, as a result, whether I type <code>ctrl+alt</code> + <code>f7</code>or<code>f12</code> all the commands are executed on the host, not on the guest.So, I am not able to switch between the X sessions.
  All i can do is start a new session by--</p>
  
  <p><code>startx -- :$num</code></p>
  
  <p>but how to go back to the previous sessions from the cli. </p>
  
  <p>So is there a command for switching between the X sessions? </p>