CBU Cluster Utility Functions |
e.g. login_load, freenodes, showallmatlab |
see CBU intranet |
Disk usage information |
du |
estimate space usage of directories and files, e.g. du –sh /imaging/xy01/experiment1 |
Change linux box |
ssh <machine> |
e.g. ssh l42 |
Show your jobs/processes in current session |
jobs |
|
Show current processes |
ps |
more details: ps -ef |
Kill a process |
kill |
kill <processID>, where <processID> is from ps output |
Show most CPU-intensive tasks on current processor |
top |
|
Checking where an executable file is located |
which <filename> |
|
Show name of current linux box |
hostname |
ip address: hostname -i |
Show features of current linux box |
uname |
more details: uname -a |
Check your user name |
whoami |
|
Get time or date |
time, date |
|
Useful Tricks
Use cursor keys up/down to get previous commands |
Copy/paste: mark text with left mouse button, click to destination, click middle mouse button |
Auto-complete commands: start typing, then “Tab” to complete to next unique possibility |
Type the beginning of a previously used command, then simultaneously press Esc p to autocomplete to last used command with same beginning |
Move cursor to beginning Ctrl+a or end Ctrl+e of command line |
Run linux commands from within matlab using ! <command> (e.g. ! hostname) or [s,r] = unix(<command>) (e.g., [s,r] = unix('hostname')), where s returns the status (0=pass, nonzero=fail) and r is the result (e.g., 'l41'). |
General
Intro to Unix: http://www.ee.surrey.ac.uk/Teaching/Unix/ |
Primer on shell scripting |
VNC (UsingVNC): start Putty, vncserver –geometry 1280x1024 –name <somename>, for OpenGL graphics: vncserver.glx -geometry 1280x1024 -name <somename> |
Access home space: Windows \\home\username; Linux /home/username |