Basic Linux Command Example: 


Get help on Linux history command.


   Linux history command is use to display command history list or manipulate the command history list on Linux system.  The Linux history command is one of bash shell built in command.  The command below show how to get get help on Linux history command, this help show information on how to use the Linux history command, the history command options and the arguments that can be use with Linux history command.


Get Linux history command help


  Execute help command and the name of Linux command that we want the help file, the example below we execute help command to get help for history command.


history linux command

[linux@fedora11 ~]$ help history

history: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]

    Display or manipulate the history list.


    Display the history list with line numbers, prefixing each modified

    entry with a `*'.  An argument of N lists only the last N entries.



      -c        clear the history list by deleting all of the entries

      -d offset delete the history entry at offset OFFSET.


      -a        append history lines from this session to the history file

      -n        read all history lines not already read from the history file

      -r        read the history file and append the contents to the history


      -w        write the current history to the history file

        and append them to the history list


      -p        perform history expansion on each ARG and display the result

        without storing it in the history list

      -s        append the ARGs to the history list as a single entry


    If FILENAME is given, it is used as the history file.  Otherwise,

    if $HISTFILE has a value, that is used, else ~/.bash_history.


    If the $HISTTIMEFORMAT 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 displayed history entry.  No time stamps are printed otherwise.


    Exit Status:

    Returns success unless an invalid option is given or an error occurs.

[linux@fedora11 ~]$


Keywords: history, history command, linux history command, history linux command, history help, help history, command history help, help history command