Introduction to CentOS Flashcards

1
Q

is a rolling-release Linux distribution that provides a “preview” of what will be in the next RHEL minor release.

A

CentOS Stream

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

With ____ , users gain access to newer features and packages as they’re prepared for RHEL 9.

A

CentOS 9

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

Key Use Cases (3):
(idk if kasama pa)

A
  1. Development & Testing
  2. Production -Ready for Certain Environments
  3. Cloud and Containers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

is a text-based interface that allows users to execute commands for managing files, processes, and system settings.​

A

Command Line

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

CentOS 9 uses the ____ by default, although other shells like Zsh can be installed.​

A

Bash Shell

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

CentOS 9 uses ____ as its primary package manager, replacing the older yum.

A

dnf

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

The ____ command is used to install, update, and manage software packages.​

A

dnf

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

command for update

A

sudo dnf update

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

List of Package Management with DNF Commands
(11!!!)

A
  1. dnf
  2. sudo dnf update
  3. sudo dnf install < package_name >
  4. sudo dnf remove < package_name >
  5. sudo dnf search < keyword >
  6. sudo dnf list installed
  7. sudo systemctl start < service_name >
  8. sudo systemctl stop < service_name >
  9. sudo systemctl restart < service_name >
  10. sudo systemctl enable < service_name >
  11. sudo systemctl status < service_name >
  12. sudo systemctl list-units –type=service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The ____ command in Linux lists directory contents, displaying files and subdirectories.

A

ls (list)

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

a command-line utility that allows users to create new directories.

A

mkdir < directory_name >

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

used to change directories. You can navigate to a specific directory by specifying its path.

A

cd < directory_name >

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

This command is used to copy files or group of files or directories.

A

cp < source >< destination >

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

short for “remove”. is used for deleting files and directories.

A

rm < filename >

deletes files. It does not work on directories unless combined with specific options.
source: chatGPT

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

it is used for deleting files and directories

A

rm -r < directory name >

Used to delete directories and their contents, including files and subdirectories.
source: chatGPT

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

____ are key tasks in system administration

A

Network configuration and troubleshooting

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

Networking Commands:

will display the address configuration for all interfaces on the Linux workstation.

A

ip addr show

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

Networking Commands

tests the connection between the local machine and a remote address or machine

A

ping < hostname ____or____ IP >

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

Networking Commands

View Network Connection Status.

A

nmcli device status

20
Q

Networking Commands

Enable or Disable a Network Connection.

A

nmcli con up < connection_name > for enable
nmcli con down < connection_name > for disable

21
Q

Networking Commands

Open and Close Ports Using firewalls.

A

sudo firewall-cmd –add-port=80/tcp –permanent

22
Q

Networking Commands

to reload

A

sudo firewall-cmd –reload

23
Q

User and Group Management commands:

Creates new user

A

sudo useradd < username >

24
Q

User and Group Management commands:

Set user password

A

sudo passwd < password >

25
# **User and Group Management commands:** Add a User to a Group.
**sudo usermod -aG** < group > < username >
26
# **User and Group Management commands:** deletes user
**sudo userdel** < username >
27
# **User and Group Management commands:** View user ID and Group ID
**id** < username >
28
provides access control security policies. **In CentOS, it is enabled by default**.
**SELinux** (Security-Enhanced Linux)
29
# **Security with SELinux** check SELinux status
**sestatus**
30
# **Security with SELinux** Set to permissive mode.
**sudo setenforce 0**
31
# **Security with SELinux** Set to enforcing mode
**sudo setenforce 1**
32
# **Security with SELinux** View Current SELinux Context for a File
**ls -Z** < filename >
33
Is Monitoring processes, CPU, and memory usage is important for system health and performance?
**TRUE**!!!
34
# **Monitoring and Process Management commands** display running process.
**ps aux**
35
# **Monitoring and Process Management commands** View Real-Time System Activity​
**top**
36
# **Monitoring and Process Management commands** Enhanced Real-Time System Monitoring
**htop**
37
# **Monitoring and Process Management commands** Kill a Process
**kill**
38
# **Disk and File System Management commands** List Block Devices
**lsblk**
39
# **Disk and File System Management commands** Display Disk usage
**df -h**
40
# **Disk and File System Management commands** check free and used memory
**free -h**
41
Is managing disk space and partitions is important for organizing and ensuring the availability of storage?
**TRUE!!!**
42
Scheduling regular tasks with ____ **allows automation for routine processes** like backups or updates.
**Cron**
43
Create/Edit Cron Jobs
**crontab -e**
44
View Scheduled Cron Jobs​
**crontab -l**
45
what command that each * represents a time field (minute, hour, day, month, day of the week), allowing you to schedule commands at specific times?
**** /path/to/command