hipergator-commands

HiperGator Commands

Useful commands and things for hipergator

For an example phits run, click here

Contents

SSHing in from an external computer

TODO

Submit job

sbatch job.sh

Checking useage

Check lab usage

slurminfo -u bolch

Check your own jobs

squeue -u username

Cancel job

scancel JOBID

Cancel all your jobs

scancel -u username

Show job info

scontrol show job JOBID

General commands

Navigating the system

pwd              # where am I
ls               # list files
ls -lah          # detailed list (size, permissions, hidden files)
cd folder/       # go into folder
cd ..            # go up one directory
cd ~             # home directory

Working with files

cp a.txt b.txt        # copy
mv a.txt b.txt        # move/rename
rm file.txt           # delete file
rm -r folder/         # delete folder (careful)
mkdir new_folder      # create folder
touch file.txt        # create empty file
cat file.txt          # view the contents of the file

Writing messages in terminal or in files

echo "message"               # Write message in terminal
echo "message" > file.txt    # Write message in file.txt
echo "message" >> file.txt   # Append message to end of file.txt
nano filename                # Open file in a mini text editor (it takes some learning to figure out how to use)

Notes