Changing screen resolution from command line

 

Run: xrandr
this will display available resolutions. Then you can perform the following:
xrandr -s 1024x768

This would change the screen resolution to 1024x768 (provided your monitor supports 1024x768)