One Day One Cmd

Place for playing with commands…

Day 66: $ Ctrl + R Command-line shortcut

ODOC: Ctrl+r can be used from command line this will help us to repeat any command that has been used in past very easily. After pressing this in your terminal, it will change your command prompt slightly.
Then start typing the letters of any word in the command that was issued previously. The command will be displayed at the command prompt.

Ex:
bala@bala-desktop:~$ ctrl + r
(reverse-i-search)`':
(reverse-i-search)`fr': import frame 1.jpg

Here i am searching for some command having character ‘fr’ i got it as import frame 1.ipg

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: