The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Command similar to doskey halel UNIX for Dummies Questions & Answers 4 05-16-2006 04:49 AM
DOSKEY jimwelch4 UNIX for Dummies Questions & Answers 2 11-30-2000 04:36 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-17-2002
Registered User
 

Join Date: Jan 2002
Location: INDIA
Posts: 10
Unhappy Doskey

!HELLO SIR,


Is there any Command in UNIX which will work like DOSKEY funcationaly.

how can i use DOSKEY in UNIX.
Forum Sponsor
  #2  
Old 01-17-2002
thehoghunter
Guest
 

Posts: n/a
Check the history or fc command.
  #3  
Old 01-17-2002
cns cns is offline
Registered User
 

Join Date: Dec 2001
Location: Maastricht (The Netherlands)
Posts: 15
First hit the [Esc] key, then the [-] key to retrieve the previous command. You can hit the [-] key again and again to retrieve the previous commands.

To edit the retrieved command your commandline acts like in the vi-editor.
  #4  
Old 01-17-2002
thehoghunter
Guest
 

Posts: n/a
Using the ESC key and - will work only if you set -o vi (in ksh).
The man page on history will give more information for csh and I don't believe you can do this in sh at all.
  #5  
Old 01-17-2002
cns cns is offline
Registered User
 

Join Date: Dec 2001
Location: Maastricht (The Netherlands)
Posts: 15
Quote:
Originally posted by thehoghunter
Using the ESC key and - will work only if you set -o vi (in ksh).
The man page on history will give more information for csh and I don't believe you can do this in sh at all.
Indeed. Forgot about that
  #6  
Old 01-17-2002
Registered User
 

Join Date: Feb 2001
Location: Sweden
Posts: 13
DOSKEY in UNIX.

Hi

Change shell to bash or tcsh.
That should do it.

/*ghost*/
__________________
enjoy life...
  #7  
Old 02-26-2003
yls177
Guest
 

Posts: n/a
what i want is to
1) capture this history of commands into a file,
2) something like pressing esc and - to screen through the list of commands.
3) do the above in csh, sh.

and i got the below

fc -l does gives the history of commands entered. but this set -o vi, doesnt work in csh, i got this set:syntax error from the system. according to the earlier posts, i did a man history, and it was only two pages with the description of what it does
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0