Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.