MyBashHistory v41
Image source: Willi Glenz - MyDebianDesktop
0111 $ w3m https://www.linuxlinks.com
0110 $ w3m https://www.gimp.org
0109 $ curl wttr.in/~bad+kissingen?lang=de
0108 # arp-scan 192.168.0.0/24
0107 $ w3m https://www.debian.org/security/#DSAS
0106 $ w3m https://www.debian.org/News/2018
0105 $ java -jar filename.jar
0104 documentation $ w3m http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/index.html
0103 bash $ curl cheat.sh
0102 hardware management $ cat /sys/devices/virtual/thermal/thermal_zone0/temp
0101 file-management $ du -h --max-depth=1 | sort -rh
0048 $ echo {1..199}" bottles of beer on the wall, cold bottle of beer, take one down, pass it around, one less bottle of beer on the wall,, " | espeak -v english -s 140
0041 $ unset HISTFILE
0039 $ echo {001..100}
0034 # asciiview dummy.png
0010 $ curl rate.sx
HARDWARE
* Linux on the Road $ w3m http://www.tldp.org/LDP/Mobile-Guide/html/index.html
* Raspberry Pi $ w3m https://www.raspberrypi.org/documentation
LINUX
* TLDP $ w3m http://www.tldp.org
* Tecmint $ w3m https://www.tecmint.com/linux-commands-cheat-sheet/
* LinuxLinks $ w3m https://www.linuxlinks.com
DEBIAN
* Debian.org $ w3m https://www.debian.org -dump | less
* Debian Handbook # apt-get install debian-handbook
* Debian Reference # apt-get install debian-reference-en
* Debian Wiki $ w3m https://wiki.debian.org/FrontPage
* Distrowatch $ w3m https://distrowatch.com/table.php?distribution=debian
* Intro to Linux $ w3m http://www.tldp.org/LDP/intro-linux/html/index.html
* Refcard # apt-get install debian-refcard
* Refcard $ dpkg -L debian-refcard
* Refcard $ w3m /usr/share/doc/debian-refcard/index.html
SHELL
* BGFB $ w3m http://www.tldp.org/LDP/Bash-Beginners-Guide/html/index.html
* ABS $ w3m http://www.tldp.org/LDP/abs/html/index.html
* Die.net $ w3m https://www.die.net
* Pure Bash Bible $ w3m https://github.com/dylanaraps/pure-bash-bible
* Commandlinefu.com $ w3m https://www.commandlinefu.com
* Command-Line-Tools $ w3m http://www.tldp.org/LDP/GNU-Linux-Tools-Summary/html/index.html
* MAN Pages $ man -t man | ps2pdf - man.pdf
* MAN Pages $ man -k scanner
* MAN Pages $ apropos . | shuf -n 1 | awk '{print$1}' | xargs man
WEATHER
$ curl wttr.in/~wasserkuppe?lang=de
$ curl wttr.in/bad+kissingen?lang=de
$ curl wttr.in/fulda?lang=de
$ curl wttr.in/~odenwald+reichelsheim?lang=de
$ curl wttr.in/~valletta
$ curl wttr.in/:help
INSTALLATION
$ apt-cache show vlc | less
# apt-get install hwinfo espeak gkrellm powertop aview guake vim taskwarrior mc sudo vym backintime-qt4
CONFIGURATION
# update-alternatives --config editor
$ vim ~/.bashrc
$ . ~/.bashrc
$ alias c='clear; ncal -3wy'
$ w3m https://www.raspberrypi.org/documentation/configuration/
# raspi-config
UPDATE
# apt-get update && apt-get upgrade && apt-get dist-upgrade
# rpi-update
BACKUP & RESTORE
$ tar -cvzf ~/backup/backup.tar.gz ~/java
$ tar -tvf backup.tar.gz
# dd if=/dev/sdABC of=/dev/sdXYZ bs=64K conv=noerror,sync
TROUBLESHOOTING
$ w3m https://www.debian.org/News/2018
$ w3m https://www.debian.org/security/#DSAS
$ mount | column -t
# hwinfo --short | less
# hwinfo --disk
# lshw -short | less
# fdisk -l
$ df -h
$ du -h --max-depth=1 | sort -rh
$ du -b --max-depth 1 | sort -nr | perl -pe 's{([0-9]+)}{sprintf "%.1f%s", $1>=2**30? ($1/2**30, "G"): $1>=2**20? ($1/2**20, "M"): $1>=2**10? ($1/2**10, "K"): ($1, "")}e'
# find /home -user userxyz -size +1G
# find /home -user userxyz -mtime -3
$ find . -name "*.jpg" -exec convert {} -scale 50% +repage {} \;
# find / -user userxyz -type f -exec rm -f {} \;
# visudo
$ man hier
$ for x in *; do mv "$x" "${x,,}"; done
# chown userXYZ file.txt
USER
# adduser user2
# usermod -c "TestUser" user2
# userdel -r user2
# find / -uid 1000 -exec chown -v 1011:1011 {} \;
# find /home -uid 1000 | wc -l
# find /home -uid 1000 | tee 1000-files.txt
$ ls -l /etc/skel
$ id
# passwd user1
GROUPS
# groupadd
# groupmod
CONFIGURATION
$ vim $HOME/.bashrc
$ vim $HOME/.profile
# vim /etc/group
# vim /etc/passwd
# vim /etc/profile
# vim /etc/shadow
$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
$ gnome-<tab><tab>
# ls<tab><tab>
# init 0
# shutdown -r now
# shutdown -c
# shutdown -h 1:00
$ cat /etc/shells
$ lsb_release -a
$ uptime
$ uname -v
MONITORING
$ w
$ w3m https://www.zabbix.com
# tail -f /var/log/messages
# less +F /var/log/messages
$ ps hax -o user | sort | uniq -c
# htop
# atop
$ free -h
$ xload -update 1 -nolabel &
TIME
# vim /etc/crontab
$ ls -l /etc/cron* | less
KERNEL
$ w3m https://www.kernel.org
$ lsmod | wc -l
EDITOR
$ EDITOR=/usr/bin/vim
$ VISUAL=$EDITOR
$ export EDITOR VISUAL
# update-alternatives --config editor
$ w3m https://linux.die.net/man/1/vim
$ vimtutor
$ vim Main.java
$ Strg-x e
# arp-scan 192.168.0.0/24
# iw dev wlan0 scan | egrep "SSID|signal" | awk -F ":" '{print $2}' | sed 'N;s/\n/:/' | sort
$ w3m myip.is
$ curl ifconfig.me
$ mtr --curses google.com
# netstat -tulpn
$ netstat -a | less
# nmap --iflist
# ifconfig -a | grep -Po '\b(?!255)(?:\d{1,3}\.){3}(?!255)\d{1,3}\b' | xargs nmap -A -p0-
$ ssh -X [email protected]
$ python -m SimpleHTTPServer
CONFIGURATION
# vim /etc/ssh/ssh_config
# vim /etc/hosts
DOCUMENTATION
$ w3m http://www.linuxhowtos.org/Security/understandssh.htm
$ w3m https://linux.die.net/Intro-Linux/chap_10.html
$ mpg123 -zvC /home/user/music/*
$ youtube-dl --list-formats https://a.b/XlytFabwHZs
INSTALLATION & CONFIGURATION
$ w3m https://linux.die.net/man/1/task
$ apt-cache search taskwarrior
$ apt-cache show taskwarrior
# apt-get install taskwarrior
$ vim ~.taskrc
BASIC TASK MANAGEMENT
$ task
$ task add Task1
$ task add Task2
$ task
$ task 1 modify priority:H
$ task 1 modify due:eow
$ task 1 start
$ task 1 stop
$ task 1 information
$ task
$ task 1 done
$ task 2 delete
$ task
$ task burndown
$ alias t='clear; task'
$ alias t1='clear; task burndown.daily'
DOCUMENTATION
$ man task
$ w3m https://taskwarrior.org
$ w3m https://taskwarrior.org/docs
$ w3m https://taskwarrior.org/docs/30second.html
$ w3m https://linux.die.net/man/1/task
Gimp $ w3m https://www.gimp.org
Scribus $ w3m https://www.scribus.net