08-27-2004
as mentioned, it depends what shell you are using. If it's bash shell you can use the command history which will give you the most recent commands you executed. There will also be a number on the left. if you type ! at the beginning of this number, it will execute that command associated with that number. you can also type r and then the beginning of the most recently executed command, then it'll execute that command. Such as r e will execute echo $0 if it was the most recent command starting with e(this is about bash shell)
on korn shell fc -l and r works similar.
7 More Discussions You Might Find Interesting
1. What is on Your Mind?
to start, i will continue to be an active member of this community and still love computers and unix based operating systems.
ive been busy recently with a pretty big project, not involving unix :p
one of my other hobbies is automobiles. i have a 1986.5 toyota supra, now if anyone here has... (8 Replies)
Discussion started by: norsk hedensk
8 Replies
2. UNIX for Dummies Questions & Answers
O/P of the uname -a
Server Server 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI
Server is getting rebooted frequetly...
I don't know what is the problem in server ...
Any help why the server is getting rebooted frequetly.
Can i check what is the problem like in log files (5 Replies)
Discussion started by: srikanthus2002
5 Replies
3. HP-UX
hi,
I am facing a sever problem in mu HO-UX 11.11.0 Server which is getting hanged for last 3/4 days.
Its giveing error insufficient memory. Earlier this problem was not there.
We are using oour ERP & informix on the same. There no heavy & sudden increase of data.
When I checked the... (3 Replies)
Discussion started by: micku_100
3 Replies
4. Solaris
Deall All,
I have facing some problem. I have a Sun 4500 Server at the customer place. Now the server is not booting mean's once the server is coming up it is automatically rebooting. As this is the critical server for the customer that is use for production .
Can this be solved by... (10 Replies)
Discussion started by: sudhansu
10 Replies
5. Linux
I have Red hat Linux server. There are 14 NFS shares which are coming from NAS. There are so many messages filling /var/log/messages, which seems like some NFS logging is enables somewhere, but I am not able to figure it out. Every few minutes, it will filll my /var (which is part of root) to 100%... (2 Replies)
Discussion started by: solaris_1977
2 Replies
6. Linux
I have a Linux server that runs a Java based app that automates file transfers for a large number of users/systems. I'm running into a problem with the scripts for this automation program in that when I have a function in the script generate an output file, and the next line requires that file to... (1 Reply)
Discussion started by: acascianelli
1 Replies
7. Red Hat
Hi Experts,
I have an issue where the interface card went down for like four times in last one week in redhat linux server. Every time it goes down, it comes back.
2014 Oct 21 07:22:14 <hostname> kernel: nx_nic: NIC Link is down
2014 Oct 21 07:22:21 <hostname> kernel: nx_nic: NIC Link is... (3 Replies)
Discussion started by: dhanu1985
3 Replies