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
Q

What is the main bootloader for Linux?

A

GRUB

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

What is GRUB?

A

GRUB (GRand Unified Bootloader) is a boot loader package that allows you to boot multiple operating systems.

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

What is the command for viewing the manual on a command?

A

man

28
Q

What is the command to install Ubuntu packages?

A

apt-get install

29
Q

What is the command to install Debian packages

A

apt install

30
Q

Where is the password has found?

A

/etc/shadow file is where secure user account information is stored

31
Q

The website where we download linux packages from is called a

A

Repository

32
Q

What the file type for a bundled software package?

A

tar

33
Q

What does the pipes symbol do “ | “?

A

Sends the output of one program to the input of another

34
Q

What commands are used to find documentation for a command?

A

man and info

35
Q

What command is used to display the contents of text files?

A

cat

36
Q

What directory stores all users folders and files.

A

/home

37
Q

What command to remove a directory in Linux?

A

rmdir

38
Q

What directory are log files stored in?

A

/var/log

39
Q

What is the command to add a user account to your system using the CLI.

A

useradd

40
Q

What does the /etc/shadow file show?

A

The file contains passwords for each user encrypted with one-way keys.

41
Q

What does the /etc/passwd show?

A

The file includes a list of all users in the system

42
Q

What nano?

A

A text editor using a command line interface.

43
Q

What command displays information such as the IP address, network card name, protocol support and subnet mask?

A

ifconfig also used to turn the network on or off

44
Q

What is the root UID?

A

Root will always be UID (0)

45
Q

What command request a new IP address?

A

dhclient

46
Q

What command releases an IP address received from a DHCP server?

A

dhclient -r

47
Q

What command allows configuration of a custom port (the default port is
68 UDP).?

A

dhclient -p

48
Q

What is one of the easiest ways of displaying your routing table?

A

route command

49
Q

What command will show all the network connections on a host?

A

netstat

50
Q

What command updates package lists for upgrades Checks to see if the newest version is installed

A

apt update

51
Q

Updates are downloaded to which directory?

A

/var/cache/apt/archives directory

52
Q

Which default ports does Apache run on?

A

The service operates by default on port 80 for HTTP and needs to be configured to use port 443 for HTTPS.

53
Q

Where are Apache web files located?

A

The web files are located by default in /var/www/html/index.html

54
Q

Where are source list files for updates located?

A

/etc/apt directory

55
Q

What is Iptables?

A

Firewall utility pre-installed in Linux. Contains no GUI

56
Q

What is Samba?

A

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
Q

What is the default shell in Linux?

A

BASH

58
Q

This commands shuts down the computer in 15 minutes?

A

sudo shutdown -h +15

59
Q

Which commands restarts the computer right now?

A

sudo shutdown -r now

60
Q

What does a shell program do?

A

It is what executes the commands you enter into it

61
Q

Where do new configuration files go?

A

/etc

62
Q

What the etc/skel directory is used for?

A

Used as a template for a new user’s home directory.

63
Q

What is the command to execute a script file?

A

!/bin/bash Shebang

64
Q

What is the Linux hierarchy?

A

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
Q

What doe the dual pipe do? ||

A

is an OR statement

66
Q

What does the dual ampersand do?

A

is an AND statement

67
Q

What does a single pipe filter

A

(| ) A pipe can pass the standard output of one operation to the standa