Project

General

Profile

Useful shell commands » History » Version 8

Amber Herold, 11/01/2011 12:09 PM

1 1 Amber Herold
h1. Useful shell commands
2
3 7 Amber Herold
4
h3. make a folder writable
5
6
<pre> chmod -R g+rw eman_recon14</pre>
7
8 1 Amber Herold
h3. check the status of a job
9
10
# ssh to the processing server
11
# <pre>qstat -au YOUR_USER_NAME</pre>
12
# will list your jobs
13
14 7 Amber Herold
h3. check which nodes are currently being used on processing machine
15 1 Amber Herold
16 7 Amber Herold
<pre>
17
qstat -an
18
</pre>
19 1 Amber Herold
20
21
h3. kill a process
22
23
# Log into the machine it is running on
24
<pre>ssh fly</pre>
25
# Look for processes with your user name
26
<pre>ps -ef |grep [your_username]</pre>
27
# Kill the process using the number in the first column after your username
28
<pre>kill [process id]</pre>
29
# If the process was a copy, remove the destination folder
30
<pre>rm [destination folder]</pre>
31
# list system stats
32
<pre>top</pre>
33 2 Amber Herold
34 5 Amber Herold
h3. submit a job to a job manager
35
36
<pre>
37
qsub <jobfilename>
38
</pre>
39
40 4 Amber Herold
h3. Kill a job running through the job manager
41 2 Amber Herold
42 3 Amber Herold
* use *qdel* <job number>
43 5 Amber Herold
44
h3. Start an interactive session on a node
45
46
<pre>
47
qsub -I
48
</pre>
49
50 6 Amber Herold
you can type in job file contents line by line and see results.
51 1 Amber Herold
52 6 Amber Herold
h3. Check how much space is available on a data drive
53
54 8 Amber Herold
* cd to the drive (cd /ami/data00) and type:
55 1 Amber Herold
<pre>
56
df -h .
57
</pre>
58 7 Amber Herold
59
* to show disc usage status of all mounted systems:
60
<pre>
61
df -h
62
</pre> 
63 6 Amber Herold
64
h3. See what groups a user belongs to
65
66
<pre>
67
id <username>
68
</pre>