Posts tagged bash

Bash cheat sheet

Technically, this is a bash cheat sheet; however, many of the commands will work with Bourne shell descendants, such as zsh.


reverse-i-search'ing in the Linux shell

When you press ctrl+r in the shell, you activate a feature called "reverse-i-search." Reverse-i-search'ing lets you search through your shell history commands, from most recent to oldest.


How to make a ruby file executable

In the ruby file:

#!/usr/bin/env ruby
puts 'Hello world'

At the command line:

chmod +x ruby.rb

Then you can execute it like this: