Basic Linux Commands Flashcards

Learn about some basic linux commands

1
Q

Which command list directory contents?

A

ls

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

What is cd command for?

A

Changes the current directory

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

Which command displays the present working directory?

A

pwd

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

What is cat command for?

A

Concatenates and displays file contents

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

Which command displays arguments to the screen?

A

echo

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

What is man command for?

A

For displaying the documentation of a command

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

Which command clears the content shown in the shell?

A

clear

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

How do we navigate when using the man command?

A
Enter -> Move down one line
Space -> Move down one page
g -> Move to the top of the page
G -> Move to the bottom of the page
q -> Quit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which command is use to locate where another command resides?

A

which / whereis

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

How can we see the content of an environment variable?

A

echo $ENV_NAME /

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

Which command is use to create a directory?

A

mkdir

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

Which command is use to remove a directory?

A

rmdir

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

What is the touch command for?

A

creating files or changing the modification date of existing ones.

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

How can we create files with cat?

A

cat > filename (you write something or just CTRL+C, and the file is created)

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

How can we see hidden files with ls?

A

ls -l or ll which is a common alias in Linux systems

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