Linux Flashcards

1
Q

True or false Kali is based on Debian?

A

True

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

True or false CentOS is based on Fedora?

A

True

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

Does Debian contain a GUI environment?

A

No, but one can be installed

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

What are the benefits of GUI?

A

GUI interface simplifies file management tasks, such as moving directories, copying and pasting files and folders, and accessing directory listings

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

What system is often used by penetration tester?

A

Kali

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

Is RHEL licensed?

A

Yes

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

What is a free application used as opposed to paying for RHEL?

A

CentOS

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

What is open-source

A

Source code published by developers and organizations so that anyone can see how the program is written, and modify and enhance the code.

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

Linux file and directory organization follows a single root inverted tree structure?

A

True

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

What command will show the directory?

A

pwd

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

What sign will show you are in root?

A

pound sign

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

What does chmod command do?

A

Command is used to change permissions for a file or directory on a Unix machine.

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

Which command would sort the results of the ls command?

A

ls | sort

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

What is the package management tool used for Red Hat distributions?

A

rpm

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

Which of the following is a graphical editor?

A

Inkscape

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

What command is used to change a password?

A

passwd

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

What does .tar stand for?

A

Tape archive, which is used to create Archive and extract the Archive files.

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

Which command list the contents of a .tar file?

A

tar -tf

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

If I wanted to delete the folder and everything in it what command would I use?

A

rm -rf *, which would recursively delete all files in the current directory, including directories within that directory.

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

What does the /etc command do?

A

/etc – text files system configuration files (used to change configuration

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

What command represents the regular user?

A

$ dollar sign

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

What command is used to create files?

A

touch command

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

What does /dev show

A

Device files

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

What is GNOME?

A

A desktop environment in Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the main bootloader for Linux?
GRUB
26
What is GRUB?
GRUB (GRand Unified Bootloader) is a boot loader package that allows you to boot multiple operating systems.
27
What is the command for viewing the manual on a command?
man
28
What is the command to install Ubuntu packages?
apt-get install
29
What is the command to install Debian packages
apt install
30
Where is the password has found?
/etc/shadow file is where secure user account information is stored
31
The website where we download linux packages from is called a
Repository
32
What the file type for a bundled software package?
tar
33
What does the pipes symbol do " | "?
Sends the output of one program to the input of another
34
What commands are used to find documentation for a command?
man and info
35
What command is used to display the contents of text files?
cat
36
What directory stores all users folders and files.
/home
37
What command to remove a directory in Linux?
rmdir
38
What directory are log files stored in?
/var/log
39
What is the command to add a user account to your system using the CLI.
useradd
40
What does the /etc/shadow file show?
The file contains passwords for each user encrypted with one-way keys.
41
What does the /etc/passwd show?
The file includes a list of all users in the system
42
What nano?
A text editor using a command line interface.
43
What command displays information such as the IP address, network card name, protocol support and subnet mask?
ifconfig also used to turn the network on or off
44
What is the root UID?
Root will always be UID (0)
45
What command request a new IP address?
dhclient
46
What command releases an IP address received from a DHCP server?
dhclient -r
47
What command allows configuration of a custom port (the default port is 68 UDP).?
dhclient -p
48
What is one of the easiest ways of displaying your routing table?
route command
49
What command will show all the network connections on a host?
netstat
50
What command updates package lists for upgrades Checks to see if the newest version is installed
apt update
51
Updates are downloaded to which directory?
/var/cache/apt/archives directory
52
Which default ports does Apache run on?
The service operates by default on port 80 for HTTP and needs to be configured to use port 443 for HTTPS.
53
Where are Apache web files located?
The web files are located by default in /var/www/html/index.html
54
Where are source list files for updates located?
/etc/apt directory
55
What is Iptables?
Firewall utility pre-installed in Linux. Contains no GUI
56
What is Samba?
Open-source software suite that allows sharing of resources and files through CIFS and SMB. Used by applications to talk to each other over the network.
57
What is the default shell in Linux?
BASH
58
This commands shuts down the computer in 15 minutes?
sudo shutdown -h +15
59
Which commands restarts the computer right now?
sudo shutdown -r now
60
What does a shell program do?
It is what executes the commands you enter into it
61
Where do new configuration files go?
/etc
62
What the etc/skel directory is used for?
Used as a template for a new user’s home directory.
63
What is the command to execute a script file?
#!/bin/bash Shebang
64
What is the Linux hierarchy?
If there is no alias looks for an alias first If there is no looks for a functional it will look for built-in Then will look for an executable file in the path
65
What doe the dual pipe do? ||
is an OR statement
66
What does the dual ampersand do?
is an AND statement
67
What does a single pipe filter
| (| ) A pipe can pass the standard output of one operation to the standa