Bookmark this page

Quiz: Executing Commands Using the Bash Shell

Choose the correct answers to the following questions:

  1. 1.

    Which Bash shortcut or command jumps to the beginning of the previous word on the command line?

    A

    Pressing Ctrl+LeftArrow

    B

    Pressing Ctrl+K

    C

    Pressing Ctrl+A

    D

    !string

    E

    !number

  2. 2.

    Which Bash shortcut or command separates commands on the same line?

    A

    Pressing Tab

    B

    history

    C

    ;

    D

    !string

    E

    Pressing Esc+.

  3. 3.

    Which Bash shortcut or command is used to clear characters from the cursor to the end of the command line?

    A

    Pressing Ctrl+LeftArrow

    B

    Pressing Ctrl+K

    C

    Pressing Ctrl+A

    D

    ;

    E

    Pressing Esc+.

  4. 4.

    Which Bash shortcut or command is used to re-execute a recent command by matching the command name?

    A

    Pressing Tab

    B

    !number

    C

    !string

    D

    history

    E

    Pressing Esc+.

  5. 5.

    Which Bash shortcut or command is used to complete commands, file names, and options?

    A

    ;

    B

    !number

    C

    history

    D

    Pressing Tab

    E

    Pressing Esc+.

  6. 6.

    Which Bash shortcut or command re-executes a specific command in the history list?

    A

    Pressing Tab

    B

    !number

    C

    !string

    D

    history

    E

    Pressing Esc+.

  7. 7.

    Which Bash shortcut or command jumps to the beginning of the command line?

    A

    !number

    B

    !string

    C

    Pressing Ctrl+LeftArrow

    D

    Pressing Ctrl+K

    E

    Pressing Ctrl+A

  8. 8.

    Which Bash shortcut or command displays the list of previous commands?

    A

    Pressing Tab

    B

    !string

    C

    !number

    D

    history

    E

    Pressing Esc+.

  9. 9.

    Which Bash shortcut or command copies the last argument of previous commands?

    A

    Pressing Ctrl+K

    B

    Pressing Ctrl+A

    C

    !number

    D

    Pressing Esc+.

Revision: rh124-8.2-df5a585