DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Replay Recent Executed Commands


  • Replay recent executed 15 commands: fc -l -15;

  • Replay recent executed 15 commands in reverse order: fc -lr -15;

  • Replay recent executed 15 commands without list number: fc -ln -15;

  • Replay recent executed commands from "man ...": fc -ln man;

  • Edit some last commands (from No.14 to No.24) and execute them: fc -e vi 14 24;

You can also use "-s" options to modify commands ant execute, see man fc for details.

  • Clear history: history -c.


Published

Jun 20, 2014

Last Updated

Jun 20, 2014

Category

Tech

Tags

  • fc 1
  • history 3
  • linux 158
  • shell 46

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor