main_linux-terminal-cheat-sheet
main_linux-terminal-cheat-sheet
01111111010101010
1010C10H0E1A1T10S0H10E1E1T011101010101010101010010010100101010010101010010100000101011111110011111110
LINUX
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
10101010100101010010101010101
00101001010100101
0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110
01111111010101010
1010100111001011011101010101010101010010010100101010010101010010100000101011111110011111110101010101001
01010010101010101
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
TERMINAL
00101001010100101
Created by @Manz ( https://
https://twitter.com/Manz ) terminaldelinux.com/
Manual & information Install &
h Help MKDIR PERMISSIONS
uninstall f Files & p
FOLDERS (DIRECTORIES)
-p all dirs OWNER GROUP OTHERS
* --help fast & short help drwxr-xr-x -rw-r--r-- INSTALL/UNINSTALL PACKAGES
HELP COMMANDS mkdir create dirLSpwd currentDIRECTORY dir ls list files & dirs apt-get package
REGULAR FILE
man manual page -l long data manager apt
(wide) whatis short r READ friendly apt-get
-h human w WRITE SYM. LINK l NAMED PIPE p
description exa enhanced ls x SOCKET s CHAR DEV c BLOCK DEV b
-R recursive EXEC/OPEN aptitude friendly
apropos related cd change to dir - NO PERMISSION
help pushd / popd directory stack apt-get wajig
APT-GET
friendly apt-get
u Users Info about users autojump smart jump to dirs tree list
update filesremove
clean in tree installpurge
format download upgr
SEARCH/LIST PACKAGES
[root] CP / RM
e dpkg manage .deb
visudo edit sudoers -f force package
[vi+sudo] DPKG
SYSTEM USERS -r recursive VIM
-i install
useradd
FILE MANAGERS
vi programmer :q! exit w/o -r
create/update user mc midnight commander lfm lasteditor vim vi ytree save
file manager unix file manager removeranger
adduser friendly add :wq! save & -c
user userdel delete exit contents
:5 jump to
user deluser friendly line 5
del user FIND FILES :colorscheme set color
usermod modify user type display command type
d Differences :shell temp shell /
account groups group exit=return
find search files in a dir
members passwd :split / :vsplit open
locate search files in database horiz/vert
change password
updatedb update file database whereis locate binary/manpage :set number number which get b
lslogins show known
users lines
LOGGED USERS
DIFF TOOLS
:set mouse=a enable
who current logged users mouse
diff find /word find word (n find
differences sdiff next)
side-by-side diff :tabnew open file in
n Network Internet & net related
wdiff word new tab
differences :%s/old/new/g repl. old
NET CONFIGURATION
v Version GIT GIT
-> new
ifconfig config ip/net features GIT CLIENT
START REPO
traceroute print route elinks text mode git remote add origin
packets tracepath browser w3m text
browser/pager
trace path DOWNLOAD p
mtr network diagnostic wget network chown set owner chgrp set group
tool downloader PERMISSIONS
LINUX
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
10101010100101010010101010101
00101001010100101
0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110
01111111010101010
1010100111001011011101010101010101010010010100101010010101010010100000101011111110011111110101010101001
01010010101010101 b Browser &
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
TERMINAL
00101001010100101
Created by @Manz ( https://
https://twitter.com/Manz ) terminaldelinux.com/
CHOWN
s Session control & Termina
owner.group
CHMOD/CHOWN clear empty to clean scree
iptraf-ng network r
SCP/SSH SYNTAX -R recursive
CHMOD
monitor tcpdump CONNECTIO scp user@ip:/folder 3 wx
N
remote 0 fuck corrects prev comman
network activity dump none=- CONTROL
netstat print network
statistics telnet telnet
connection 1 exec=x 5 rxexit / logout end shell sess
SSH 2 write=w 6 rw
MAC ADDRESS
ftp file transfer -C 4 read=r 7 rwx
arp show mac/ip address connect ssh compress COMMON
cache arping ping mac remote connection -X X11 MULTIPLEXORS
777 755 644 655
address redir screen multiplexor & mana
sftp connect ftp via
ssh -c cipher
FIREWALL sshfs connect disk via TMUX
ssh
iptables ip packet filter COPY
^B+" split ^B+→ move
& NAT shorewall horiz to
firewall for iptables scp remote cp via
ssh rsync remote ^B+% split ^B+ +→ CTRL
REV. HISTORY
ufw firewall for vert resize
iptables sync files
^D close ^B+^O
term rotate
0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110
01111111010101010
1010C10H0E1A1T10S0H10E1E1T011101010101010101010010010100101010010101010010100000101011111110011111110
LINUX
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
10101010100101010010101010101
00101001010100101
0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110
01111111010101010
1010100111001011011101010101010101010010010100101010010101010010100000101011111110011111110101010101001
01010010101010101
0001010111111100111111101010101010010101001010010101110101011010101010011100101101110101010101010101001
TERMINAL
00101001010100101
Created by @Manz ( https://
https://twitter.com/Manz ) terminaldelinux.com/
t Text manipulation
d Disks & Partitions p Processes & threads s Services &
PARTITIONS / BLOCK DEVICES PROCESSES VIEWERS
MAIN CONTENT SERVICES
parted manipulate ps show active processes
echo print line of text partitions fdisk /etc/init.d/*
pstree tree-format sysvinit service
cat print or manipulate partition version of ps
concatenate files tac table atop system/process service wrapper
reverse cat cfdisk enhanced fdisk monitor systemctl systemd
PAGINATE TOOLS
mkfs make/create a top show top processes journalctl systemd
more classic filesystem dd low level & info logs
pager less data duplicator WEB SERVER
enhanced pager htop enhanced top apachectl apache
RECOVERY/REPAIR
BACKGROUND & FOREGROUND
most enhanced less fsck check & repair control
pager jobs list jobs (bg or nginx http reverse
filesystem stopped) proxy
COMPRESS FILTERING CAT/LESS TOOLS
testdisk scan & repair bg move process to
zcat .gz bzcat .bz2 xzcat partitions htpasswd gen auth
.xz zless .gz bzless .bz2 background fg move pass
photorec recover lost process to foreground LOGS
xzless .xz files/data PRIORITY PROCESS
GENERAL FILTERING TOOLS MOUNT ccze robust log
head print first mount enable a nice run with custom colorizer
filesystem umount priority renice change lnav ncurses log
part tail print priority viewer
disable a filesystem
last part KILL PROCESSES goaccess fast log
rev reverse line g Games & Fun
kill send signal to viewer
characterwise nl FUN process killall kill all SYSTEMCTL
number lines fortune print rnd fortune processes by name status service
sort reorder lines cookie sl aim to correct sl SYSTEM SOFTWARE INFO
status start /
wc count instead ls cowsay uname show&
h Hardware stop service
configurable thinking cow distro/kernel info restart stop &
bytes/chars/words/lines lsb_release show distro
toilet / figlet display large start reload
uniq count or omit info uptime data uptime, reload config
chars cmatrix simulate
repeated lines matrix screen users & load
TRANSFORM TOOLS HARDWARE
GAMES
iconv convert to diff ninvaders ncurses space nmon sysadmin monitor
encoding tr translate or invaders bastet bastard tool gtop system monitor NGINX
delete chars expand tetris clone dashboard iotop ngx-conf enable site n
convert tabs to spaces moon-buggy drive across input/output monitor
moon nsnake ncurses iostat report cpu & i/o
unexpand convert spaces stats mpstat report
to tabs snake game
pacman4console pacman multiprocess stats
t FRAGMENT
Time FILTERING TOOLS
clone greed erase glances system DOCKER
number grid game monitoring tool hwinfo search find image on h
nethack-console explore hardware information
m Image inxi hardware
information
date print or set MEMORY