Get the progress of the dd
command
Other articles
rip grep and other new cli tools
Fast alternative to grep
read morebash-links
Links to good resources about bash and shell scripting in general
read morevimdiff remote files
vimdiff a scp://host//a
read moressh forward to link local
Lang: en Status: published
At some point I used Jupyter notebooks on different computers and with different Python versions and wanted to distinguish them. So I gave them IP addresses with the Python version encoded in them and the host all within the local block
127.
.But how do I …
read morebash-default-variables
Default-Variable
Auf den beiden großartigen englischsprachigen Seiten zur Bash-Prgorammierung tldp und cyberciti kann man jede Menge Tricks zur Variablenmanipulation in bash finden.
Ein sehr häufiger Fall ist die Default-Variable. Dabei gibt es zwei verschieden Fälle. Der mit dem Gleichheitszeichen (
=
), mit integrierter Zuweisung des Wertesecho ${varname:="default value"}
Hier hat …
read morels-tricks
Tricks with ls
List files except those with a specific extension (zsh)
To list all files in the current directory except those with special extensions often is very useful. For example if I am in a directory with many plots or many data files and only a few others in …
read moresshfs
Mount a folder remotely
I like sshfs the secure shell filesystem. But sometimes I forget how the unmounting command is, so I write this short note to myself.
The mounting part is intuitive:
sshfs HOST:PATH mountpoint
It mounts the given path from the given host to the given mountpoint …
read moreX-forwarding combined with sudo
X11 forwarding combined with sudo
Unfornunately I have no better solution found for X-forwarding and
sudo
ing afterwards, yet.This solution is insecure, but works as a dirty hack.
read moreuser:~$ xauth list | grep unix$(echo $DISPLAY | cut -c10-12) > /tmp/xauth user:~$ sudo -s root:~# xauth add $(cat /tmp/xauth) root …