Displaying the command history

Article:HOWTO60450  |  Created: 2011-10-20  |  Updated: 2012-02-03  |  Article URL http://www.symantec.com/docs/HOWTO60450
Article Type
How To



Displaying the command history

The history command displays the commands that you have executed. You can also view commands executed by another user.

You must be logged in to the system to view the command history.

To display command history

  • To display the command history, enter the following:

    SFS> history [username] [number_of_lines]


    Displays the command history for a particular user.


    Displays the number of lines of history you want to view.

    For example:

    SFS> history master 7
    Username      : master
    Privileges    : Master
    Time             Status   Message                   Command       
    02-12-2009 11:09 Success  NFS> server status        (server status)   
    02-12-2009 11:10 Success  NFS> server start         (server start )   
    02-12-2009 11:19 Success  NFS> server stop          (server stop  )   
    02-12-2009 11:28 Success  NFS> fs show              (show fs      )    
    02-12-2009 15:00 SUCCESS  Disk list stats completed (disk list    )    
    02-12-2009 15:31 Success  Network shows success     (show         )   
    02-12-2009 15:49 Success  Network shows success     (show         )  

    The information displayed from using the history command is:


    Displays the time stamp as MM-DD-YYYY HH:MM


    Displays the status of the command as Success, Error, or Warning.


    Displays the command description.


    Displays the actual commands that were executed by you or another user.

Legacy ID


Article URL http://www.symantec.com/docs/HOWTO60450

Terms of use for this information are found in Legal Notices