Linux commands Flashcards

1
Q

pwd command

A

PWD - Print Working Directory

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

ls command

A

ls - list

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

cd command

A

cd - change directory

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

What is “cd ..” used for?

A

“cd ..” is equivalent to “Go Back”

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

What is the name of “/ “ location?

A

The root directory

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

What is “clear” used for?

A

To clear the terminal.

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

Tell me something about the command “whoami”.

A

“whoami” shows the user name.

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

What is the shell?

A

The shell is the Linux command line interpreter.

The shell is the user interface we use to interact with the operating system, the Linux kernel.

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

What is the terminal (terminal emulator) ?

A

Terminal is what we use to interact with Shell.

A terminal is a physical device keyboard and monitor. It’s a text input and output environment. It is a program that allows us to enter commands that the computer processes.

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

What is Bash?

A

Bash is a Shell.

It’s one of the most widely used shells.

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

What is a command to find out what shell we are using? What does it stand for?

A

ps - process status

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

What is a powershell?

A

Powershell is Windows (by Microsoft).

Powershell runs on Linux.

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

List other names we can call a terminal.

A

Bash, terminal, shell, console.

Super fancy: “this is a terminal emulator and we are using a bash shell”.

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

Describe what is happening in the following:

-[htb-ac546691@pwnbox-base]-[/]

A

htb-ac546691 — my user account. Who I am.

@pwnbox-base — the hostname of the Linux server I am using.

[/] – this is my working directory. Where I am currently.

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

What is [*]$ for in the terminal?

A

$ means that I am logged in as a user.

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

What is [*]# in the bash?

A

Pound sign # means that I’m logged in as the root.

You have the godlike power now.

17
Q

What is “man” command?

A

Whenever you need help type in man [and the command name] it will give you detailed explanation.

18
Q

How can you get some help with a specific command?

A

Let’s say we want to use ‘uname’.

We can type in ‘uname –h’.

Most commands will also have -h ‘command -h’.

19
Q

What if you want to do something but you don’t remember the command itself?

A

apropos [type what you want to do here]