Get help on Linux fc Command.


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


Get Linux fc command help


  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for fc command using the manpage format.

fc linux command

[linux@fedora11 ~]$ help -m fc


    fc - Display or execute commands from the history list.



    fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]



    Display or execute commands from the history list.


    fc is used to list or edit and re-execute commands from the history list.

    FIRST and LAST can be numbers specifying the range, or FIRST can be a

    string, which means the most recent command beginning with that




      -e ENAME  select which editor to use.  Default is FCEDIT, then EDITOR,

                then vi

      -l        list lines instead of editing

      -n        omit line numbers when listing

      -r        reverse the order of the lines (newest listed first)


    With the `fc -s [pat=rep ...] [command]' format, COMMAND is

    re-executed after the substitution OLD=NEW is performed.


    A useful alias to use with this is r='fc -s', so that typing `r cc'

    runs the last command beginning with `cc' and typing `r' re-executes

    the last command.


    Exit Status:

    Returns success or status of executed command; non-zero if an error occurs.






    GNU bash, version 4.0.16(1)-release (i386-redhat-linux-gnu)

    Copyright (C) 2009 Free Software Foundation, Inc.

    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


[linux@fedora11 ~]$


Keywords: fc, fc command, linux fc command, fc linux command, linux command fc, fc help, help fc, command fc help, help fc command