Check These Out
If you omit the function name, the command will display all definitions
Problem: I wanted to backup user data individually. In this example, all user data is located in "/mnt/storage/profiles", and about 25 folders inside, each with a username ( /mnt/storage/profiles/mike; /mnt/storage/profiles/lucy ...)
I need each individual folder backed up, not the whole "/mnt/storage/profiles". So, using find while excluding directories depth and creating two variables (tarfile=username & desdir=destination), tar will create a .tgz file for each folder, resulting in a "mike_full.tgz" and "lucy_full.tgz".
ssh from local to remote and pipe output of file to the local clipboard
the -A argument forwards your ssh private keys to the host you're going to. Useful in some scenarios where you have to hop to one server, and then login to another using a private key.
You might have Xnest (older) rather than Xephyr.
You can experiment with other desktops eg:
startx /usr/bin/start-kde -- /usr/bin/Xephyr :2
You can start X on a remote machine (although I'd recommend vnc for anything slower than a LAN):
startx /usr/bin/ssh -X gnome-session -- /usr/bin/Xephyr :2
Or just start another X session locally talking to the remote backend:
Get the name of the parent command. This might be helpful, if you need to react on that information. E. g. a script called directly via ssh has got sshd as parent, manually invoked the parent process will probably be bash
To decrypt the files replace "ccenrypt" with "ccdecrypt.
ccrypt(1) must be installed. It uses the AES (Rijndael) block cipher.
To make it handier create an alias.
Here is how to replicate the directory structure in the current directory to a destination directory (given by the variable DESTDIR), without copying the files.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
email random list can be created here: https://www.randomlists.com/email-addresses