Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Summary

Summary terminal (programming) cheat sheet

Document preview thumbnail
Preview 1 out of 3 pages

terminal (programming) cheat sheet

Content preview

CHEAT SHEET TERMINAL COMMANDS


Essentials
Cursor movement (Normal/Visual Mode)
h j k l - Arrow keys
w / b - Next/previous word
W / B - Next/previous word (space seperated)
e / ge - Next/previous end of word
0 / $ - Start/End of line
^ - First non-blank character of line (same as 0w)
Editing text
i / a - Start insert mode at/after cursor
I / A - Start insert mode at the beginning/end of the line
o / O - Add blank line below/above current line
Esc or Ctrl+[ - Exit insert mode
d - Delete
dd - Delete line
c - Delete, then start insert mode
cc - Delete line, then start insert mode
Operators
Operators also work in Visual Mode
d - Deletes from the cursor to the movement location
c - Deletes from the cursor to the movement location, then starts insert mode
y - Copy from the cursor to the movement location
> - Indent one level
< - Unindent one level
You can also combine operators with motions. Ex: d$ deletes from the cursor to the end of the line.
Marking text (visual mode)
v - Start visual mode
V - Start linewise visual mode
Ctrl+v - Start visual block mode
Esc or Ctrl+[ - Exit visual mode
Clipboard
yy - Yank (copy) a line
p - Paste after cursor
P - Paste before cursor
dd - Delete (cut) a line
x - Delete (cut) current character
X - Delete (cut) previous character

Document information

Study
Uploaded on
May 24, 2025
Number of pages
3
Written in
2024/2025
Type
Summary
$4.16

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
10
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions