Libervis Network - For a Free WorldLibervis Projects | Nuxified Projects
Welcome guest. Register | Login | Show what's new

bash

Ctrl-R in the Bash Shell

Recently I came across the command Ctrl-R in the bash shell. It allows you to search and browse your bash history.

For instance you ssh into your server every day, in between each ssh you do a bunch of other things, this makes in impractical to use the Up arrow key to go through your history to find the command. Instead hit Ctrl-R, and start typing ss, it will search your bash history for the last time you used a command with ss in it:

(reverse-i-search)`ss': ssh foo.servername.com

You hit 'Enter' and the line will be executed.

Bash Shell Keyboard Shortcuts For Linux Users

The default shell on most Linux operating systems is called Bash. There are a couple of important hotkeys that you should get familiar with if you plan to spend a lot of time at the command line. These shortcuts will save you a ton of time if you learn them.

Curly Braces are Damn Useful Things

In the bash shell curly braces { and } are surprisingly useful things to reduce typing.

With the mkdir command they help you create trees of directories in one command. For instance:

We have 3073 members who wrote 2054 articles and 11880 comments. Welcome to our newest member, hutopire!

Who's online

There are currently 0 users and 8 guests online.
Nuxified RSS feed