![]() |
|
|
|
|
|||||||
| 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 | Display Modes |
|
#8
|
|||
|
|||
|
in BASH when enabled you can use the up arrow keys to view your previously entered commands, and also BASH and other shells have an auto-complete featue, in bach you just hit tab and it will either complete your command or give you a list of commands. i like bash's features better than DOSKEY when i used DOS.
|
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
my shell is csh
i did a set and got the below histfile /home/adm/.history history 100 i did a ls -ltr /home/adm/.history but it was empty. what else do i need to set? |
|
#10
|
||||
|
||||
|
Read the man page for csh - search for savehist.
Set your history in your .login in your home directory. set history=200 logout and log back in (or start a new session) - type history at the prompt. Do a couple of commands and try the history command again. See if it's changed. As far as what you wanted to do: Quote:
I did not find "histfile" anywhere and if set, does not do a thing. Try the savehist which can be found in the csh man page. Then you should see your .history start to grow (if you set it correctly). |
|
#11
|
||||
|
||||
|
Just an FYI to above, bash can do either history type, as can some vrsions of ksh.
bash default is the same as entering "set -o emacs". You can get the vi editing mode on bash by entering "set -o vi". |
|
#12
|
||||
|
||||
|
The most flexible shell of all wrt user input/command recall and much more besides is zsh.
|
|
#13
|
|||
|
|||
|
i did a man csh, but did not read/find any savehist at all.
please advise. the set history=200 in .login works.. but now i hoped to get it to write to a file. |
|
#14
|
|||
|
|||
|
set history=200
set histfile=$HOME/.history set savehist=200 merge put the above in .login and it will work! cheers.... okay, will try to achieve the same for sh... |
|||
| Google The UNIX and Linux Forums |