How to get command history with timestamp ?

how to get command history with timestamp ?

If you are using bash:
HISTTIMEFORMAT If this variable is set and not null, its value is used as a format string for strftime(3) to print the time stamp associated with each history entry displayed by the history builtin. If this variable is set, time stamps are written to the history file so they may be preserved across shell sessions.
[SunOS 5.10/bash] [email protected]:/etc/ftpd
# HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
    1  Aug/08 - 19:07:52 chmod a+rwx /root
    2  Aug/08 - 19:07:52 ll /
    3  Aug/08 - 19:07:52 tail -f /root/mylog.log
    4  Aug/08 - 19:07:52 vi /usr/dt/bin/Xsession
    5  Aug/08 - 19:07:52 cat /root/mylog.log
    6  Aug/08 - 19:07:52 ls /export/home/p661210/.dt
    7  Aug/08 - 19:07:52 ls -la  /export/home/p661210/.dt
    8  Aug/08 - 19:07:52 cat  /export/home/p661210/.dt/errorlog
    9  Aug/08 - 19:07:52 vi /usr/dt/config/C/sys.dtwmrc
   10  Aug/08 - 19:07:52 ls
   11  Aug/08 - 19:07:52 cat Xresources.jds
   12  Aug/08 - 19:07:52 vi /usr/dt
[SunOS 5.10/bash] [email protected]:/etc/ftpd
[SunOS 5.8/bash] root@wgls03:/root
# HISTTIMEFORMAT="%h/%m - %H:%M:%S ";export HISTTIMEFORMAT;history
    1  Jul/07 - 09:02:21 vi /etc/vfstab
    2  Jul/07 - 09:02:21 mount /store
    3  Jul/07 - 09:02:21 cd /store/bnz
    4  Jul/07 - 09:02:21 ls
    5  Jul/07 - 09:02:21 ./BNZ_installBaseSoftware
    6  Jul/07 - 09:02:21 find /usr -name gunzipCheers,
Andreas

