Sie sind auf Seite 1von 2

010010101110101011010101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010

101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010100101010010101010101
CHEAT SHEET

LINUX TERMINAL
000101011111110011111110101010101001010100101001010111010101101010101001110010110111010101010101010100100101001010100101
010010101110101011010101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010
101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010100101010010101010101
000101011111110011111110101010101001010100101001010111010101101010101001110010110111010101010101010100100101001010100101
Created by @Manz ( https://twitter.com/Manz ) https://terminaldelinux.com/

h Help Manual & information f Files & Folders MKDIR PERMISSIONS p Packages Install & uninstall
* --help fast & short help FOLDERS (DIRECTORIES) -p all dirs OWNER GROUP OTHERS INSTALL/UNINSTALL PACKAGES

HELP COMMANDS mkdir create dir drwxr-xr-x -rw-r--r-- apt-get package manager
LS
man manual page (wide) pwd current dir DIRECTORY REGULAR FILE
apt friendly apt-get
-l long data
whatis short description ls list files & dirs r READ SYM. LINK l
aptitude friendly apt-get
exa enhanced ls -h human w WRITE NAMED PIPE p
apropos related help x EXEC/OPEN SOCKET s
wajig friendly apt-get
cd change to dir -R recursive - NO PERMISSION
CHAR DEV
BLOCK DEV
c
b
SEARCH/LIST PACKAGES
u Users Info about users pushd / popd directory stack
CHANGE AND INFO autojump smart jump to dirs
APT-GET apt-cache search packages
whoami current user tree list files in tree format update clean remove apt-file list package contents
su switch to user [root] FILE HANDLING
install purge download MANUAL MANAGE PACKAGES

sudo run command as [root] file show file type MV upgrade autoremove dpkg manage .deb package
visudo edit sudoers [vi+sudo] touch update/create -f force DPKG
e Editors VIM
SYSTEM USERS mv move/rename files -u update -i install
EDITORS :q! exit w/o save -r remove
useradd create/update user cp copy files
CP / RM
vi programmer editor :wq! save & exit -c contents
adduser friendly add user rm remove files
:5 jump to line 5
userdel delete user ln make link to file -f force vim vi improved
:colorscheme set color
deluser friendly del user stat filesystem stats -r recursive pico another editor
nano pico improved :shell temp shell / exit=return
usermod modify user account FILE MANAGERS
:split / :vsplit open horiz/vert
groups group members mc midnight commander emacs gnu emacs
:set number number lines
passwd change password lfm last file manager jed programmers editor :set mouse=a enable mouse
lslogins show known users ytree unix file manager micro micro editor /word find word (n find next)
LOGGED USERS
ranger visual file manager mcedit midnight editor :tabnew open file in new tab
who current logged users FIND FILES :%s/old/new/g repl. old -> new
d Differences
w current logged users & data type display command type
DIFF TOOLS c Compressor TAR
users current logged users find search files in a dir -c create
last last logged users & reboots locate search files in database diff find differences ARCHIVE PACKAGING
-v show
lastb last bad logins (btmp) updatedb update file database sdiff side-by-side diff tar archive tool -f fname
lastlog recent login users whereis locate binary/manpage wdiff word differences split file into pieces -x extract
which get binary file pathname colordiff colorize diff LINUX TOOLS -t list
n Network Internet & net related -r append
gzip handle .gz file
NET CONFIGURATION v Version Control GIT GIT
gunzip uncompress .gz
START REPO
ifconfig config ip/net features GIT CLIENT bzip2 handle .bz2 file
init fetch
ip new ifconfig tool IP git fast/scalable control version clone pull bunzip uncompress .bz2
dhclient DHCP client ip addr tig text-mode interface for git remote push xz handle .xz file TAR

DNS AND DOMAINS OTHER CLIENTS


unxz uncompress .xz -z gzip
WORK MANIPULATE
GENERAL TOOLS -j bzip2
ping send ICMP to hosts svn subversion cv client status checkout -J xz
nslookup query DNS lookup add branch zip handle .zip file
hg mercurial cv client unzip uncompress .zip file
dig DNS lookup utility cvs concurrent control version mv/rm merge
reset rebase rar handle .rar file
whois whois domain name or ip bzr bazaar cv client unrar uncompress .rar file
log commit
TRACE ROUTE 7z handle .7z file
traceroute print route packets b Browser & Downloads GIT FAST CHEAT cabextract extract .cab files
tracepath trace path BROWSER
git remote add origin <server> EXECUTABLE COMPRESSOR
mtr network diagnostic tool lynx text browser git push origin master send upx compress exec files
NETWORK TOOLS
elinks text mode browser gzexe compress exec files
nmap network security scanner w3m text browser/pager p Permissions CHOWN
DOWNLOAD
nc cat via network connection OWNER/GROUPS owner.group s Session control & Terminal
ss show sockets statistics wget network downloader clear empty to clean screen
curl transfer a URL chown set owner CHMOD/CHOWN
NETWORK MONITORING chgrp set group reset reinitialize terminal
axel download accelerator -R recursive history show prev commands
bmon bandwidth monitor puf parallel downloader PERMISSIONS
iftop interface network monitor fuck corrects prev commands
youtube-dl download vids chmod set file permission CONTROL
nethogs net monitor by process cclive media downloader umask set permission mask
wondershaper bandwidth limit exit / logout end shell session
r Remote SCP/SSH SYNTAX CHMOD reboot reboot the machine
iptraf-ng network monitor poweroff / shutdown switch off
tcpdump network activity dump CONNECTION scp user@ip:/folder remote 0 none=- 3 wx
1 exec=x 5 rx init send control init level
netstat print network statistics telnet telnet connection SSH MULTIPLEXORS
2 write=w 6 rw
MAC ADDRESS ftp file transfer connect -C compress 4 read=r 7 rwx screen multiplexor & manager
arp show mac/ip address cache ssh remote connection -X X11 redir COMMON tcvt 2-cols virtual terminal
arping ping mac address sftp connect ftp via ssh -c cipher 777 755 644 655 tmate multiplex & term sharing
FIREWALL sshfs connect disk via ssh TMUX tmux terminal multiplexer
iptables ip packet filter & NAT COPY
^B+" split horiz ^B+→ move to byobu screen/tmux wrapper
shorewall firewall for iptables scp remote cp via ssh ^B+% split vert ^B+ +→ resize
ALT

CTRL R
ufw firewall for iptables rsync remote sync files ^D close term ^B+^O rotate REV. HISTORY
010010101110101011010101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010
101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010100101010010101010101
CHEAT SHEET

LINUX TERMINAL
000101011111110011111110101010101001010100101001010111010101101010101001110010110111010101010101010100100101001010100101
010010101110101011010101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010
101010011100101101110101010101010101001001010010101001010101001010000010101111111001111111010101010100101010010101010101
000101011111110011111110101010101001010100101001010111010101101010101001110010110111010101010101010100100101001010100101
Created by @Manz ( https://twitter.com/Manz ) https://terminaldelinux.com/

t Text manipulation d Disks & Partitions p Processes & threads s Services & Daemons
MAIN CONTENT PARTITIONS / BLOCK DEVICES PROCESSES VIEWERS SERVICES

echo print line of text parted manipulate partitions ps show active processes /etc/init.d/* sysvinit
cat print or concatenate files fdisk manipulate partition table pstree tree-format version of ps service service wrapper
tac reverse cat cfdisk enhanced fdisk atop system/process monitor systemctl systemd
PAGINATE TOOLS mkfs make/create a filesystem top show top processes & info journalctl systemd logs
more classic pager dd low level data duplicator htop enhanced top WEB SERVER

less enhanced pager RECOVERY/REPAIR BACKGROUND & FOREGROUND apachectl apache control
most enhanced less pager fsck check & repair filesystem jobs list jobs (bg or stopped) nginx http reverse proxy
COMPRESS FILTERING CAT/LESS TOOLS testdisk scan & repair partitions bg move process to background htpasswd gen auth pass
zcat .gz bzcat .bz2 xzcat .xz photorec recover lost files/data fg move process to foreground LOGS
MOUNT
zless .gz bzless .bz2 xzless .xz PRIORITY PROCESS ccze robust log colorizer
mount enable a filesystem lnav ncurses log viewer
GENERAL FILTERING TOOLS
umount disable a filesystem nice run with custom priority
head print first part renice change priority goaccess fast log viewer
DISKSPACE
tail print last part df show disk free
KILL PROCESSES SYSTEMCTL

rev reverse line characterwise du show disk used kill send signal to process status service status
nl number lines ncdu enhanced disk used killall kill all processes by name start / stop service
sort reorder lines restart stop & start
fdupes find duplicate files h Hardware & System reload reload config
wc count bytes/chars/words/lines
SYSTEM SOFTWARE INFO
uniq count or omit repeated lines g Games & Fun APACHE
uname show distro/kernel info
TRANSFORM TOOLS FUN
lsb_release show distro info a2enconf enable config
iconv convert to diff encoding fortune print rnd fortune cookie uptime data uptime, users & load a2disconf disable config
tr translate or delete chars sl aim to correct sl instead ls HARDWARE
a2ensite enable site
cowsay configurable thinking cow a2dissite disable site
expand convert tabs to spaces nmon sysadmin monitor tool a2enmod disable mod
toilet / figlet display large chars
unexpand convert spaces to tabs cmatrix simulate matrix screen gtop system monitor dashboard a2dismod disable mod
FRAGMENT FILTERING TOOLS GAMES
iotop input/output monitor
cut remove sections or fragments iostat report cpu & i/o stats NGINX
ninvaders ncurses space invaders
paste merge lines mpstat report multiprocess stats ngx-conf enable site
bastet bastard tetris clone
glances system monitoring tool ngx-conf disable site
moon-buggy drive across moon
POWERFUL FILTERING/TRANSFORM TOOLS hwinfo hardware information ngx-conf remove site
nsnake ncurses snake game
grep print lines matching pattern inxi hardware information ngx-conf list list all conf
pacman4console pacman clone
gawk pattern scanner & process greed erase number grid game MEMORY
DOCKER
sed stream editor for filtering nethack-console explore mazes free show free & used memory
xargs build & execute commands freesweep minesweeper clone vmstat virtual memory stats search find image on hub
nettoe network tic tac toe clone pmap show memory map process run exec cmd container
t Time asciijump ascii ski jump game DEVICES
images / ps list img/cont
bombardier gnu bombing game start / stop container
date print or set date/time lspci list PCI devices rmi / rm remove img/cont
CALENDARS
lsusb list USB devices pull get image from reg
m Image Handling lscpu list CPU features
cal display an calendar push put image to reg
ncal display an alternative cal
LOSSY (JPEG RELATED) lsblk list block devices
pal display an event calendar jpeginfo show jpeg information lsof list open files FFMPEG
jpegoptim optimize jpeg images lslocks list local system locks -i input file/information
TIMERS
jpegtran jig jpeg transform KERNEL & MODULES -vcodec video codec
timeout run cmd w/time limit mozjpeg mozilla jpeg optimizator -acodec audio codec
time benchmark command dmesg diagnostic messages
jhead exif header manipulator lsmod list kernel modules status -b:a bitrate audio 192k
sleep delay specified time webp webpicture google format -b:v bitrate video
watch exec program repeatedly depmod gen dep/map mod files
LOSSLESS (PNG RELATED) modinfo show info about a mod -vn remove video
SCHEDULE COMMANDS
pngmeta extract png metadata modprobe add/remove modules -an remove audio
at queue jobs for later exec optipng optimize png images insmod insert mod into kernel -vol change volume 256
cron exec scheduled cmds pngquant png compressor rmmod remove mod from kernel -r set frame rate (fps)
CRONTAB pngcrush optimize png files -ss start at N:N time
MINUTE (0-59) DAY (1-31) WEEKDAY (0-6) pngnq quantize png images m Audio / Video -to ends at N:N time
HOUR (0-23) MONTH (1-12)
ANIMATED (GIF RELATED) MEDIA PLAYER -t vid duration N secs
mplayer cli media player -vf hflip horizontal flip
*/5 4 1 * * command sample line gifsicle manipulation gif tool -vf vflip vertical flip
apngopt apng otimizator mpv media player enhanced
c Checksum vlc videolan media player -vf scale=W:H resize vid
IMAGEMAGICK
mpsyt youtube media player -vf crop=W:H:X:Y crop
CHECKSUM BASE
convert transform/convert image -vf vignette=PI/4 effects
sum checksum & count blocks identify describe format image
MUSIC
-vf fade=t=in:st=0:d=5,
cksum checksum & count bytes composite overlaps images music123 play sound files
fade=t=out:st=25:d=5
COMPUTE & CHECK MESSAGE DIGGEST
mogrify convert (overwrite src) id3tool mp3 editor id3 tags
arecord ALSA sound recorder -vf setpts=0.02*PTS
b2sum BLAKE2 sha224sum SHA224 montage combine mult. images -pix_fmt yuv420p / rgb24
md5sum MD5 sha256sum SHA256 stream stream 1+ components aplay ALSA sound player
shasum SHA sha384sum SHA384 import save visible region to file MEDIA CONVERTER

sha1sum SHA1 sha512sum SHA512 compare math/visual diff image ffmpeg media converter

Das könnte Ihnen auch gefallen