Search Header Logo

Chapter 7. The Bash Shell

Authored by Bek Torekhan

Other

University

Used 2+ times

Chapter 7. The Bash Shell
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which file would you define to change the command prompt for yourself so that you get the custom command prompt whenever you log in?

  1. /etc/profile

  • ~/.bash_profile

  1. ~/.bashrc

  1. ~/.profile

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the other name for the command line completion feature?

  1. Command expansion

  1. Path completion

  • Tab completion

  1. Auto-fill

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A common use of which character is to receive the output of one command and pass it along to the next command as an input?

  • Pipe (|)

  1. Ampersand (&)

  1. Semicolon (;)

  1. Greater-than (>)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where are most, if not all, privileged commands stored?

  1. /bin

  1. /usr/bin

  • /usr/sbin

  1. /etc

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To delete the “?” file only among other one-letter files in your home directory, which command would you run?

  • rm \?

  1. rm ?

  1. rm '?'

  1. rm *

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the command ls /cdr /usr > output do, assuming /cdr does not exist?

  • Redirect ls /usr output to the specified file and ls /cdr (error) to the terminal

  1. Redirect both ls /usr and ls /cdr output to the specified file

  1. Only list the contents of /cdr

  1. List both /usr and /cdr to the terminal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command allows a user to define shortcuts to lengthy commands?

  1. shortcut

link

  • alias

blind

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?