SlideShare a Scribd company logo
Text handling commandsText handling commands
command > file saves STDOUT in a file
command >> file appends STDOUT in a file
cat file concatenate and print files
cat file1 file2 > file3 merges files 1 and 2 into file3
cat *fasta > all.fasta
concatenates all fasta files in
the current directory
head file prints first lines from a file
head -n 5 file prints first five lines from a file
tail file prints last lines from a file
tail -n 5 file prints last five lines from a file
less file view a file
less -N file includes line numbers
less -S file wraps long lines
grep ‘pattern’ file Prints lines matching a pattern
grep -c ‘pattern’ file counts lines matching a pattern
cut -f 1,3 file
retrieves data from selected
columns in a tab-delimited file
sort file sorts lines from a file
sort -u file sorts and return unique lines
uniq -c file filters adjacent repeated lines
wc file counts lines, words and bytes
paste file1 file2
concatenates the lines of input
files
paste -d “,”
concatenates the lines of input
files by commas
sed transforms text
File system CommandsFile system Commands
ls lists directories and files
ls -a lists all files including hidden files
ls -lh formatted list including more data
ls -t lists sorted by date
pwd returns path to working directory
cd dir changes directory
cd .. goes to parent directory
cd / goes to root directory
cd goes to home directory
touch file_name creates en empty file
cp file file_copy copy a file
cp -r copy files contained in directories
rm file deletes a file
rm -r dir deletes a directory and its files
mv file1 file2 moves or renames a file
mkdir dir_name creates a directory
rmdir dir_name deletes a directory
locate file_name searches a file
man command shows commands manual
top shows process activity
df -h shows disk space info
apt-get install installs applications in linux
Networking CommandsNetworking Commands
wget URL download a file from an URL
ssh user@server connects to a server
scp copy files between computers
Compression commandsCompression commands
gzip/zip compress a file
gunzip/unzip decompress a file
tar -cvf groups files
tar -xvf ungroups files
tar -zcvf groups and gzip files
tar -zxvf gunzip and ungroups files
UNIX Command-Line Cheat Sheet
BTI-SGN Bioinformatics Course 2014

More Related Content

PPTX
International day against drug abuse and illicit trafficking
PDF
Presentation aix basic
PPTX
Genetic programming
PPTX
Cloning in eukaryotes
PPTX
System Programming Unit II
PDF
CCN Unit-5 Transport & Application Layer by Adi.pdf
PPTX
Diabetes Mellitus
PPTX
Hypertension
International day against drug abuse and illicit trafficking
Presentation aix basic
Genetic programming
Cloning in eukaryotes
System Programming Unit II
CCN Unit-5 Transport & Application Layer by Adi.pdf
Diabetes Mellitus
Hypertension

What's hot (20)

PDF
Linux cheat-sheet
PDF
Linux Bash Shell Cheat Sheet for Beginners
PDF
Shell scripting
PPT
Ipc in linux
PPTX
CS8792 - Cryptography and Network Security
PPT
Linux basic commands
PPTX
VLAN -VIRTUAL LAN -COMPUTER NETWORKS
PDF
Linux Basic Commands
PDF
Basic linux commands
PPTX
Tcp/ip model
PPTX
Keymanagement of ipsec
DOCX
linux file sysytem& input and output
PDF
Processes in unix
PPTX
ipv4 (internet protocol version 4)
PPTX
VLSM & SUPERNETTING
PPTX
Introduction 2 linux
PPT
Linux Commands
PDF
PPTX
Wireless application protocol
PPTX
User and groups administrator
Linux cheat-sheet
Linux Bash Shell Cheat Sheet for Beginners
Shell scripting
Ipc in linux
CS8792 - Cryptography and Network Security
Linux basic commands
VLAN -VIRTUAL LAN -COMPUTER NETWORKS
Linux Basic Commands
Basic linux commands
Tcp/ip model
Keymanagement of ipsec
linux file sysytem& input and output
Processes in unix
ipv4 (internet protocol version 4)
VLSM & SUPERNETTING
Introduction 2 linux
Linux Commands
Wireless application protocol
User and groups administrator
Ad

Similar to Unix Command-Line Cheat Sheet BTI2014 (20)

PDF
SGN Introduction to UNIX Command-line 2015 part 1
PDF
Introduction to UNIX Command-Lines with examples
PDF
SGN Introduction to UNIX Command-line 2015 part 2
PDF
Workshop on command line tools - day 1
PPTX
AARAV NAYAN OPERATING SYSTEM LABORATORY PCA
PDF
Basic basic solaris quick referent card
PDF
Unix command line concepts
PPTX
Linux System commands Essentialsand Basics.pptx
PPTX
Unix Trainning Doc.pptx
PDF
Linux Command Line - By Ranjan Raja
PPTX
Basic Linux Commands with syntax and functions
PPTX
Basic Linux Commands and implementation with Examples
DOCX
40 basic linux command
DOCX
40 basic linux command
PPT
Linux ppt
PPT
Linux commands
PPT
Linux presentation
PPT
Examples -partII
RTF
Unix lab manual
PPTX
Linux Basic commands and VI Editor
SGN Introduction to UNIX Command-line 2015 part 1
Introduction to UNIX Command-Lines with examples
SGN Introduction to UNIX Command-line 2015 part 2
Workshop on command line tools - day 1
AARAV NAYAN OPERATING SYSTEM LABORATORY PCA
Basic basic solaris quick referent card
Unix command line concepts
Linux System commands Essentialsand Basics.pptx
Unix Trainning Doc.pptx
Linux Command Line - By Ranjan Raja
Basic Linux Commands with syntax and functions
Basic Linux Commands and implementation with Examples
40 basic linux command
40 basic linux command
Linux ppt
Linux commands
Linux presentation
Examples -partII
Unix lab manual
Linux Basic commands and VI Editor
Ad

Recently uploaded (20)

DOCX
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PPTX
Cell Membrane: Structure, Composition & Functions
PDF
HPLC-PPT.docx high performance liquid chromatography
PPTX
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
PPTX
microscope-Lecturecjchchchchcuvuvhc.pptx
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PDF
diccionario toefl examen de ingles para principiante
PPTX
Introduction to Fisheries Biotechnology_Lesson 1.pptx
PPTX
Microbiology with diagram medical studies .pptx
PPTX
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
PPTX
2. Earth - The Living Planet Module 2ELS
PPTX
2. Earth - The Living Planet earth and life
PPTX
neck nodes and dissection types and lymph nodes levels
PPTX
TOTAL hIP ARTHROPLASTY Presentation.pptx
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
INTRODUCTION TO EVS | Concept of sustainability
Cell Membrane: Structure, Composition & Functions
HPLC-PPT.docx high performance liquid chromatography
G5Q1W8 PPT SCIENCE.pptx 2025-2026 GRADE 5
microscope-Lecturecjchchchchcuvuvhc.pptx
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
diccionario toefl examen de ingles para principiante
Introduction to Fisheries Biotechnology_Lesson 1.pptx
Microbiology with diagram medical studies .pptx
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
2. Earth - The Living Planet Module 2ELS
2. Earth - The Living Planet earth and life
neck nodes and dissection types and lymph nodes levels
TOTAL hIP ARTHROPLASTY Presentation.pptx
Classification Systems_TAXONOMY_SCIENCE8.pptx

Unix Command-Line Cheat Sheet BTI2014

  • 1. Text handling commandsText handling commands command > file saves STDOUT in a file command >> file appends STDOUT in a file cat file concatenate and print files cat file1 file2 > file3 merges files 1 and 2 into file3 cat *fasta > all.fasta concatenates all fasta files in the current directory head file prints first lines from a file head -n 5 file prints first five lines from a file tail file prints last lines from a file tail -n 5 file prints last five lines from a file less file view a file less -N file includes line numbers less -S file wraps long lines grep ‘pattern’ file Prints lines matching a pattern grep -c ‘pattern’ file counts lines matching a pattern cut -f 1,3 file retrieves data from selected columns in a tab-delimited file sort file sorts lines from a file sort -u file sorts and return unique lines uniq -c file filters adjacent repeated lines wc file counts lines, words and bytes paste file1 file2 concatenates the lines of input files paste -d “,” concatenates the lines of input files by commas sed transforms text File system CommandsFile system Commands ls lists directories and files ls -a lists all files including hidden files ls -lh formatted list including more data ls -t lists sorted by date pwd returns path to working directory cd dir changes directory cd .. goes to parent directory cd / goes to root directory cd goes to home directory touch file_name creates en empty file cp file file_copy copy a file cp -r copy files contained in directories rm file deletes a file rm -r dir deletes a directory and its files mv file1 file2 moves or renames a file mkdir dir_name creates a directory rmdir dir_name deletes a directory locate file_name searches a file man command shows commands manual top shows process activity df -h shows disk space info apt-get install installs applications in linux Networking CommandsNetworking Commands wget URL download a file from an URL ssh user@server connects to a server scp copy files between computers Compression commandsCompression commands gzip/zip compress a file gunzip/unzip decompress a file tar -cvf groups files tar -xvf ungroups files tar -zcvf groups and gzip files tar -zxvf gunzip and ungroups files UNIX Command-Line Cheat Sheet BTI-SGN Bioinformatics Course 2014