Work on the command line %% Flashcards

1
Q

What is the shell

A

Command line environment that you work in on a Linux system

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

What are environment Variables

A

Settings that dictate functionality and locations for various purposes

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

What is a Bash function

A

Users can create their own custom functions within Bash

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

What does the command env do

A

displays env variables

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

What does the command echo do

A

prints value of a variable to the screen

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

What does the command set do

A

Displays shell settings or shell variables for the session

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

What does the command unset do

A

removes a variable or custom bash function

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

What does the command shopt do

A

Displays shell options and their current settings

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

What does the command export do

A

exports a variable to the current shell and any new shells started from the current shell

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

What doe the command pwd do

A

Displays the full path to the current working directory

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

What does the command which do

A

Used to locate an app file that is located within the users PATH

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

what does the command type do

A

Used to determine if something is a function, file, alias, built-in, or keyword

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

What are weak quotes

A

or double quotes will expand variables but characters used for path substitution or for pattern matching will not be expanded

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

What are strong quotes

A

inside strong or single quotes nothing is interpreted

EX. echo $PATH will print $PATH to the screen

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

What does the history command do

A

Shows the most recently ran commands

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

What is .bash_history

A

File located in the users home directory that contains the previously run commands

17
Q

What is HISTFILESIZE

A

env variable that determines how many lines the .bash_history file will contain

18
Q

What is a manual page

A

Built in manual pages for commands, configuration files, and system administrator tasks

19
Q

What does the man command do

A

opens the manual page for a specified command

20
Q

What does man -k do

A

Used to search the man pages for a specific keyword

21
Q

what does the command apropos do

A

Links to the man -k command

22
Q

What does the man[section number] do

A

Open a particular section number for a specified command