shells Flashcards

1
Q

name some shells

A

Bash, Dash, KornShell, tcsh, Z shell

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

display current shell on Cent OS

A

echo $SHELL

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

display current shell on Ubuntu

A

uname -a to provide all system information such as processor type, OS name

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

what does the type command do

A

lets you know if a command is internal or external

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

environmental variables

A

track specific system info, such as name of user logged onto shell, default home dir, search path shell uses to find exe programs

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

set

A

displays active environmental variables

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

$PATH

A

colon separated list of directories to search for commands

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

PS1

A

shell prompt

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

subshell / childshell

A

created when you perform certain tasks, such as running a shell script.

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

echo $SHLVL

A

any level higher than 1 indicates you are in a subshell

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

man

A

documentation regarding a command’s purpose, various options, syntax, etc

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

history

A

view recent commands

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

how to reexecute commands in command history?

A

put an exclamation mark prior to the number

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