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.

A

()

21
Q

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

A

True

22
Q

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

A

True

23
Q

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

A

Rpm -qi

24
Q

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

A

True

25
Q

Which rpm command will display all associated files with an installed software program?

A

Rpm -ql

26
Q

What command will check if a tar program is compatible with your system and installed software?

A

./configure

27
Q

Debian uses ______ to manage dpkg software packages.

A

apt (aptget)

28
Q

GPG stands for:

A

GNU privacy guard

29
Q

Which rpm command will display the rpm package a file was installed from?

A

Rpm -qf

30
Q

T/F: Using the dnf list command will display only the locally installed packages.

A

False

31
Q

T/F: Dnf does not support wildcards.

A

False

32
Q

T/F: dnf supports searching software repositories based on keywords.

A

True

33
Q

DNF stands for:

A

Dandified yum

34
Q

Which rpm command is the same as using dbf remove?

A

Rpm -e

35
Q

T/F: Dnf is a newer replacement for rpm.

A

False

36
Q

RPM stands for:

A

RPM package manager

37
Q

T/F: The rpm –rebuilddb can repair a corrupt rpm database.

A

True

38
Q

Extract tar to other location

A

-C
Capital C

39
Q

What dnf command will remove obsolete packages, update current, install new?

A

Dnf upgrade

40
Q

T/F: Tar-based installs can be managed with rpm.

A

True

41
Q

Where is the recommended tar install location?

A

/opt

42
Q

What’s the main configuration file for dnf?

A

/etc/dnf/dnf.conf
It has two “dnf”s.

43
Q

What is the filename extension for dnf repos?

A

.repo

44
Q

PMS keeps track with a:

A

Database

45
Q

T/F: no graphical frontend for dnf.

A

False

46
Q

What rpm command will install a package or update a package if it’s already installed?

A

Rpm -Uvh

47
Q

PMS stands for:

A

Package management system

48
Q

By default, dnf only supports RH/Fedora repos.

A

True

49
Q

What command will copy a tar program to it’s proper or specified location?

A

Make install