<center><h3>LINUXOPOLIS</h3><b>Building a Linux Habitat<br>willi glenz @ <a href="t.me/wglenz">telegram</a><br><a href="https://steempeak.com/@wglenz">Published with SteemPeak</a><br>[home](https://steempeak.com/@wglenz) ~ [previous](https://steempeak.com/linux/@wglenz/linuxopolis-27-january-2020-summary)</b></center>
<center></center>
<center><h4>UPDATES</h4></center>
```
fish-functions ................................................................. new 2020-02-06
fish-configuration .......................................................... update 2020-02-05
time ........................................................................... new 2020-02-04
fish-installation .............................................................. new 2020-02-03
rsync raspi-installation dhcp system-rescue-cd cpu ....................................... 2020
awk tutorials user-management history disk-management dns oneliner apt system-update ..... 2020
debian ramdisk ntp monitoring host-configuration vim-cheatsheet networking ............... 2020
i3 wm tasks check ........................................................................ 2019
shortcuts ide arp system-editor sources packages tmux apache fzf baseline host python .... 2019
pycharm swap glances veracrypt flatpak logging docker snap tiddlywiki raspi fail2ban ..... 2019
tails firefox weather firmware ufw vim prompt aliases howto container languages .......... 2019
taskwarior inxi git bash snippets screen neofetch ranger hardening html java arch ........ 2019
```
||||
|:---|:---|:---|
|**fish**|<b>[installation](https://steempeak.com/linux/@wglenz/linuxopolis-03-february-2020-fish-installation) [configuration](https://steempeak.com/linux/@wglenz/linuxopolis-05-february-2020-fish-configuration) [functions](https://steempeak.com/linux/@wglenz/linuxopolis-06-february-2020-fish-functions)</b>|**2020-02**|
|**files**|<b>[time](https://steempeak.com/linux/@wglenz/linuxopolis-4-february-2020-time) [container](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-14-howto) [fzf](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-13-fzf) [git](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-01-git)</b><br>cat chown chmod cp curl file find grep head less ls ln md5sum mkdir mv ncdu rev rm rmdir sort tail tar touch tree type uniq whereis wc which|**2020-02**|
|**backup**|<b>[rsync](https://steempeak.com/linux/@wglenz/linuxopolis-02-february-2020-rsync)</b>|**2020-02**|
|**raspberry pi**|<b>[raspi](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-24-raspberry-pi) [installation](https://steempeak.com/linux/@wglenz/linuxopolis-31-january-2020-raspi-installation-v2)</b>|**2020-01**|
|**network**|<b>[dhcp](https://steempeak.com/linux/@wglenz/linuxopolis-29-januar-2020-dhcp) [dns](https://steempeak.com/linux/@wglenz/linuxopolis-16-january-2020-dns) [networking](https://steempeak.com/linux/@wglenz/linuxopolis-2-january-2020-networking) [arp](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-24-arp) [ntp](https://steempeak.com/linux/@wglenz/linuxopolis-08-january-2020-ntp)</b> fping mtr netstat nmap ping speedtest|**2020-01**|
|**distributions**|<b>[system-rescue-cd](https://steempeak.com/linux/@wglenz/linuxopolis-26-january-2020-system-rescue-cd) [debian](https://steempeak.com/linux/@wglenz/linuxopolis-10-january-2020-debian) [arch](https://steempeak.com/linux/@wglenz/7kwf19-linuxopolis-2019-08-16-arch-linux) [tails](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-22-tails)</b> mx-linux distrowatch|**2020-01**|
|**hardware**|<b>[cpu](https://steempeak.com/linux/@wglenz/linuxopolis-25-january-2019-cpu) [disk](https://steempeak.com/linux/@wglenz/linuxopolis-17-january-2020-disk-management) </b>|**2020-01**|
|**bash**|<b>[bash](https://steempeak.com/linux/@wglenz/linuxopolis-2019-10-27-bash) [oneliner](https://steempeak.com/linux/@wglenz/linuxopolis-15-january-2020-one-liner) [aliases](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-15-aliases) [prompt](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-16-prompt) [shortcuts](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-26-shortcuts)</b>|**2020-01**|
|**text**|<b>[awk](https://steempeak.com/linux/@wglenz/linuxopolis-24-january-2020-awk-v2) [vim-cheatsheet](https://steempeak.com/linux/@wglenz/linuxopolis-05-january-2020-vim-cheat-sheet) [vim](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-18-vim) [system-editor](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-22-system-editor)</b> focuswriter pandoc mcedit mousepad ne|**2020-01**|
|**python**|<b>[python](https://steempeak.com/python/@wglenz/linuxopolis-2019-12-08-python) [pycharm](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-05-pycharm) [ide](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-25-ides) </b> anaconda-navigator spyder4|**2020-01**|
|**sources**|<b>[tutorials](https://steempeak.com/linux/@wglenz/6qoxdp-linuxopolis-2019-08-18-tutorials-data-science-and-dhcp) [sources](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-21-sources) [howto](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-24-editor) [screen](https://steempeak.com/linux/@wglenz/4wusn8-linuxopolis-screen) [snap](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-25-snap) [swap](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-04-swap) [snippets](https://steempeak.com/python/@wglenz/linuxopolis-snippets-2) [update](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-21-howto-weather-and-update)</b>|**2020-01**|
|**user**|<b>[user-management](https://steempeak.com/linux/@wglenz/linuxopolis-20-january-2020-user-management) [firefox](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-21-firefox) [tasks](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-29-tasks) [taskwarrior](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-08-taskwarrior) [weather](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-21-howto-weather-and-update)</b> diceware groups id last login pwgen sudo vigr vipw visudo whoami date ulauncher vit wall|**2020-01**|
|**logging**|<b>[logging](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-27-logging)</b> lnav logcheck|**2020-01**|
|**disks**|<b>[veracrypt](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-02-veracrypt)</b> gnome-disks fdisk cfdisk hwinfo lshw dd df du mount umount badblocks baobab blkid lsblk mkfs.vfat parted pwd smartctl sync tune2fs|**2020-01**|
|**packages**|<b>[apt](https://steempeak.com/linux/@wglenz/linuxopolis-14-january-2020-apt) [packages](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-20-packages) [flatpak](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-27-flatpak)</b> dpkg dpkg-reconfigure tasksel|**2020-01**|
|**languages**|<b>[languages](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-12-languages) [java](https://steempeak.com/java/@wglenz/3cfe1n-linuxopolis-2019-08-19-java) [html](https://steempeak.com/linux/@wglenz/3vv6gc-linuxopolis-2019-08-21-html)</b> locales r|**2020-01**|
|**debian**|<b>[system-update](https://steempeak.com/linux/@wglenz/linuxopolis-12-january-2020-system-update)</b>|**2020-01**|
|**directory**|cd popd pushd tree|**2020-01**|
|**memory**|<b>[ramdisk](https://steempeak.com/linux/@wglenz/linuxopolis-09-january-2019-ramdisk)</b> demidecode free vmstat|**2020-01**|
|**server**|<b>[apache](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-16-apache) [docker](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-01-docker) [hardening](https://steempeak.com/linux/@wglenz/5tjkks-linuxopolis-2019-08-23-hardening)</b> ssh virtualbox|**2020-01**|
|**monitoring**|sntop tuptime <b>[check](https://steempeak.com/linux/@wglenz/k3ijm-linuxopolis-2019-08-17-check-sh) [glances](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-30)</b> snort watch uptime bmon dmesg ntopng vnstat zabbix|**2020-01**|
|**host**|<b>[host-configuration](https://steempeak.com/linux/@wglenz/linuxopolis-06-january-2020-host-configuration) [host](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-10-host) [inxi](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-07-inxi) [neofetch](https://steempeak.com/linux/@wglenz/7ev3ua-linuxopolis-neofetch)</b> chkrootkit unattended-updates hostname ip cal ncal|**2020-01**|
|**wm**|<b>[i3wm](https://steempeak.com/linux/@wglenz/linuxopolis-31-december-2019-i3)</b>|**2019-12**|
|**security**|<b>[fail2ban](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-23-fail2ban) [ufw](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-20-ufw)</b> ipfire ipcop iptables rkhunter wireshark||
|**wiki**|<b>[tiddlywiki](https://steempeak.com/linux/@wglenz/linuxopolis-2019-11-26-tiddlywiki)</b>||
|**tmux**|<b>[cheatsheet](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-19-tmux-cheat-sheet)</b>||
|**ranger**|<b>[ranger](https://steempeak.com/linux/@wglenz/4tkeeb-linuxopolis-2019-08-24-ranger)</b>||
|**multimedia**|cmus mpg123||
|**usb**|lsusb etcher||
|**i/o**|<b>[baseline](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-12-baseline)</b>||
|**processes**|lsof journalctl atop ctrl-z jobs bg fg htop kill killall pgrep pkill ps pstree renice top||
<center><h4>HISTORY</h4></center>
```
/dev/null $ cat /dev/null > file.txt
/etc/passwd $ cat /etc/passwd | cut -d: -f7 | sort | uniq -c | sort -nr
/etc/shells $ cat /etc/shells
/proc/interrupts $ watch -d cat /proc/interrupts // interrupts
/proc/ioports # cat /proc/ioports | less // ioports
```
```
alias $ alias ea='vim ~/.bash_aliases && source ~/.bash_aliases'
apropos $ apropos password | less
apt # apt install supertuxkart
arp-scan # arp-scan --localnet | vim -
```
```
cat $ cat > text.txt <<HERE
cups # nc -z 127.0.0.1 631 && echo ok || echo failed
curl $ curl cheat.sh/:list | less
curl $ curl wttr.in
```
```
echo $ echo "It is now $(date +%T) on $(date +%A)"
efibootmgr # efibootmgr
```
```
find # find / -size +4G 2> /dev/null | vim -
find # find / -uid 1000 -exec chown -v 1002:1002 {} \;
find # find / -user userxyz -type f -exec rm -f {} \;
find # find /home -user userxyz -mtime -3
find # find /home -user userxyz -size +1G
find # find ~/Documents -type f -name "*.py" -print | tee ~/python_files.txt
find $ find -size +100M | less
find $ find -size +1G | less
find $ find . -name "*.jpg" -exec convert {} -scale 50% +repage {} \;
find $ find /etc -type f -print 2> /dev/null | less
find $ find /etc/*tab -type f -print
find $ find ~ -maxdepth 1 -type f -exec grep "^alias " '{}' \; -print
find $ find ~ -maxdepth 1 -type f -mtime 3
firmware # ls /sys/firmware/efi
free # watch free -h
```
```
grub # grub-install
```
```
history $ history search --contains 'vim'
history $ history | fzf
```
```
lsof # lsof -u user | fzf
lsof # lsof -u user | vim -
lspci $ clear; lspci; echo; lspci -t; echo // pci
lsusb $ clear; lsusb; echo; lsusb -t; echo // usb
```
```
mail $ watch mail
memory $ ps axch -o cmd:15,%mem --sort=-%mem | sed 10q
memtester # memtester 7G
mkdir # mkdir -p /mnt/ram; mount -t tmpfs tmpfs /mnt/ram -o size=8192M
mkdir $ mkdir -p Backups/{Sales,Development,HR}/{Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}/{Sun,Mon,Tue,Wed,Thu,Fri,Sat}
mkdir $ mkdir -p dummy/{1..100}/{1..100}
mount $ mount | column -t
mpg123 $ mpg123 -zvC /home/user/music/*
```
```
nc # nc -z 127.0.0.1 631 && echo ok || echo failed // cups
nc # nc -z 127.0.0.1 80 && echo ok || echo failed // apache
netstat # netstat -tulpn
ntpq $ watch ntpq -p
```
```
pip $ sudo -H pip install --upgrade youtube-dl
printenv $ printenv | awk '/^PATH|HOME|USER|SHELL/ {print $0}'
processes $ ps axch -o cmd:15,%cpu --sort=-%cpu | sed 10q
```
```
ranger $ ranger /etc/
ranger $ ranger /usr/share/doc/
ranger $ ranger ~/.local/share/Trash/
```
```
scp $ scp -r folder/ user@a.b.c.d:~
scp $ scp file.txt pi@a.b.c.d:/home/pi/
scp $ scp pi@a.b.c.d:/home/pi/file.txt .
systemctl # systemctl status|restart|start|stop|enable|disable
systemctl $ systemctl status apache2
```
```
tuptime $ tuptime -t // table
tuptime $ watch tuptime
```
```
vim $ vim $(fzf --height 40%)
vim $ vim $(fzf -e --preview 'head -100 {}')
vim > export EDITOR=vim
vim > export VISUAL=vim
```
```
watch $ watch -d -n 5 ls -l
whatis $ whatis passwd
```
<br>
```
SOURCES
```
```
arch-linux ...................................................................... archlinux.org
debian ............................................................................. debian.org
mx-linux .......................................................................... mxlinux.org
picture .................................................. screenshoot by me ~ my gnome-desktop
```