![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
!HELLO SIR,
Is there any Command in UNIX which will work like DOSKEY funcationaly. how can i use DOSKEY in UNIX. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Check the history or fc command.
|
|
#3
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
DOSKEY in UNIX.
Hi
Change shell to bash or tcsh. That should do it. /*ghost*/
__________________
enjoy life... |
|
#7
|
|||
|
|||
|
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 |