LINUXOPOLIS # 22-JANUARY-2020 ~ SUMMARY


LINUXOPOLIS

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous
screenshot by willi glenz

UPDATES

tutorials ................................................................... update 2020-01-21
user-management ............................................................. update 2020-01-20
history ..................................................................... update 2020-01-19
disk-management ............................................................. update 2020-01-17
dns oneliner apt system-update debian ................................................. 2020-01
ramdisk ntp monitoring host-configuration vim-cheatsheet networking ................... 2020-01
i3 wm tasks check shortcuts ide arp system-editor sources packages tmux ............... 2019-12
apache fzf baseline host python pycharm swap glances veracrypt cpu .................... 2019-12
flatpak logging docker ................................................................ 2019-11
snap tiddlywiki raspi fail2ban tails firefox weather firmware ufw ..................... 2019-11
vim prompt aliases howto container languages taskwarior inxi git fish bash ............... 2019 
systemrescuecd snippets screen neofetch ranger hardening html java arch .................. 2019
2020
28 sources tutorials sources howto screen snap swap snippets update 2020-01
27 cli bash fish oneliner aliases prompt shortcuts alias printenv shellcheck unalias zsh gnome-terminal echo exit expr terminator 2020-01
26 text vim-cheatsheet vim system-editor focuswriter awk pandoc ne 2020-01
25 user user-management firefox tasks taskwarrior weather diceware groups id last login pwgen sudo vigr vipw visudo whoami date ulauncher vit wall 2020-01
24 logging loggingb>logging lnav logcheck 2020-01
23 disks disk-management veracrypt gnome-disks fdisk cfdisk hwinfo lshw dd df du mount umount badblocks baobab blkid lsblk mkfs.vfat parted pwd smartctl sync tune2fs 2020-01
22 distros systemrescuecd arch tails mx-linux 2020-01
21 network dns networking arp ntp fping mtr netstat nmap ping rsync speedtest 2020-01
20 packages apt packages flatpak dpkg dpkg-reconfigure tasksel 2020-01
19 languages languages java html locales r 2020-01
18 debian debian system-update 2020-01
17 directory cd popd pushd tree 2020-01
16 memory ramdiskb>ramdisk demidecode free vmstat 2020-01
15 server apache docker hardening ssh virtualbox 2020-01
14 monitoring sntop tuptime check glances snort watch uptime bmon dmesg ntopng vnstat zabbix 2020-01
13 host host-configuration host inxi neofetch chkrootkit unattended-updates hostname ip cal ncal 2020-01
2019
12 wm i3wmb>i3wm 2019-12
11 security fail2ban ufw ipfire ipcop iptables rkhunter wireshark
10 python python pycharm ide anaconda-navigator
09 wiki tiddlywikib>tiddlywiki
08 tmux cheatsheetb>cheatsheet
07 ranger rangerb>ranger
06 multimedia cmus mpg123
05 files container fzf git
stat 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
04 usb lsusb etcher
03 i/o baselineb>baseline
02 processes lsof journalctl atop ctrl-z jobs bg fg htop kill killall pgrep pkill ps pstree renice top
01 hardware raspib>raspi

HISTORY

/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
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}'
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


SOURCES
arch-linux ...................................................................... archlinux.org
debian ............................................................................. debian.org
mx-linux .......................................................................... mxlinux.org

picture .................................................. screenshoot by me ~ my gnome-desktop

Comments 0