Tend to forget simple commands that I don't use so much and for improved productivity decided to write them down.
Basic syntax:
find [from] [what]
Symbolic links in currend directory:
find . -maxdepth 1 -type l -ls
find [from] -name "folder-name"
find [from] -type d "folder-name"
-u
stands for unified context (easier to read)
diff -u original_file file_to_compare > output.patch
-b
backs up the file to be patched
patch -b file_to_be_patched patch.file
Symbolic link
ln -s /where/to /link/location
List as a column:
ls -1
wget https://github.com/akerge.keys
ip addr add #.#.#.#/# dev eth#
ip link set eth# down/up
in Ubuntu it's /etc/netplan.yaml
, fiddle with it and then netplan apply
To re-mount everything, say, after modifying fstab
mount -a