We all learn new things over time as we use applications with a vast amount of possibilities. Of course, some of those things would have been so useful if we had known them earlier. Here are 10 command line tricks that I wish I had learned much sooner.
Note: these tricks apply to bash, which is the default shell on most Linux systems. If you’re using a different shell, they may not work for you. If you don’t know which shell you have, it’s probably bash, so go ahead and try them!
In a nutshell, the tarbackup service is more or less a free private SFTP server for people to put their encrypted backups on. If you have a crash or fire, you can download your backup, decrypt it, and restore it. Continue reading “tarbackup”
Password management should be simple and follow Unix philosophy. With pass, each password lives inside of a gpg encrypted file whose filename is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, copied from computer to computer, and, in general, manipulated using standard command line file management utilities.
pass makes managing these individual password files extremely easy. All passwords live in~/.password-store and pass provides some nice commands for adding, editing, generating, and retrieving passwords. It is a very short and simple shell script. It’s capable of temporarily putting passwords on your clipboard and tracking password changes using git.
You can edit the password store using ordinary unix shell commands alongside the pass command. There are no funky file formats or new paradigms to learn. There is bash completion so that you can simply hit tab to fill in names.
The pass command is extensively documented in its man page.
mrsync a tool to transfer files from a master to many remote machines in LAN using Unix socket’s multicast. It dynamically adjusts its speed of transfering to ease on the network and to leave no one behind. 4 hours for 140GB to 100 targets in 1Gbit LAN
AIDE (Advanced Intrusion Detection Environment) is the Open Source version of Tripwire. AIDE takes a snapshot of every file on your server, records it and then will notify you of any changes. This tutorial will show you how to create a script that will automate this process and send you an email of the outcome.
Xiki merges both the shell and GUI concepts. Commands in Xiki can have nested menus that are just text indented by 2 spaces. Use the mouse or keyboard, whichever you prefer to run those commands. Xiki does what shell consoles do, but lets you edit everything at any time. It is extremely easy to make and use your own commands and menus to access other tools within the same interface.
Type a word, any word, then double click on it or type control-return (or command-return) to run the command. For example type: git, bootstrap, mysql, mongo, rails, node, coffee, js, dom, jquery, svg, ruby code, file paths, url’s, shell commands, etc.
Everything is in editable text form. You can type commands on any line, edit the output (Vs. typing commands at the bottom, and read-only output), Intermix menus, headings, bullet points, wherever you want.
“Hey guys! A few weeks ago I wrote an article called All About Bash Redirections. It explains all the possible bash redirections with illustrations. I thought it would be a great idea to make a cheat sheet that summarizes all these redirections. So I did. Here is the bash redirections cheat sheet:
If you want to learn how each one of these redirections work, read my article All About Bash Redirections! Found a mistake or want to contribute to this cheat sheet? Fork it on github! Enjoy! PS. I’ve created a dozen different cheat sheets. Take a look at my other cheat sheets about awk, ed, sed, perl, screen, more bash, gnu coreutils, util-linux, and many others.”