Similar Messages

  • How to get spool along with e-mail or FAX

    Hi,
    I have a requirement where i have to produce a spool even i go for e-mail or FAX option when the script is triggered.
    I am using a standard program where it is coded to have either of the option. i.e. either we have to go for a printer or e-mail or FAX.
    Could any one suggest me how to get spool along with e-mail or FAX option.
    Thanks in advance.

    Hi,
    check this:-[http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm]
    hope u'll get some idea.
    Regards,
    Sneha.

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Urgent: How To Get Vendor History Report

    Hi Sap Techies,
    Please can Any one help me how To Get Vendor History Report and Which Transaction Code I have To use or Do i Need to write any Programs For that
    Moderator: Please, search before posting

    Dear,
    What type of history you want for Vendor, you want list of Vendor or you want transaction data for Vendor
    For Vendor transaction use FBL1N and for Vendor List you can use S_ALR_87012086
    Hope it helps!!
    Br,Vivek

  • How to get the itunes with those 3 colored buttons on top left corner ????ner ???

    Please help [humble request] ----
    I have 3 problems can u please help me out --
    1) How to get the itunes with the 3 colored buttons (i'm new to apple ,just 8 days so i dont know much stuff) on top left corner ,i've downloaded thrice from apple's site directly i everytime got the same sort of itunes with 'File' ,'Edit' ,'View' ,'Controls' ,'Store' ,'Adanced' ,'Help' on the top ,and also whenever i open the itunes store (in this itunes) only the app store opens ,now music albums ,movies ,tv shows nothing !!
    2) I dont know how to import video files from the computer to itunes
    3)i bought an app [fifa 11] ,n downloaded another 1 [contract killer] {ive deleted them and downloaded them thrice ,and they dont sync to my itouch it shows error (0xE800004C)
    Please please please help me im getting worried and frustrated
    please help me out with this

    but illaass
    i asked 2 of my frnds both of them have windows n not mac ,both of them are sayin dat they have the coloured buttons one , and i asked them dat how to access the itunes music store they said that when they kliked d itunes store option in the left side a screen appears where 6 -7 categories are there which are music store ,app store ,podcasts ,movies ,tv shows etc . bt when i open it it only shows d app store ,and on the bar only 4 options are ther the home icon , app store , podcasts and itunes u ,and when i klik movies ,tv shows on the left side ,there is an option "browse for movies in the itunes store" i klik it and only the app store opens and nothing else .
    and thanks now i know how to import videos
    and sigma 1337 ,
    ive downloaded the apps 4 -5 times now , still d same error mssg it comes like dis :-
    " Some of the apps in your iTunes library were not installed on the ipod "Shomik's ipod" because one or more errors occurred "
    please help me  im gettin frustrated

  • How to get the table with no. of records after filter in webdynpro

    Dear Gurus,
    How to get the table with no. of records after filter in webdynpro?
    Thanks in advance.
    Sankar

    Hello Sankar,
    Please explain your requirement clearly so that we can help you easily.
    To get the table records from your context node use method get_static_attributes_table()
    data lo_nd_mynode       type ref to if_wd_context_node. 
    data lt_atrributes_table  type wd_this->elements_mynode. 
    lo_nd_mynode = wd_context->get_child_node( name = wd_this->wdctx_mynode ). 
    lo_nd_mynode->get_static_attributes_table( importing table = lt_atrributes_table ). 
    Note: You should have already defined your context node as a Dictionary Structure.
    BR,
    RAM

  • I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How to get  Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES

    Hi ,
    how to get Unapplied Amount with SQL or API in AR/ORACLE RECEIVABLES.
    who can help me ? Thank you very much !

    i get it from private API.
    SELECT SUM(decode(ra.status, 'UNAPP', nvl(ra.amount_applied, 0), 0)) unapplied_amount
    FROM ar_receivable_applications ra
    WHERE ra.cash_receipt_id = 1820
    AND ra.status IN ('UNAPP', 'ACTIVITY')

  • How to get ALV Display with First column alone in sort

    How to get ALV Display with First column alone in sort

    HI,
    You can build Internal Table and send this to the parameter "IT_SORT".
    eg:
    "the sorting Internal Table structure is as whown below.
    DATA:  t_sort_info type slis_t_sortinfo_alv.
    "Build the Sort Internal Table
      t_sort_info-fieldname = 'CARRID'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
      t_sort_info-fieldname = 'FLDATE'.
      t_sort_info-subtot = 'X'.
      append t_sort_info.
    Then pass this "IT_SORT_INFO" table to the Function module "Reuse_alv_*". (Note send the body of the Internal table only like "<b>IT_SORT = IT_SORT_INFO[]</b>".
    Here i am making ALV output sorted on CARRID & FLDATE.
    You can specify only the First Column name for sorting.
    Regards,
    Manju
    Message was edited by:
            MANJUNATHA KS

  • How to get mpeg streamclip with mpeg 2 to work on Leopard and for fcp x?

    How to get mpeg streamclip with mpeg 2 to work on macbook with Leopard and VOB files?  Goal is to import into FCP X.
    mpeg used to download effectively and for free with fcp 7 but apparently not the case with fcp x.

    You need the MPEG-2 playback component. This is described in detail on the Squared5 web site.

  • How to get in touch with customer service?

    How to get in touch with customer service? Twice I had a chat and I would get an answer in a few days. Never heard a thing! I need an invoice for my book-keeping but I can't download it. It says: get in touch with the customer service. But I chatted for 2 times, tried to phone, They won't answer the phone. Where is the customer service!!!!!!!!!

    Hi Regine43b,
    Please refer to the following link for help with your monthly invoice: http://helpx.adobe.com/x-productkb/policy-pricing/print-creative-cloud-receipt.html
    If in case you still face issues, please contact support @ https://helpx.adobe.com/contact
    Regards,
    Sheena.

  • How to get QTP11 work with FF17. Unable to get Quicktest Proffessional11 plugin

    How to get QTP11 work with FF17. I have already installed Patch_090 and 0122.
    Unable to get Quicktest Proffessional11 plugin even after creating temp directory, into FF “extensions” directory.
    Please help

    If I may ask is there a recommended version of Firefox for the extension? [http://www.qatutorial.com/files/QTP_Install_Guide.pdf] is all I could find on how to install the software, is this the right add on?

  • How i get old history of record

    hi master
    sir
    My need is how I get the record insert, change, delete date and data
    Such as I insert record
    Acid date amount
    1012 01-12-2006 45824
    user change this record after week but not change the date change only acid and amount
    Acid date amount
    2312 01-12-2006 428276
    how I get information when user change and what old data
    2.
    which record user delete and when he delete my management need full history of data activities
    please give me idea how I get old history
    thank’s
    aamir

    Yes. Oracle does keep track of records but in a different way. It saves the redo information in redo logs so that it can recover the database in case of crash.
    It also keeps undo information in separate tablespace in case you rollback your transaction.
    But... this is not what I would call maintaining history.
    Moving ahead, these redo logs are archived to another location if you have archiving enabled.
    You can use log miner to mine through these archived logs but I doubt if any human would have patience to go through all those archive logs that are generated frequently, just to track the updates/deletes done.
    For me, adding a trigger is much simpler.

  • How do I save browser and download history with timestamps?

    I want to be able to have access to and be able to export all my browser and download history on Firefox with timestamps. From the looks of it, Firefox doesn't place permanent time-stamps on browser history, and begins removing download data from the main download window after it reaches a certain volume. I'm mainly interested in knowing whether I can retrieve and export history and/or download data which is months old for forensic reasons. Basically, I just want to have a day-by-day breakdown of the sites I visited over the last year on Firefox instead of a month-by-month one and '6 months or older' pile.
    It would be nice if someone could clarify whether or not Firefox supports or can be made to support any of this, and if months-old browser history still has original time data associated with it that I can use to categorize it day-by-day.

    You can open the downloads.sqlite file in a program or extension that can handle SQLite database files.
    * SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    # Open Profile Directory -> XXX.sqlite -> Go
    # Hit the Execute SQL tab
    # Use a Select like this:
    <pre><nowiki>SELECT datetime(startTime/1000000,'unixepoch') AS startTime,name,source AS url,target,currBytes AS bytes,((endTime-startTime)/1e6) AS time,currBytes/((endTime-startTime)/1e6) AS speed,mimeType
    FROM moz_downloads
    ORDER By startTime DESC
    </nowiki></pre>
    If you need more (or less) data then add open the XXX table to see the names of the available columns and add them to (or remove them from) the SELECT line separated by commas.

  • How to get cluster name with c++ API?

    Hi everyone,
    I want to get cluster name with c++ API, do you know how to do that?
    Thanks very much!!!
    Guangyin

    937347 wrote:
    Hi Robert,
    For Java, we can get the cluster name like this:
    cache.getCacheService.getCluster().getClusterName(),
    for c++, just as you said, do you mean that i can try to get cluster name like this:
    Sting::View name = cache->getCacheService()->getInfo()->getServiceName();
    InvocationService::handle invocation = cast<InvocationService::handle>(CacheFactory::getService(name));
    String clusterName = invocation->getInfo()->getServiceName();
    But i can not get the right result.
    I know little about how to use InvocationService, could you give me example?
    Thanks very much!!!
    GuangyinHi Guangyin,
    I do not know the C++ API, I never used it, but what you wrote definitely does not look right.
    InvocationService is a way to send arbitrary Java logic (you need to write both the Java logic and a C++ counterpart class, the C++ class will serialize itself with POF and the Java class will deserialize the same data appropriately) as a command to the cluster via the TCP*Extend connection and the command would execute on the proxy node and thus it would have access to the cluster itself.
    You probably should start with the documentation of the Coherence*Extend C++ API documentation for samples.
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/toc.htm
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/cpp_part.htm#CHDHCIEJ
    Best regards,
    Robert

Maybe you are looking for

  • Problem in assigning Chart of Dep to Co. Code

    Hi, I'm not able to assign Chart of Dep to Co. Code (T Code : OAOB). Every time I'm getting the following message:- <i>"Inconsistency between FI company code VIKI and chart of deprec. VIKI"</i> Please help. Regards, Vikas Malhotra

  • How do I save an older document to pages '09 so I can open it in the versions of pages?

    How do I save an older document to pages '09 so I can open it in the versions of pages?

  • Search/Filter a Picture Library with an External Content Type

    We have the need to manage 50,000-100,000 images of ODOT Bridges. Currently, they are added to a SharePoint 2010 Picture Library that is associated to an External Content Type. To handle list threshold and performance issues, we are using folders. Th

  • ABAP Query transport request

    Hi All, We created an ABAP Query report for Transfer order address and it is system generated report. When I am trying to find the version management but is it showing no version found. Even I have created TR manunally and imported to quality system,

  • Hdiutil: create failed - error -5341

    Hi,     I have this error on 2 Macosx Mavericks machines:    hdiutil: create failed - error -5341 This happens when I create an image larger than 100MB. Here the srcfolder is 120MB: $ hdiutil create  -srcfolder myapp.app myapp.dmg hdiutil: create fai