Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Needing to compare two text files, I naturally thought to use fc and then I discovered that on ubuntu it is diff that would be the command. man fc indicates that the manual has no fc.

Strangely when I use 'fc' I end up in a GNU nano window and the text in the nano editor is "man fc" which is a recently issued command. Why is this happening?

share|improve this question
up vote 2 down vote accepted

Because in the Ubuntu manpages it says:

fc - process the command history list

The fc utility shall list, or shall edit and re-execute, commands previously entered to an interactive sh.

So that would explain why it shows you man fc, because you entered it before trying fc only.

Basically the command allows you to re-edit previously issued commands. For editing it uses your default editor, which apparently is set to nano.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.