Here are 2 different shell commands using cat. These examples would allow you to stack files into a new file concatenating them together. Useful for
sed is a really powerful Linux command line utility. It can in a one line do what would take sometimes 20-30 lines of code in
I needed to recursively unzip a big mess of nested zip files. This shell command does the trick, it also preserves the directory structure.
Having to type in passwords manually all day long into servers you manage is a pain. You should be using ssh keys, they’re more secure,
This is the only command I’ll use to upgrade or update the OS on my Ubuntu instances, any version. This doesn’t upgrade to the next
Step 1: Postfix Config I’m going to assume you have postfix and your domain dns already setup. Adding an incoming email that you can parse
This command very quickly creates 100k randomly sized binary files in the directory you run it in. Took 6 minutes 37 seconds to run on
This command combines ls (directory list) with wc (word count) command to count the number of files in a directory. I just used it to
Basic usage is simple, the man page doesn’t always get to the examples quickly so I thought I’d write about it for a quick reference.