Linux commands Flashcards
pwd command
PWD - Print Working Directory
ls command
ls - list
cd command
cd - change directory
What is “cd ..” used for?
“cd ..” is equivalent to “Go Back”
What is the name of “/ “ location?
The root directory
What is “clear” used for?
To clear the terminal.
Tell me something about the command “whoami”.
“whoami” shows the user name.
What is the shell?
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.
What is the terminal (terminal emulator) ?
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.
What is Bash?
Bash is a Shell.
It’s one of the most widely used shells.
What is a command to find out what shell we are using? What does it stand for?
ps - process status
What is a powershell?
Powershell is Windows (by Microsoft).
Powershell runs on Linux.
List other names we can call a terminal.
Bash, terminal, shell, console.
Super fancy: “this is a terminal emulator and we are using a bash shell”.
Describe what is happening in the following:
-[htb-ac546691@pwnbox-base]-[/]
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.
What is [*]$ for in the terminal?
$ means that I am logged in as a user.