The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
history of commands superuser84 Linux 2 12-07-2007 04:55 AM
History commands abu_hassan SUN Solaris 1 02-20-2007 10:24 AM
Seeing previous command JackieChan UNIX for Dummies Questions & Answers 4 06-02-2006 10:35 AM
how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS spotnis UNIX for Dummies Questions & Answers 11 09-14-2005 02:22 AM
Combining elements of different commands in history Dbyte UNIX for Dummies Questions & Answers 5 10-22-2003 06:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-30-2001
firebirdonfire firebirdonfire is offline
Registered User
  
 

Join Date: Mar 2001
Posts: 4
Hi,

I can use history command in unix to view my last 50 commands. But how can I run the previous commands easily? Can history command help?

Firebird
  #2 (permalink)  
Old 03-30-2001
mib mib is offline
Registered User
  
 

Join Date: Jan 2001
Location: Calicut
Posts: 228
!! : to run the previous command
^P : move up through history list, one command at a time. (Up arrow key)
^N : move down (or Down arrow key).
!n : run nth command in history list. where n is a number from your history list.
!n:p : only preview command number n (will not execute the command).
!string : Run most recent command starting with characters in string.
  #3 (permalink)  
Old 03-30-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Or if you are using ksh, use the 'vi' keys to scroll through.edit your previsou commands.
Hit Escape, then 'k' to scroll back. 'j' to move forward. 'l' to move right, 'h' for left, etc. Almost all the normal vi function keys are available...

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0