shortcut for recently used commands in csh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers shortcut for recently used commands in csh
# 1  
Old 04-20-2005
Lightbulb shortcut for recently used commands in csh

hello,

as in bash we have history of commands what is the shortcut for seeing recently used command in csh shell.

thanks in advance.

regards,
rishi

found the reply in man! Thanks
it is !! to repeat last command

Last edited by RishiPahuja; 04-20-2005 at 02:10 AM..
# 2  
Old 04-20-2005
C-Shell: Define
set filec
set history=100
savehist=50
in ~/.cshrc. The shell will complete file names and directories once you hit the ESC key, and history lists the last 100 commands. With !13 command #13 can be re-issued. !$ can be used as a variable for the last word of the former command, like in: mkdir /export/home/demo/test, then cd !$.

gP

Last edited by pressy; 04-20-2005 at 05:08 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Csh - how to combine multiple commands in one line

Hey everyone, I am working in an environment where the different users can use ksh or csh. My situation is that I need the same result with one single command line. I am searching for the real path the file is in. My ksh input and output ts2:ts2adm> cd $(dirname $(which sapcontrol)); pwd -P... (2 Replies)
Discussion started by: h1kelds
2 Replies

2. Shell Programming and Scripting

Creating a shortcut

Hi, I want to match a column of one file with many others and take the average of each one and put them into one file (I know sounds complicated). so the 1st file is just a list of names that I want to match with the 2nd file that have names along with rows of values. awk... (4 Replies)
Discussion started by: kylle345
4 Replies

3. Solaris

How to create a shortcut for Openoffice?

Hello all, I am facing some problem after installing the Openoffice in Solaris 10. The installation is successful but i cannot find any icon or shortcut on both Application and Desktop... please help me on this.... (8 Replies)
Discussion started by: aungyepaing
8 Replies

4. UNIX for Dummies Questions & Answers

Shortcut keys are not working

Hi all, I use the shortcut keys CTRL-a and CTRL-e to move cursor to start and end of line in shell prompt alot. But recently what happened to my system i don't know only CTRL-a is working not CTRL-e . If i press CTRL-e any other window in that desktop pop's up. Can any1 tell me how to correct... (2 Replies)
Discussion started by: vio719
2 Replies

5. Shell Programming and Scripting

Del - trash - restore CSH commands!!

Anyone who could help me with those three commands, i'm really new in cshell script so please be understandable.. Need to demostrate those three commands del trash (incl -ai) i that you will be asked to confirmed that they can be deleted a to move all those files from dustbin and to... (2 Replies)
Discussion started by: Visi_Ks
2 Replies

6. Shell Programming and Scripting

csh failing to call an 2 embedded csh script

I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them) Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies

7. Shell Programming and Scripting

Is there a shortcut in awk?

Is there a key board shortcut in vi editor to allow me to find the next ( or { that are corresponding to the first one? Thanks! It's % sign. (1 Reply)
Discussion started by: whatisthis
1 Replies

8. UNIX for Dummies Questions & Answers

Shortcut thing?

Hey, im new to Linux...totally new. I know there is a way to assign a type of variable or something to a directory, so instead of having to type "cd /var/www" etc, I could just assign a variable to the directory, so I could just do "cd $assignedvar" and it would be there...if you get what I... (0 Replies)
Discussion started by: mo0ness
0 Replies

9. UNIX for Dummies Questions & Answers

Shortcut

Dear Friends How i make shortcut in Tru64 unix for example make a shortcut for mail , i want to make a shortcut under / root the bath for mail # cd /var/spool/mail Regards, (1 Reply)
Discussion started by: fmmq
1 Replies

10. UNIX for Dummies Questions & Answers

shortcut in unix?

Sorry, anybody here knows how to make a shortcut in unix? Thanks. Sebastian. (4 Replies)
Discussion started by: seba
4 Replies
Login or Register to Ask a Question