Great Lakes Cheat Sheet
Guide to general Linux (Bash) and Slurm commands
Logging in from a terminal (Duo required)
ssh uniqname @greatlakes.arc-ts.umich.edu
Transferring files between Great Lakes and your system
scp input uniqname @greatlakes-xfer.arc-ts.umich.edu: output
scp -r input uniqname @greatlakes-xfer.arc-ts.umich.edu: output
scp uniqname @greatlakes-xfer.arc-ts.umich.edu: input output
GUI Clients
FTP client for Windows, Mac, and Linux
Basic Linux file management
Display the manual page for
command
Print out the present working directory
List the files in the current directory
Show long, human-readable listing
List files inside directory
dir
Create empty directory called
dir
Remove empty directory
dir
Remove directory
dir
and all contents
Change working directory to
dir
Change working directory to parent
Change working directory to home
List the files in the current directory
Copy
file1
into directory
dir
Move
file1
into directory
dir
Current (working) directory
Download a file from Internet
URL
Extract a gzip compressed tarball (common
extensions: .tar.gz and .tgz )
Viewing and editing text files
Print entire content of
file
Prints content of file page by page
Print first 10 lines of
file
Print last 10 lines of
file
Simple, easy to use text editor
Minimalist yet powerful text editor
Extensible and customizable text editor
Advanced file management
Change read/write/execute permissions
List the full file path of a command
List all related file paths (binary, source,
manual, etc.) of a command
List size of directory and its subdirectories
Find file in a directory
Aliases and system variables
Create shortcut to command
Lists all environment variables
Create environment variable $
var
with value
val
Print the value of variable $
var
File that defines user aliases and variables
Input and output redirection
Runs
command
first, then inserts output to the
rest of the overall command
Standard input redirection
Standard output redirection
Standard error redirection
Standard error to standard output redirection
Pipe the output of
cmd1
to
cmd2
Word, line, and character count
Find and print text matching a regular
expression
Cut specific fields or columns
Stream editor for search and replace
Extensive tool for complex filtering tasks
arc-ts.umich.edu/greatlakes
Revised 5/2020