LINUX-CHEAT-SHEET Update
A short summary of my personal favorite Linux tools.
Published with SteemPeak
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
TOOLBOX
update | snippets 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 |
syncthing | home download docu |
multimedia | vlc youtube-dl simplescreenrecorder cmus mpg123 |
backup | backintime timeshift grsync rsync |
java | home download docu summary |
vim | home download docu tutorial summary |
eclipse | home download docu tutorial summary |
R | summary |
html | summary |
file manager | mc ranger vifm |
ranger | home download docu tutorial |
debian | home download docu tutorial summary |
system | oneliner shortcuts processes |
shells | bash fish |
docker | home doku tutorial |
i3wm | home download docu tutorial ref-card summary |
systemrescuecd | home download docu |
lfs | home download doku summary |
configuration | system swap language |
arch linux | home download docu |
linux | home download docu tutorial |
gnome | home download docu tutorial |
bash | home download docu tutorial |
taskwarrior | home docu tutorial summary |
networking | H • hostname netstat ifconfig ip iwconfig N • mtr ping traceroute nslookup ssh scp |
gnu core utilities | basic 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 |
documentation | sources man info pinfo apropos whatis help history |
monitoring | conky kismet bleachbit nagios zabbix cacti ganglia opennms chkrootkit |
printing | cups • lpstat lpq lp lpr cancel • lpadmin lpmove lpc tunelp accept reject enable disable |
hardware | raspi raspi-config rpi-update • gnome-disks badblocks blkid fdisk • lsblk lshw lspci lsusb • hwinfo e4defrag administration |
user | U • adduser useradd • deluser userdel • addgroup groupadd • usermod chage chfn finger whatis which w whoami passwd id G • delgroup groupdel groups newgrp administration |
server | dhcp pi-hole raspiblitz |
alacarte apt apt-cache apt-cdrom apt-config apt-get apt-key alias archivemount asciinema asunder atop awk | |
bg bash bluefish bagisto basket bc boostnote | |
calcurse curl cal cherrytree chromium clear clipit clonezilla cmatrix cmus cut | |
df dmesg docker dpkg | |
eclipse eog exit | |
fai fhs finger firefox fish fg for free fuser | |
g4l gedit git glances gnome-clocks gnome-disks gnome-terminal gnote gparted guake groupmod grsync grub-mkconfig gvim | |
hostname hostnamectl html htop | |
i3wm intellij-idea inxi | |
java javac jobs | |
kill killall | |
lxc lastlog lfs locate lsb_release lsd lvm | |
man mc mcedit menulibre more mount mpeg123 | |
nc nl nano ncal netatop netcat netbeans netstat nmap | |
open opera | |
perl perldoc pinfo popd pushd pwgen | |
r ranger | |
shortcuts script scp screen sed service set sftp shellcheck ssh speedtest steghide stat sudo su sync syncthing systemrescuecd | |
tasksel taskwarrior terminator txt2regex thunderbird tiddlywiki tilda timewarrior tmux top tune2fs | |
ufw umask uniq update-alternatives updatedb uptime users | |
vifm virtualbox vifm vim visudo veracrypt vimtutor | |
watch w3m | |
xdotool xsel |