Work on the command line Flashcards

1
Q

What is the symbolic link to the system’s default shell?

A

/bin/sh

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

What shortcut command will change to your home directory?

A

cd ~

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

What command show the working directory?

A

pwd

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

What command runs an external program you specify and replaces the shell?

A

exec

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

What command shows how long a command took to run?

A

time

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

What command will terminate a logged in shell?

A

logout

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

What command will terminate any shell?

A

exit

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

What command show the path environment variable?

A

echo $PATH

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

What key sequence will search through the BASH history?

A

Ctrl + R

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

What command shows the last 500 commands entered?

A

history

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

What are the two global bash configuration files and where are they?

A

/etc/bash.bashrc and /etc/profile

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

What command will set an environment variable?

A

export Env_Var=value

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

What command will show all the environment variables?

A

env

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

What command will delete an environment variable?

A

unset

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

What command will list all shell variables, environmental variables, local variables, and shell functions?

A

set

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