mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Some basics of bash

Go down

Some basics of bash Empty Some basics of bash

Post  sriharsha Tue Mar 10, 2009 6:22 pm

Code:

STTY  :- Change the settings and print terminal line settings

Now to suspend any control like contrl-v use this
            [quote]
            stty susp '^v'
            [/quote]

Code:

COMMAND LINE HISTORY :-
The history can be searched with an exclamation mark which denotes the starting of the command ..
for example :-
$ date
Tue Mar 10 16:45:47 IST 2009
$ !d
Tue Mar 10 16:45:47 IST 2009
Bash returns a message if did not find any suitable command in history ..
$ !x
bash: !x: event not found

A double '!' represents the last command
$ !! ( will execute the last command )
'#! ' --> represents the content of the current command
example
Code:

$ date ; sleep 5 ; !#
date ; sleep 5 ; date ; sleep 5 ;
Fri Jan 18 15:26:54 EST 2002
Fri Jan 18 15:26:59 EST 2002
$

sriharsha

Posts : 21
Join date : 2009-02-02

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum