Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 1.38 KB

LINUX.md

File metadata and controls

77 lines (53 loc) · 1.38 KB

Linux

Table of Contents

Commands

diff

Compare difference between two files.

diff -u [file1] [file2]

find

Search for a file in a directory.

find [dir] -name [filename]

grep

Search for a pattern in a file.

grep -i [pattern] [file]

ln

Create a symbolic link

ln -s [source] [destination]

sed

Find and replace a string within a file.

sed -i 's/[find]/[replace]/' [file]

tail

Monitor a file.

tail -f [file]

Shortcuts

Terminal

Shortcut Description
Control + Alt + A Add terminal
Control + Alt + D Add terminal down
Control + Alt + R Add terminal right
Shift + Alt + ▲, ▼, ◄, ► Directionally resize a terminal
Control + Tab Switch to next terminal
Control + Shift + Tab Switch to previous terminal
Alt + ▲, ▼, ◄, ► Directionally switch to a terminal
Alt + 0 - 9 Switch to a specific terminal