Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-13-2003, 11:40 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
ksh commands in bash

I am new to bash & it is ok so far.

I like using "!" to repeat commands.

I also liked the ksh "r" to repeat commands.

How can I set up bash to use "r" to repeat commands:


in ksh - if my last "l" command was ls -l

then r l would repeat it.

in bash I must use !l

r l is easier to hit than !l

Old 11-13-2003, 12:01 PM   #2
Registered: Nov 2003
Posts: 65

Rep: Reputation: 15
Can you create an alias for r
alias r=!

Old 11-13-2003, 12:11 PM   #3
LQ Newbie
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
yep. tried that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
processing a ksh shell in bash environment ntoughe Programming 9 09-12-2005 06:09 AM
bash/ksh variables question tpe Programming 2 08-11-2005 10:39 AM
shell confusion..what is diff between bash, ksh, csh, tcsh..?? servnov Linux - Newbie 7 11-18-2004 09:28 PM
Bash commands PhuckFonix Linux - Newbie 2 03-30-2004 08:13 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 03:56 PM

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration