LINUX-CHEAT-SHEET UpdatesteemCreated with Sketch.

in #linux5 years ago (edited)

LINUX-CHEAT-SHEET
A short summary of my personal favorite Linux tools.
Published with SteemPeak

ScreenshotScreenshot by Willi Glenz

SNIPPETS

008 ALIASES
$ vim ~/.bashrc
> a='clear; echo; alias; echo'
> b='buku'
> c='clear; echo'
> cc='clear; ncal -3wy'
> cdh='\cd; clear; echo; lsd -l; echo'
> cdd='clear; \cd ~/Dropbox; echo; lsd -l; echo'
> cdp='clear; \cd ~/.phoenix; echo; lsd -l; echo'
> e='clear; cd ~/Apps; ./eclipse &'
> g='clear; glances'
> l='clear; echo; lsd -l; echo'
> ls='clear; echo; lsd -l; echo'
> p='(clear; \cd ~/.phoenix; java -jar phoenix.jar)'
> u='clear; sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade; sudo apt-get autoremove -y'
> h='clear; history 30'
> ra='clear; \cd ~/Dropbox; ranger'
> rs='clear; rsync -avzP --delete --stats --exclude-from "/home/user/.exclude.txt"  /home/user/ /media/disk/'
> s='clear; curl rate.sx/steem@1d; gnome-screenshot -ac'
> t='clear; task; timew week; timew summary'
> tt='clear; task burndown.daily'
> ttt='clear; task calendar 2019'
> tw='timew'
> tm='clear; timew month'
> py='clear; python3'
007 RAM-DISK PERMANENT
# mkdir -p /media/ramdisk
# vim /etc/fstab
> none /media/ramdisk tmpfs nodev,nosuid,noexec,nodiratime,size=1024M 0 0
# mount -a
$ mount | column -t
006 RAM-DISK TEMPORARY
# mkdir -p /media/ramdisk 
$ mount | column -t
# mount -t tmpfs -o size=1024M tmpfs /media/ramdisk
# mount -a
$ mount | column -t

more...

TOOLBOX

updatesnippets oneliner java debian shortcuts vim i3wm awk lfs eclipse swap bash visudo taskwarrior primitive data types taskwarrior ssh perl tiddlywiki crontab tripwire sources permaculture screen r monitoring cups alias network check scp virtualbox python html
gnome# apt install gnome-*
home
libreoffice# apt install libreoffice && apt-cache show libreoffice
home
firefox# apt install firefox-esr links w3m && apt show firefox-esr && dpkg -L firefox-esr
home extensions
gnucash# apt install gnucash && apt show gnucash && dpkg -L gnucash
home
cherrytree# apt install cherrytree && apt-cache show cherrytree
home download docu
syncthinghome download docu
multimediavlc youtube-dl simplescreenrecorder cmus mpg123
backupbackintime timeshift grsync rsync
javahome download docu summary
vimhome download docu tutorial summary
eclipsehome download docu tutorial summary
Rsummary
htmlsummary
file managermc ranger vifm
rangerhome download docu tutorial
debianhome download docu tutorial summary
systemoneliner shortcuts processes
shellsbash fish
dockerhome doku tutorial
i3wmhome download docu tutorial ref-card summary
systemrescuecdhome download docu
lfshome download doku summary
configurationsystem swap language
arch linuxhome download docu
linuxhome download docu tutorial
gnomehome download docu tutorial
bashhome download docu tutorial
taskwarriorhome docu tutorial summary
networkingH • hostname netstat ifconfig ip iwconfig
N • mtr ping traceroute nslookup
ssh scp
gnu core utilitiesbasic operations • cp dd install mv rm shred
output • cat tac nl od base32 bas64 head tail split csplit
formatting • fmt pr fold
summarizing • wc sum cksum b2sum md5sum sh1sum sha224sum sha225sum
sort • sort shuf uniq comm ptx tsort
fields • cut paste join
characters • tr expand unexpand
directories • ls dir vdir dircolors
special file types • link ln mkdir mkfifo mknod readlink rmdir unlink
attributes • chown chgrp chmod touch
disk usage • df du stat sync truncate
printing • echo printf yes
conditions • false true test expr
redirection • tee
file name manipulation • basename dirname pathchk mktemp realpath
working context • pwd stty printenv tty
user information • id logname whoami groups users who
system context • date arch nproc uname hostname hostid uptime
sellinux context • chcon runcon
modified command invocation • chroot nv nice nohub stdbuf timeout
process control • kill
delaying • sleep
numeric operations • factor numfmt seq
fhs coreutils $ info coreutils
crontab# crontab -e
# service cron status
crontab
tripwire# tripwire --init
# tripwire --check --verbose
tripwire
rsync$ rsync -avzP --delete --stats --exclude ’Backup*‘ /home/user/ /media/xyz
$ rsync -avzP --delete --stats --exclude-from '/home/user/exclude.txt' /home/user/ /media/xyz
documentationsources man info pinfo apropos whatis help history
monitoringconky kismet bleachbit nagios zabbix cacti ganglia opennms chkrootkit
printingcups • lpstat lpq lp lpr cancel • lpadmin lpmove lpc tunelp accept reject enable disable
hardwareraspi raspi-config rpi-update • gnome-disks badblocks blkid fdisk • lsblk lshw lspci lsusb • hwinfo e4defrag
administration
userU • adduser useradd • deluser userdel • addgroup groupadd • usermod chage chfn finger whatis which w whoami passwd id
G • delgroup groupdel groups newgrp
administration
serverdhcp pi-hole raspiblitz


A
alacarte apt apt-cache apt-cdrom apt-config apt-get apt-key alias archivemount asciinema asunder atop awk
B
bg bash bluefish bagisto basket bc boostnote
C
calcurse curl cal cherrytree chromium clear clipit clonezilla cmatrix cmus cut
D
df dmesg docker dpkg
E
eclipse eog exit
F
fai fhs finger firefox fish fg for free fuser
G
g4l gedit git glances gnome-clocks gnome-disks gnome-terminal gnote gparted guake groupmod grsync grub-mkconfig gvim
H
hostname hostnamectl html htop
I
i3wm intellij-idea inxi
J
java javac jobs
K
kill killall
L
lxc lastlog lfs locate lsb_release lsd lvm
M
man mc mcedit menulibre more mount mpeg123
N
nc nl nano ncal netatop netcat netbeans netstat nmap
O
open opera
P
perl perldoc pinfo popd pushd pwgen
R
r ranger
S
shortcuts script scp screen sed service set sftp shellcheck ssh speedtest steghide stat sudo su sync syncthing systemrescuecd
T
tasksel taskwarrior terminator txt2regex thunderbird tiddlywiki tilda timewarrior tmux top tune2fs
U
ufw umask uniq update-alternatives updatedb uptime users
V
vifm virtualbox vifm vim visudo veracrypt vimtutor
W
watch w3m
X
xdotool xsel

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64136.70
ETH 3128.20
USDT 1.00
SBD 3.94