9-12 Flashcards

1
Q

Which two commands can set shell features on and off?

A

Set
Shopt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What file sets the default shell for each user?

A

/etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which set of characters can perform arithmetic operations in the shell?

A

(())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What environmentL variable sets the format/looks of the shell?

A

PS1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TF: variable $VAR=”Fred Flintstone” is a valid method

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

T/F: The $1 and $2 variables are examples of system environmental variables.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

T/F: The shell and and or boolean operators have equal precedence and are processed from left to right.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Select two commands that can display various shell variable contents.

Echo
Show
Ls
Env

A

Echo
Env

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

T/F: The BASH shell is based on the Bourne Shell from AT&T

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

_______ are simile to shell scripts, but are stored in RAM making them faster.

A

Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

T/F: The BASH shell temrinal uses the vi editor terminal control and same shortcut keys.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Linux environmental variables are typically always ________.

A

Capitalized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the PATH environmental variable contain in the Linux environment?

A

Binary file search locations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A(n) ______ is the most common method of automatically adding command options to existing commands.

A

Alias

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

T/F: Both & and | are boolean

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What characters will redirect standard command error output to another location?

A

2>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Select all the shells ininux that can be set on a users login information.

A

All

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Variable rules

A

All of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What set of characters can be used in shell commands to create, remove, or list a sequence of files
or directories with one command?

A

{}
braceexpand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Select the two sets of characters that can be used to perform command substitution.

21
Q

T/F: Dnf, by default deletes all downloaded packages after successful package installation.

22
Q

T/F: RPM files are built for a specific Linux distribution, release, and processor architecture.

23
Q

Which rpn command will display info about an installed software program?

24
Q

T/F: The dnf command will attempt to resolve software dependencies.

25
Which rpm command will display all associated files with an installed software program?
Rpm -ql
26
What command will check if a tar program is compatible with your system and installed software?
./configure
27
Debian uses ______ to manage dpkg software packages.
apt (aptget)
28
GPG stands for:
GNU privacy guard
29
Which rpm command will display the rpm package a file was installed from?
Rpm -qf
30
T/F: Using the *dnf list* command will display only the locally installed packages.
False
31
T/F: Dnf does not support wildcards.
False
32
T/F: dnf supports searching software repositories based on keywords.
True
33
DNF stands for:
Dandified yum
34
Which rpm command is the same as using dbf remove?
Rpm -e
35
T/F: Dnf is a newer replacement for rpm.
False
36
RPM stands for:
RPM package manager
37
T/F: The rpm --rebuilddb can repair a corrupt rpm database.
True
38
Extract tar to other location
-C Capital C
39
What dnf command will remove obsolete packages, update current, install new?
Dnf upgrade
40
T/F: Tar-based installs can be managed with rpm.
True
41
Where is the recommended tar install location?
/opt
42
What's the main configuration file for dnf?
/etc/dnf/dnf.conf It has two "dnf"s.
43
What is the filename extension for dnf repos?
.repo
44
PMS keeps track with a:
Database
45
T/F: no graphical frontend for dnf.
False
46
What rpm command will install a package or update a package if it's already installed?
Rpm -Uvh
47
PMS stands for:
Package management system
48
By default, dnf only supports RH/Fedora repos.
True
49
What command will copy a tar program to it's proper or specified location?
Make install