Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
163 views1 page

Rob's Nix Commands Cheat Sheet: by Via

This document provides a cheat sheet of useful Linux and Vim commands. It includes commands for cursor movement and editing in Vim, common Linux system commands like checking the IP range or system version, installing packages and managing users, and downloading files using cURL. The cheat sheet is organized into sections on Vim commands, handy POSIX commands, Vim plugin management, system administration tasks, and cURL.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views1 page

Rob's Nix Commands Cheat Sheet: by Via

This document provides a cheat sheet of useful Linux and Vim commands. It includes commands for cursor movement and editing in Vim, common Linux system commands like checking the IP range or system version, installing packages and managing users, and downloading files using cURL. The cheat sheet is organized into sections on Vim commands, handy POSIX commands, Vim plugin management, system administration tasks, and cURL.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Rob's *nix Commands Cheat Sheet

by Rob Jacques (robbyrob42) via cheatography.com/47794/cs/13631/

VIM Cursor Movement Handy posix Commands (macos mostly)

first, last char of line ^, $ IP Range ipcalc 192.16​8.0.1/24


Calculator
move to column n of line n/
Show env
move forwar​d/b​ackward to character x fx, Fx
Enviro​nment
move forward to before char x tx Variables

next/p​revious paragraph, next/p​revious sentance {}, () show a single echo $VARIABLE


variable
word/token left, right bw
add or update export VARIAB​LE=​"​val​ue"
Move to end/be​ginning of file G, gg variable value

View shasum -a 256 file.dmg


Vim Editing Checksum

insert left of current char/c​urrent line iI list packages sudo apt list --inst​alled | grep -i
apache sudo dpkg -l | grep -i apache
insert to right of current char/c​urrent line aA
check linux lsb_r​elease -a
create new line under/​above current one oO
version
and insert

delete text moved over by {motion} and c{m​otion}


Vundle (Vim Plugin Manager)
enter insert mode

delete text moved over by {motion} and do d{m​otion] Update Plugins from .vimrc :Vund​leU​pdate

not enter insert mode

copy the text moved over by {motion} y{m​otion} Admini​str​ation

visual selection mode v Adding users https:​//a​sku​bun​tu.c​om​/qu​est​ion​s/7​023​


6/h​ow-​can​-i-​cre​ate​-an​-
Linewise selection mode V ad​min​ist​rat​or-​use​r-f​rom​-th​e-
Blockwise Selection mode <C​-V> c​omm​and​-line

Adding Users (s is shell, g useradd UserName -s


Cut, copy, cut (& leave in insert mode) d, y, c
is group, m creates home /bin/bash -G sudo -m
If you want to search an entire file, you can :%s/s​ear​ch/​rep​lace/g
dir if not already
use % to indicate that as the range: Vim Search and replace
created)

cURL Commands

Download File curl -o output.file This works


from a remote http:/​/se​rve​r1.c​yb​erc​iti.bi​z with a
server /f​ile.ta​r.gz` webpage
too...

Download File curl -O


from remote http:/​/se​rve​r1.c​yb​erc​iti.bi​z/f​ile.ta​r.gz`
server 2

By Rob Jacques (robbyrob42) Not published yet. Sponsored by CrosswordCheats.com


cheatography.com/robbyrob42/ Last updated 28th April, 2018. Learn to solve cryptic crosswords!
www.roblo.org Page 1 of 1. http://crosswordcheats.com

You might also like