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 08:49 AM
DOSKEY jimwelch4 UNIX for Dummies Questions & Answers 2 11-30-2000 07:36 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-17-2002
smdakram smdakram is offline
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.
  #2 (permalink)  
Old 01-17-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Check the history or fc command.
  #3 (permalink)  
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 (permalink)  
Old 01-17-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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 (permalink)  
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 (permalink)  
Old 01-17-2002
ghost ghost is offline
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*/
  #7 (permalink)  
Old 02-26-2003
yls177
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:10 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0