The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 command akash_wagh Filesystems, Disks and Memory 2 01-22-2009 12:51 PM
Command history in AIX priya_v111 Shell Programming and Scripting 2 09-18-2006 02:48 PM
Command history a25khan UNIX for Dummies Questions & Answers 8 12-10-2003 06:05 AM
command history vikasdeshmukh UNIX for Dummies Questions & Answers 3 11-14-2001 05:37 AM
History Command jack UNIX for Dummies Questions & Answers 2 08-01-2001 01:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-04-2008
cleansing_flame's Avatar
cleansing_flame cleansing_flame is offline
Registered User
  
 

Join Date: Nov 2007
Location: NYC
Posts: 37
Help with the History command

How do I make the history command, in addition to the past commands, display the hard path to the place where i modified or did my past action?

thanks in advance
  #2 (permalink)  
Old 02-04-2008
ennstate ennstate is offline
Registered User
  
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
I guess you want to capture the terminal session,you can make use of script command.

In your shell prompt,
Code:
 script capture-this-session.txt
man script for more info.

Thanks
Nagarajan G
  #3 (permalink)  
Old 02-04-2008
cleansing_flame's Avatar
cleansing_flame cleansing_flame is offline
Registered User
  
 

Join Date: Nov 2007
Location: NYC
Posts: 37
Thumbs down

Quote:
Originally Posted by ennstate View Post
I guess you want to capture the terminal session,you can make use of script command.

In your shell prompt,
Code:
 script capture-this-session.txt
man script for more info.

Thanks
Nagarajan G
Sorry, that really didn't help, it may make sense to you, but sadly not to me.
Here is my problem:

I do the command in a bash shell: history | grep "emacs"
and I get:

35 emacs new.txt
37 emacs new.txt
41 emacs new.txt
48 cd emacs/bob/
50 emacs Feb1lul.txt
62 grep emacs newbob.txt
63 grep "emacs" newbob.txt
65 history | grep emacs
85 history | grep "emacs"
107 history | grep "emacs"

I'd like to, in addition with the number and command itself, the hard directory. so this is how i'd like to view history

35 emacs new.txt /name/sub_dir/new.txt
37 emacs new.txt *
41 emacs new.txt *
48 cd emacs/bob/ /emacs/bob
50 emacs Feb1lul.txt /emacs/work.../Feb1lul.txt
and so on
62 grep emacs newbob.txt
63 grep "emacs" newbob.txt
65 history | grep emacs
85 history | grep "emacs"
107 history | grep "emacs"


any help appreciated
Sponsored Links
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:33 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