Commands | Results |
---|---|
ssh username@condo2017.its.iastate.edu |
Connect to remote server |
ssh username@pronto.las.iastate.edu |
Connect to remote server |
module load r/3.5.0-py2-x335hrh |
Load a specific environment |
File transfer
scp -r username@hpc-class.its.iastate.edu:mydir ./mydir
prontodtn.las.iastate.edu
condodtn.its.iastate.edu
Commands | Results |
---|---|
nano <file> |
Open the terminal editor to write file |
control + x | Exit the terminal editor |
How to use Pronto Use Julia GPU docker containers with singularity
srun --time=01:00:00 --cpus-per-task=1 --partition=interactive --pty /usr/bin/bash
module avail pip
module load py-pip/9.0.1-py3-dpds55c
pip install --user <packagename>
issue ‘make install’ to install compiled code in the directory specified in the –prefix option on the configure command
wget https://julialang-s3.julialang.org/bin/linux/x64/1.0/julia-1.0.5-linux-x86_64.tar.gz
tar –tzf documents.tar.gz # https://phoenixnap.com/kb/extract-tar-gz-files-linux-command-line
<Julia directory>/bin/julia
$ module load r
$ R
q()
jobname.sh
using either texteditor locally or vim, change the postfix to sh
manuallyprogramName.R
locates in, type sbatch jobname.sh
qstat -u NetID
or qstat -a
#!/bin/bash
# Copy/paste this job script into a text file and submit with the command:
# sbatch thefilename
# job standard output will go to the file slurm-%j.out (where %j is the job ID)
#SBATCH --time=1:00:00 # walltime limit (HH:MM:SS)
#SBATCH --nodes=1 # number of nodes
#SBATCH --ntasks-per-node=16 # 16 processor core(s) per node
# LOAD MODULES, INSERT CODE, AND RUN YOUR PROGRAMS HERE
module load r
R CMD BATCH programName.R
Commands for checking job status
Commands | Results |
---|---|
qstat -a |
All jobs |
qstat -u username |
Jobs submitted by user |
qsub |
Execute the jobfile |
qdel |
Terminate one job |
export LC_ALL="en_US.UTF-8" |
Set language |
Commands | Results |
---|---|
/ (Forward Slash) |
Top level directory |
. (Single Period) |
Current directory |
.. (Double Period) |
Parent directory |
~ (Tilde) |
Home directory |
sudo [command] |
Run command with the security privileges of the super user |
nano [file] |
Opens the Terminal editor |
open [file] |
Opens a file |
[command] -h |
Get help about a command |
Commands | Results |
---|---|
cd |
Home directory |
cd [folder] |
Change directory, e.g. cd Documents |
cd ~ |
Home directory |
cd / |
Root of the drive |
cd - |
Previous directory or folder you last browsed |
pwd |
Show your working directory |
cd .. |
Move up to the parent directory |
cd ../.. |
Move up two levels |
Commands | Results |
---|---|
ls |
Display the name of files and subdirectories in the directory |
ls -C |
Force multi-column output of the listing |
ls -a |
List all entries including those with .(period) and ..(double period) |
ls -l <dir/file> |
List the sizes of the files in the dir / files, use * to list all the file sizes in the current dir |
du -sh . |
Calculate the whole size of the current dir |
Commands | Results |
---|---|
mkdir <dir> |
Create new folder named |
mkdir -p <dir>/<dir> |
Create nested folders |
mkdir <dir1> <dir2> <dir3> |
Create several folders at once |
mkdir "<dir>" |
Create a folder with a space in the filename |
rmdir <dir> |
Delete a folder (only works on empty folders) |
rm -R <dir> |
Delete a folder and its contents, equivalent to rm -r |
rm <file> |
Delete a file (This deletes the file permanently; use with caution.) |
rm -i <file> |
Delete a file only when you give confirmation |
rm -f <file> |
Force removal without confirmation |
rm <file1> <file2> <file3> |
Delete multiple files without any confirmation |
mv <file> <newfilename> |
Move/rename |
mv <file> <dir> |
Move a file to the folder, possibly by overwriting an existing file |
mv -i <file> <dir> |
Optional -i flag to warn you before overwriting the file |
mv *.png ~/<dir> |
Move all PNG files from current folder to a different folder |
touch <file> |
Create a new file without any extension |
cp <file> <dir> |
Copy a file to the folder |
cp <file> <newfile> |
Copy a file to the current folder |
cp <file>~/<dir>/<newfile> |
Copy a file to the folder and rename the copied file |
cp -R <dir> <"new dir"> |
Copy a folder to a new folder with spaces in the filename |
cp -i <file><dir> |
Prompts you before copying a file with a warning overwrite message |
cp <file1> <file2> <file3>/Users/<dir> |
Copy multiple files to a folder |
Commands | Results |
---|---|
Ctrl + A | Go to the beginning of the line you’re currently typing on |
Ctrl + E | Go to the end of the line you’re currently typing on |
Ctrl + U | Clear the line before the cursor |
Ctrl + K | Clear the line after the cursor |
Ctrl + C | Kill whatever you’re running |
Ctrl + D | Exit the current shell |
Useful to install and version control softwares.
Commands | Results |
---|---|
` xcode-select —install` | Install Xcode Tools |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
Install Homebrew |
brew install cask |
Install Cask |
brew search --casks |
List apps |
brew search (discord) |
Search apps |
brew cask install (discord) |
Install |
` brew cask upgrade` | Update all softwares downloaed through cask |
` brew cask help` | Help |