Linux Ch2 first half

Linux Ch2 first half

8 Qs

quiz-placeholder

Similar activities

Scare School Diaries: Welcome to Scare School by Jarrett Lerner

Scare School Diaries: Welcome to Scare School by Jarrett Lerner

1st - 5th Grade

12 Qs

CSE 08 Guess2p

CSE 08 Guess2p

KG - University

10 Qs

Test 2 systemy operacyjne

Test 2 systemy operacyjne

9th - 12th Grade

12 Qs

Sample Google form for showing autofill working

Sample Google form for showing autofill working

KG - University

9 Qs

SINT: Quiz 2

SINT: Quiz 2

KG - University

8 Qs

Linux Ch2 first half

Linux Ch2 first half

Assessment

Quiz

others

Hard

Created by

Angel Martinez

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You need a brief description of what the whoami command does, but you've forgotten its details. Which of the following help commands would give you a short description of the whoami
A) help -s whoami
B) help -m whoami
C) help -d whoami
D) help whoami

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands would you use to view the info node pages for the sysctrl command?
A) info "sysctrl"
B) info -k sysctrl
C) info -w sysctrl
D) info sysctrl

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

You want to ensure that an alias remains persistent across all reboots of your Linux server. In which of the following files should you place the alias command to make it persistent?
A) /home/user/.bashrc
B) /etc/profile
C) /home/user/.bash_profile
D) /etc/resolv.conf
E) /etc/securetty

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following actions correctly defines a persistent alias?
A) Adding the alias to the $ALIAS environment variable
B) Using the alias command with the -P option at the shell prompt
C) Adding the alias to the /etc/default/alias.conf file
D) Adding the alias command to the appropriate shell configuration file

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Anna, a system administrator, wants to set an environment variable that is available every time she logs in. Currently, she has to set the variable manually each time a terminal is opened. Which of the following files should Anna modify to make the variable a global environment variable? (Select two.)
A) ~/.bash_history
B) ~/.bash_logout
C) ~/.bash_profile
D) /etc/profile
E) ~/.bashrc

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands displays the value of the LANG environmental variable currently set for the language the operating system uses?
echo %LANG
echo %LANG%
echo $LANG
echo LANG

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You want a specific entry to be written to a log file each time you log in, and this action should only apply to your account. You are using the bash shell. Which of the following configuration files is the BEST to modify to achieve this?
A) .sh
B) .profile
C) .bashrc
D) /etc/profile

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A bash script developer wants to capture the output of a script named myscript into a file called testfile.txt. Which of the following commands will record the output of the script into testfile.txt?
A) myscript | testfile.txt
B) myscript | echo | testfile.txt
C) echo myscript >> testfile.txt
D) myscript >> testfile.txt