0% found this document useful (0 votes)
7 views

main_linux-terminal-cheat-sheet

Uploaded by

demy2014
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

main_linux-terminal-cheat-sheet

Uploaded by

demy2014
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110

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

CHANGE AND INFO FILE HANDLING EDITORS


apt-cache search
whoami current packages
file show file typeMVtouch update/create mv move/rename files cp
listcopy files
user su switch to apt-file package
rm remove files ln -f make
force link to file
user [root] contents
-u update
sudo run command as stat filesystem stats MANUAL MANAGE 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

ip new ifconfig IP init fetc c TAR


git fast/scalable control h
tool dhclient clone Compressor
ip addr version remot pull
DHCP client -c
tig text-mode interface e pus
ARCHIVE PACKAGING
create
DNS AND DOMAINS for git WORK h tar archive tool -v
split file into show
ping send ICMP to OTHER CLIENTS wondershap
statu MANIPULATE
pieces -f
hosts nslookup query svn subversion cv er s add checko LINUX TOOLS fname
DNS lookup dig DNS client hg mercurial mv/r
bandwidth ut gzip handle .gz -x
branch extract
lookup utility cv client limit m file
-t list
reset merge
whois whois domain rebase -r
name or ip BROWSER
commit
TRACE ROUTE lynx text browser GIT FAST CHEAT

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

NETWORK TOOLS curl transfer a URL chmod set file


nmap network security axel download permission umask
scanner nc cat via accelerator puf
network connection ss parallel downloader
show sockets statistics
NETWORK MONITORING

bmon bandwidth monitor


iftop interface network
monitor nethogs net
monitor by process
0100101011101010110101010100111001011011101010101010101010010010100101010010101010010100000101011111110
01111111010101010
1010C10H0E1A1T10S0H10E1E1T011101010101010101010010010100101010010101010010100000101011111110011111110

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

date/time free show free & used


CALENDARS
memory vmstat virtual
LOSSY (JPEG RELATED) memory stats pmap show
cal display an calendar memory map process FFMPEG
ncal display an jpeginfo show jpeg
alternative cal information jpegoptim DEVICES -i input file/informatio
pal display an event optimize jpeg images lspci list PCI -vcodec video codec
calendar jpegtran jig jpeg devices lsusb list -acodec audio codec
transform mozjpeg USB devices lscpu -b:a bitrate audio192k
TIMERS
mozilla jpeg optimizator list CPU features
timeout run cmd jhead exif header -b:v bitrate video
w/time limit time lsblk list block
manipulator webp devices lsof list -vn remove video
benchmark command webpicture google format -an remove audio
sleep delay specified open files
LOSSLESS (PNG RELATED) lslocks list local system -vol change volume 25
time watch exec
CRONTAB
pngmeta extract png locks -r set frame rate (fps)
metadata optipng m Audio / Video -ss start at N:N time
MINUTE (0-59)DAY (1-31)WEEKDAY (0-6)
HOUR (0-23)MONTH (1-12)
optimize png images -to ends at N:N time
pngquant png MEDIA PLAYER
compressor pngcrush mplayer cli media -t vid duration N secs
*/5 4 1 * * command sample line optimize png files player mpv media -vf hflip horizontal flip
c Checksum pngnq quantize png player enhanced vlc -vf vflip vertical flip
images videolan media player -vf scale=W:H resize v
CHECKSUM BASE
ANIMATED (GIF RELATED) mpsyt youtube media -vf crop=W:H:X:Y crop
sum checksum & count player
blocks cksum checksum gifsicle manipulation -vf vignette=PI/4 effec
gif tool apngopt apng MUSIC
-vf fade=t=in:st=0:d=
& count bytes otimizator music123 play sound
COMPUTE & CHECK MESSAGE DIGGEST
IMAGEMAGICK files id3tool mp3 editor -vf setpts=0.02*PTS

You might also like