Doskey


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Doskey
# 1  
Old 01-17-2002
Data Doskey

!HELLO SIR,


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

how can i use DOSKEY in UNIX.
# 2  
Old 01-17-2002
Check the history or fc command.
thehoghunter
# 3  
Old 01-17-2002
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.
This User Gave Thanks to cns For This Post:
# 4  
Old 01-17-2002
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.
thehoghunter
# 5  
Old 01-17-2002
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 Smilie
# 6  
Old 01-17-2002
DOSKEY in UNIX.

Hi

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

/*ghost*/
# 7  
Old 02-26-2003
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
yls177
 
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Command similar to doskey

Hello all, I need a help in unix. is there any command in unix similar to doskey in MS Dos. It taked pain to enter the big command again and again.. the up and down arrows do not bring the previous commands on the prompt. so pls let me know if there is any command to enable the doskey kind of... (4 Replies)
Discussion started by: halel
4 Replies

2. UNIX for Dummies Questions & Answers

DOSKEY

I am a new UNIX user. I use SCO Openserver 5. I am also a longtime MS-DOS user (since 1981). There was a program with DOS called DOSKEY. It allowed you to assign a code to an F key; every time you pressed that F key you got the code on the command line. You could put in whatever command... (2 Replies)
Discussion started by: jimwelch4
2 Replies
Login or Register to Ask a Question