Misc Flashcards

1
Q

Where are alert mail messages stored on red hat based systems?

A

/var/spool/mail/>user<

*file

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

What is the command to change user password expiry information?

A

chage

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

What are some desktop environments?

A

Gnome - built on gtk+ toolkit
KDE - built on qt toolkit
XFCE - built on gtk+ toolkit

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

How do you switch from a graphical to terminal environment?

A

Ctrl + Alt + FN
i.e Ctrl + Alt + F2
Alt + F1 return back to desktop

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

How do you switch between terminal environments?

A

Alt + FN

i.e Alt + F3

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

What is the configuration file location for all man pages?

A

/etc/man_db.conf

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

What are all of the man page sections?

A

1
2
3

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

What kind of distribution does Apple macOS use?

A

Apple’s macOS is a fully-qualified UNIX distribution based on BSD Unix (an operating system distributed until 1995), complemented by a large amount of proprietary code. I

t runs on hardware specifically optimized to work with Apple software. Linux can be any one of hundreds of distribution packages designed or optimized for whatever task is required. Only Microsoft Windows is based on a proprietary code base that isn’t either UNIX- or Linux-based.

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

Operating systems and software upgrades come on a periodic basis what are they called?

A

Operating systems and software upgrades come on a periodic basis, called a release cycle.

The release cycle dictates how often software is upgraded

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

What is a maintenance cycle?

A

Vendors only support older versions of software for a certain period of time before not offering any updates; this is called a maintenance cycle or life cycle.

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

What is a linux distribution comprised of?

A

A Linux distribution is a bundle of software, typically comprised of the Linux kernel, utilities, management tools, and even some application software in a package which also includes the means to update core software and install additional applications.

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

What are development packages?

A

Additionally, there are development packages where users can contribute code and submit patches for possible inclusion into new releases.

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

List three linux enterprise distributions?

A

Enterprise distributions are fewer by far, being offered mainly by Red Hat, Canonical and SUSE.

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

What is Fedora?

A

Fedora is often considered the community-oriented beta release of RedHat. Features are added and changed in the Fedora release before finding their way into the enterprise-ready RedHat distribution.

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

What is SLES?

A

SLES (SUSE Linux Enterprise Server)

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

Debian Linux releases?

A

Ubuntu

Linux Mint

17
Q

Slackware Linux releases?

A
SLS
Slackware
S.U.S.E.  (derived from slackware)
SuSE ---> SLES
SUSE
openSUSE
18
Q

Red Hat Linux releases?

A
Red Hat
Red Hat Enterprise -->
Scientific Linux
CentOS
Fedora Core
Fedora
19
Q

Which version of SUSE is free?

A

openSUSE

20
Q

What file format is Debians management system based on?

A

Debian came up with its own package management system based on the .deb file format. While Red Hat leaves non-Intel and AMD platform support to derivative projects, Debian supports many of these platforms directly.

21
Q

Why do some people use the term GNU/Linux instead of Linux alone?

A

Linux is a kernel, and many of the commands covered in this course are actually part of the GNU package. That is why some people insist on using the term GNU/Linux instead of Linux alone.

22
Q

What is the world’s most popular Linux distribution?

A

Android, sponsored by Google, is the world’s most popular Linux distribution. It is fundamentally different from its counterparts.

Android uses the Dalvik virtual machine with Linux, providing a robust platform for mobile devices such as phones and tablets. However, lacking the traditional packages that are often distributed with Linux (such as GNU and Xorg), Android is generally incompatible with desktop Linux distributions.

This incompatibility means that a Red Hat or Ubuntu user cannot download software from the Google Play store. Likewise, a terminal emulator in Android lacks many of the commands of its Linux counterparts. It is possible, however, to use BusyBox with Android to enable most commands to work.

23
Q

What is LFS?

A

Linux From Scratch (LFS) is more of a learning tool than a working distribution. This project consists of an online book, and source code, with “step-by-step instructions” for building a custom Linux distribution from the source code up.

This “distribution” embodies the true spirit of Linux whereby users can modify any aspect of the operating system and learn how all the pieces work together. It’s also a good starting point for anyone who needs specialized functionality or an ultra-compact build for an embedded system project.

24
Q

Explain what embedded systems are?

A

Today we call these embedded systems because they are designed to do a specific task on hardware optimized for only that purpose. These systems encompass a tremendous diversity of devices that are used today, from cell phones to smart TVs and appliances, to remote monitoring systems for pipelines and factories.

25
Q

What command would you use to display all the programs running in the background

A

Use the ps command to display all the programs running in the background:
[analyst@secOps ~]$ sudo ps –elf

26
Q

What command would you use to show process hierarchy?

A

In Linux, programs can also call other programs.

The ps command can also be used to display such process hierarchy.

Use –ejH options to display the currently running process tree after starting the nginx webserver with elevated privileges.

Note: The process information for the nginx service is highlighted. Your PID values will be different.

[analyst@secOps ~]$ sudo /usr/sbin/nginx
[analyst@secOps ~]$ sudo ps –ejH

27
Q

What is the task performed by a server called?

A

As mentioned before, servers are essentially programs, often started by the system itself at boot time.
The task performed by a server is called a service. In such fashion, a web server provides web services.

28
Q

What does the first column of the netstat output show you?

A

The first column shows the Layer 4 protocol in use (UDP or TCP, in this case).

29
Q

What does the third column of the netstat output reveal?

A

The third column uses the format to display the local IP address and port on which a specific server is reachable. The IP address 0.0.0.0 signifies that the server is currently listening on all IP addresses configured in the computer.

30
Q

What does the 4th column of the netstat output reveal?

A

The fourth column uses the same socket format to display the address and port of the device on the remote end of the connection. 0.0.0.0:* means that no remote device is currently utilizing the connection.

31
Q

What does the 5th column of the netstat output reveal?

A

The fifth column displays the state of the connection.

32
Q

What does the 6th column of the netstat output reveal?

A

The sixth column displays the process ID (PID) of the process responsible for the connection. It also displays a short name associated to the process.

33
Q

Use ps and grep to list all lines of the ps output that contain PID 2881.

A

[analyst@secOps ~]$ sudo ps -elf | grep 2881