Difference between revisions of "Useful commands"

From HPC
m (Quota)
m (Quota)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== HPC ===
 
=== HPC ===
  
Check how much of your quota you've used with the <code>quota</code> or <code>df ~</code> commands.
+
Check how much of your quota you've used with the <code>quota -h</code> or <code>df ~</code> commands.
 +
 
 +
<pre>
 +
username@hpc1 ~> quota -h
 +
Filesystem          Size  Used Avail Use% Mounted on
 +
storage2.hpc:/home  1.0T  26G  999G  3% /home
 +
</pre>
  
 
=== CAF-HPC1 ===
 
=== CAF-HPC1 ===

Latest revision as of 14:56, 19 January 2017

Quota

Each user is given a disk quota of 1TB as a precaution against filling the disks with a runaway job before anybody notices. This does not mean that you should attempt to fill the quota or store old data on the cluster. Please try to regularly remove old, unused data.

HPC

Check how much of your quota you've used with the quota -h or df ~ commands.

username@hpc1 ~> quota -h
Filesystem          Size  Used Avail Use% Mounted on
storage2.hpc:/home  1.0T   26G  999G   3% /home

CAF-HPC1

Check how much of your quota you've used with the quota -s command. The -s makes the output easier to read.

username@launch:~> quota -s
Disk quotas for user username (uid 12345678):
      Filesystem    blocks   quota   limit   grace   files   quota   limit   grace
/dev/mapper/vg0-home 5279M   1024G   1100G            3927       0       0

File management

GNU Midnight Commander is a visual file manager. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.

Start it with the mc command.

To quit, press F10, or if your SSH client doesn't like that, press ESC followed by 0. All the F-keys can be called in this way, ESC followed by the number of the F-key.