CSC Quick Reference

Unix commands CSC modules

- list directory • module load - initialize the environment of • - copy a an application • - move or rename a file • module spider - list available modules • - delete a file • module list - list loaded applications • - change the current directory • module purge - remove application • - print name of the current directory environments • - create a directory • - delete a directory CSC batch jobs • – change file rights o owner/group/everybody • sbatch - submit a job o read(4)/(2)/execute(1) • squeue - see the job status in the queue • chgrp – change file/folder owner • scancel - cancel a job • – see text file ( with q) • seff - about completed jobs • exit - quit the session • sacct - info about completed jobs • - list all commands given previously • - list ten first lines of the file CSC servers • -100 - show the last 100 lines • tail -f - keeps listing the end of file. Handy for • puhti.csc.fi following an output file when lines are • mahti.csc.fi appended to it. • rows containing a string • ls -la > file - output of a command to a file • ls -la >> file – append output of a command to a file • ls -la | grep "nobel" - Chaining (piping) • ServiceDesk: [email protected] multiple commands • Accounts, projects, forgotten password: • zip - compress https://my.csc.fi on commandline also csc- • unzip - uncompress projects and csc-workspaces • What is available: https://research.csc.fi/ • How to use them: https://docs.csc.fi/ File transfer • https://docs.csc.fi/support/FAQ • scp - copy a file from one computer to • https://docs.csc.fi/support/tutorials/ another • wget, curl – get a file from HTTP /FTP • rsync – get/put a file from/to rsync server • -hs * (disk space used by directories) • a-put file (copies file or folder to Allas) • a-get object (copy an object from Allas to current directory) • a-list (shows content of your Allas archive) • a-publish (makes file available via www)