Post

Handy Sysadmin Cheatbook πŸ“œ

This is a quick blog entry cheatsheet for system administrators to refer to quickly in their day to day work. I will be adding in more categories to the cheatbook in the future.

For most of the long linux commands, I’d suggest using aliases that can be setup together with dotfiles

Sysadmin Cheatsheet

Neovim Cheatsheet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Leader> - (Spacebar)
    Open sidebar: 1
    Move a file: m
    Delete a file: d
    Toggle a terminal: ft

File Navigation
    Top of file: gg
    Bottom of file: G
    Start of line: 0
    End of line: $
    Fast forward: e
    Fast Backward: Option <-

Find and Replace
    Find a file: <leader>ff
    Search across codebase: <leader>sg
    Find and replace (local): :%s/toReplace/replace/g

Splitting Windows
    Split horizontally: <leader>-
    Split vertically: <leader>|
    Navigate windows: ctrl + (h/j/k/l)

LSP (Language Server Protocol)
    Go to definitions: gd
    Autocomplete
    Hover documentation: K
    Smart replace: <leader>cre
    Format: <leader>cff
    Code actions: <leader>cag
    Remove unused imports: <leader>cR
    Organize imports: <leader>co

Other Operations
    Switch buffers
    Line numbers
        Disable/enable: <leader>ul
        Go to line number: linenumber (j/k)
    Open terminals: <leader>ft
    Explore
        Add a file: %
        Add a folder: d
    Undo, redo, delete, visual mode
    Find and reach
This post is licensed under CC BY 4.0 by the author.