Shell Kommandos out of Space
Hier kommen nun ein paar Shell Befehle, die nicht ganz so geläufig, aber nichts desto trotz einfach nur Klasse sind.
unison
Bidirektionale Synchronization
Installation
sudo apt-get install unisonKonfiguration: ~/.unison/synchome.prf
Ausführen:
unison synchomeWenn die Datei unter ~/.unison default.prf heißt, dann muss man keinen Parameter beim letzten Befehlt verwenden
pass
Installation
sudo apt-get install passDokumentation: https://www.passwordstore.org/
Directories:
- ~/.password-store
- ~/.gunpg/
pass init "ZX2C4 Password Storage Key"
pass git initpass www.grafwerk-shop.de
# Copy to Clipboard
pass -c www.grafwerk-shop.de
# Passwort eintragen
pass insert Business/cheese-whiz-factory
# Passwort generieren und speichern
pass generate Email/jasondonenfeld.com 15
pass rm Business/cheese-whiz-factory
pass rm Email/jasondonenfeld.comCargo als Alternative Installationsmethode
Dokumentation: https://github.com/rust-lang/cargo
sudo apt install cargo
cargo install viu
ln -s ~/.cargo/bin/viu ~/bin/viujc macht aus CLI Ausgaben JSON
https://github.com/kellyjonbrazil/jc
wget --output-document ~/Downloads/jc_1.19.0-1_amd64.deb https://github.com/kellyjonbrazil/jc/releases/download/v1.19.0/jc_1.19.0-1_amd64.deb
sudo dpkg -i ~/Downloads/jc_1.19.0-1_amd64.debjcjc ifconfig
jc ifconfig green0
jc -p ifconfig green0gron - grep für json
Installation
sudo apt-get install groncurl https://mysuperwebapp.de/api/proxy/listjson
curl https://mysuperwebapp.de/api/proxy/listjson | gronripgrep
Recursiv grep in Rust
Installation
apt install ripgreptime grep -r api ~/Entwicklung/IC2020/AdminWeb
...
real 0m0,181s
user 0m0,105s
sys 0m0,063stime ripgrep api ~/Entwicklung/IC2020/AdminWeb
real 0m0,035s
user 0m0,009s
sys 0m0,034sbat cat clone mit Color, git integration, show non-printable characters
a cat(1) clone with syntax highlighting and Git integration
Installation
apt install batcatbatcat ~/Entwicklung/IC2022/docker-webdevops-ubuntu/Dockerfile
batcat ~/bin/rofi-bookmarks
batcat -L~/.bashrc
### MANPAGER
export MANPAGER="sh -c 'col -bx | batcat -l man -p'"man catfuck (corrects errors in previous console commands)
Installation
sudo apt install thefuck
vim ~/.bashrc
eval $(thefuck --alias FUCK)~ ❯ apt-get install vim
E: Sperrdatei /var/lib/dpkg/lock-frontend konnte nicht geöffnet werden. - open (13: Keine Berechtigung)
E: Erlangen der Sperre für die Dpkg-Oberfläche (/var/lib/dpkg/lock-frontend) nicht möglich; sind Sie root?
~ ❯ FUCK
sudo apt-get install vim [enter/↑/↓/ctrl+c]starship
Schriftart: https://www.nerdfonts.com/font-downloads https://www.programmingfonts.org/#source-code-pro
Installation
wget -O ~/Downloads/SourceCodePro.zip "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/SourceCodePro.zip"
curl -sS https://starship.rs/install.sh | shrmlint
Finden und löschen von doppelten, leeren und so weiter Dateien
Installation
sudo apt install rmlint
rmlint ~/Downloads/ncdu Disk usage analyzer with ncuses interface
Disk Usage mit dem Mehrwert
Installation
sudo apt install ncdu
ncduexa
bash comletion Erweiterungen
Erweiterung durch einen neuen Ordner ~/.bash_completion.d/
mkdir ~/.bash_completion.d
vi ~/.bash_completionInhalt
for bcfile in ~/.bash_completion.d/* ; do
[ -f "$bcfile" ] && . $bcfile
doneAlternative (untested):
mkdir -p ~/.local/share/bash-completion/completionstldr
Man in kurz
Installation
sudo apt install tldr
tldr --update
tldr rsyncxsv "jq" für CSV Dateien
Installation
Download von https://github.com/BurntSushi/xsv/releases
Header Informationen
$ curl -LO https://burntsushi.net/stuff/worldcitiespop.csv
$ xsv headers worldcitiespop.csv
1 Country
2 City
3 AccentCity
4 Region
5 Population
6 Latitude
7 LongitudeWeitere Beispiele
xsv stats worldcitiespop.csv --everything | xsv table
xsv count worldcitiespop.csv
xsv slice worldcitiespop.csv -s 3173948 | xsv table
xsv select Country,AccentCity,Population worldcitiespop.csv \
| xsv sample 10 \
| xsv table
xsv search -s Population '[0-9]' worldcitiespop.csv \
| xsv select Country,AccentCity,Population \
| xsv sample 10 \
| xsv tableWeitere Beispiele: https://github.com/BurntSushi/xsv
fx JSON Viewer
Installation Download von https://github.com/antonmedv/fx/releases
fx data.json
curl https://mysuperwebapp.de/api/proxy/listjson | fxUbuntu 20.04 Problem viu View Images on Terminal
Installation Download von https://github.com/atanunq/viu/releases
Homepage und Usage: https://github.com/atanunq/viu
Ubuntu 20.04 Problem viu View Images on Terminal
sudo apt install cargo
cargo install viufalsisign (PDF to FAX Look generator)
https://gitlab.com/edouardklein/falsisign
Beispiele :)
alacritty
Installation
sudo add-apt-repository ppa:aslatter/ppa
sudo apt install alacritty- xterm
time cat ~/Downloads/access.log
...
real 0m0,739s
user 0m0,003s
sys 0m0,053s- alacritty
time cat ~/Downloads/access.log
...
real 0m0,126s
user 0m0,002s
sys 0m0,046srofi
Installation
apt install rofiBeispiele:
rofi -show run
rofi -show ssh
rofi -show windowrofi -show combiRofi mit Skript befüllen
~/bin/icneu
~/bin/rofi-bookmarks
~/bin/rofi-configs
~/bin/rofi-manpages
~/bin/rofi-pass
www.tomtom.comRepository von Azlux
echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add -
sudo apt update
sudo apt install gpingInhalt des Repository: http://packages.azlux.fr/