Você está na página 1de 4

Date : 10/29/2009 - Change resolution from cmd line

How to Change resolution in linux if the resolution is not listed in System>Preferences->Screen resolution:

To change the resolution (monitor display) from the command line ( using a terminal window ) do this: ( when x is running -- don't exit Xwindows just use a terminal window. This is done from the command line. ) [ xrandr ] this command will bring up information like this:
SZ: Pixels Physical 0 1024 x 768 ( 271mm x 201mm 1 800 x 600 ( 271mm x 201mm 2 640 x 480 ( 271mm x 201mm *3 832 x 624 ( 271mm x 201mm 4 720 x 400 ( 271mm x 201mm 5 640 x 400 ( 271mm x 201mm 6 640 x 350 ( 271mm x 201mm Current rotation - normal Current reflection - none Rotations possible - normal Reflections possible - none ) ) ) ) ) ) ) Refresh 75 70 85 75 85 75 *74 85 85 85 60 72 72 60 60 56

This will show the resolutions possible on your monitor. The star indicates what is currently being used. To change resolution use a command like this: [ xrandr -s 1024x760 ] This will immediately change the resolution; in this case to 1024x760. ( it takes about .5 seconds on my system which uses a "Super View 1280" monitor which is actually an Hitachi cm500 as far as specifications go -- I am using RedHat with kernel 2.4.20-6 and Xfree86 version 4.3.0) To check for xrandr on your system type [ xdpyinfo ] (If you see RANDR listed under number of extensions then it should work.) Also typing [ xrandr -s ] will give this information:
usage: xrandr [options] where options are: -display <display> or -d <display> -help -o <normal,inverted,left,right,0,1,2,3> or --orientation <normal,inverted,left,right,0,1,2,3> -q or --query -s <size>/<width>x<height> or --size <size>/<width>x<height> -r <rate> or --rate <rate> -v or --version -x (reflect in x) -y (reflect in y)

--screen <screen> --verbose

Others had a resolution of 1680x1050 for the same monitor size, but I didnt have the resolution listed in Screen resolution options. I changed the resolution to 1680x1050 using the above command and it worked Cmd: xrandr s 1680x1050

Date : 10/29/2009 view list of active processes ps -ef | grep <process name> eg: ps -ef | grep jdev To kill a process : # kill -9 <pid> (obtained frm the above cmd) Another way of killing jdev: # killall -9 java

12/30/2009 Create a link to a folder ln s <path of original folder> <path to the new location ending with the new folder name>

02/11/2010 FIND command Examples: List all files named chapter1 in the /work directory: find /work -name chapter1 List all files beginning with memo owned by ann: find /work -name 'memo*' -user ann -print

03/22/2010 pipe output to text file To pipe the output of a shell command into a text file just append >> <file-name>.txt at the end of the command 03/28/2010 vncserver commands Start a vncserver port:
vncserver -geometry 1410x800

(resolution depends on laptop/desktop) vncpasswd This is to change the pass word. How to change to kde desktop: Goto /scratch/poprakas/.vnc Open xstartup (this is a shell command) Replace filename xterm to &startkde Note: Best resolutions: For laptop ==========
vncserver -geometry 1420x900

For my old desktop ==============


vncserver -geometry 1280x930

============================================================================

10/15/10
============================================================================

When a process is running, backgrounded or suspended, it will be entered onto a list along with a job number. To examine this list, type

% jobs An example of a job list could be [1] Suspended sleep 1000 [2] Running netscape [3] Running matlab To restart (foreground) a suspended processes, type % fg %jobnumber For example, to restart sleep 1000, type % fg %1 Typing fg with no job number foregrounds the last suspended process. =================================================== =============================== To find out the current jdk version installed on your computer:

Terminal/command prompt : java -version

Você também pode gostar