Find the answer to your Linux question:
Results 1 to 2 of 2
Use the fc command to show every command you have typed since the most recent ps command, and only those commands. Use the fc command with the -s option to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    9

    Help with fc and designator !


    Use the fc command to show every command you have typed since the most recent ps command, and only those commands.

    Use the fc command with the -s option to re-execute that ps command.

    Use ! to reference the most recent df command you did. Do not use the history number.

    Use ! to redo the sixth preceding command.

    Use ! to redo the most recent command that contained the letters wd.

    I need help with 5 of these questions. I know they're "easy" but I can't seem to find anything about it from my book.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Hi,

    Is this a homework question? Per the forum rules, that is not allowed.

    A suggestion on your question: read the bash man page (command in a terminal is man bash) and read up on the fc built-in command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •