Basic Bash Script Commands Flashcards

1
Q

What single command allows you to change to another directory?

A

cd

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

What single command lets you change the current users password?

A

passwd

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

What command displays the file’s type?

A

file

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

What command lists the content of a textfile?

A

cat

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

What command displays the present working directory?

A

pwd

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

There are two commands to close the current session, what are they?

A

exit or logout

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

There are man pages to help you with commands, what command gives you man help on a command?

A

man

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

You can get information on commands, what command gives you info help on a command?

A

info

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

What command searches for a keyword in the man pages, helpful for finding the appropriate command when you don’t know it’s name?

A

apropos

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

What single command gives you a list of the current directories contents?

A

ls

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