Ten things I wish I knew earlier about the Linux command line

From http://tuts.pinehead.tv/

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!

Continue reading “Ten things I wish I knew earlier about the Linux command line”

Pass

From zx2c4.com

Introducing pass

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.

 
Continue reading “Pass”

Automatically Detect File Changes on Your Server

From bashshell.net

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.

Step #1: Install and Configure AIDE
If you need more information on installation and configuring AIDE.

Continue reading “Automatically Detect File Changes on Your Server”

Xiki

From xiki.org

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.

Xiki == executable wiki.

Check out the screencasts to see Xiki in action.

Go to github.com/trogdoro/xiki to check out the code and install Xiki.

From xiki.org

Bash Redirections Cheat Sheet

From catonmat.net

“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.”

Nice work Peteris! – From catonmat.net