Skip to content

Course in Laboratory techniques and data analysis in precision medicine 1

Common command line commands

zcat <file> # to concatenate gzipped files without decompressing

less <file> # to open up files without printing them to terminal. Scroll using error keys or space bar. End with 'q'

grep <pattern> <file> # to search for a pattern in a file

head <file> # to print the first 10 lines of a file (default)

man <command> # to access the manual pages of command

use CTRL+C to abort a command

some programs can also show you help on how to use the command by adding --help