Project

General

Profile

Useful shell commands » History » Version 6

Amber Herold, 11/01/2011 11:56 AM

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.
44 6 Amber Herold
45
h3. Check how much space is available on a data drive
46
47
cd to the drive and type:
48
<pre>
49
df -h .
50
</pre>
51
52
h3. See what groups a user belongs to
53
54
<pre>
55
id <username>
56
</pre>