Useful shell commands » History » Version 5
Amber Herold, 10/14/2011 03:31 PM
| 1 | 1 | Amber Herold | h1. Useful shell commands |
|---|---|---|---|
| 2 | |||
| 3 | h3. check the status of a job |
||
| 4 | |||
| 5 | # ssh to the processing server |
||
| 6 | # <pre>qstat -au YOUR_USER_NAME</pre> |
||
| 7 | # will list your jobs |
||
| 8 | |||
| 9 | h3. make a folder writable |
||
| 10 | |||
| 11 | <pre> chmod -R g+rw eman_recon14</pre> |
||
| 12 | |||
| 13 | |||
| 14 | h3. kill a process |
||
| 15 | |||
| 16 | # Log into the machine it is running on |
||
| 17 | <pre>ssh fly</pre> |
||
| 18 | # Look for processes with your user name |
||
| 19 | <pre>ps -ef |grep [your_username]</pre> |
||
| 20 | # Kill the process using the number in the first column after your username |
||
| 21 | <pre>kill [process id]</pre> |
||
| 22 | # If the process was a copy, remove the destination folder |
||
| 23 | <pre>rm [destination folder]</pre> |
||
| 24 | # list system stats |
||
| 25 | <pre>top</pre> |
||
| 26 | 2 | Amber Herold | |
| 27 | 5 | Amber Herold | h3. submit a job to a job manager |
| 28 | |||
| 29 | <pre> |
||
| 30 | qsub <jobfilename> |
||
| 31 | </pre> |
||
| 32 | |||
| 33 | 4 | Amber Herold | h3. Kill a job running through the job manager |
| 34 | 2 | Amber Herold | |
| 35 | 3 | Amber Herold | * use *qdel* <job number> |
| 36 | 5 | Amber Herold | |
| 37 | h3. Start an interactive session on a node |
||
| 38 | |||
| 39 | <pre> |
||
| 40 | qsub -I |
||
| 41 | </pre> |
||
| 42 | |||
| 43 | you can type in job file contents line by line and see results. |