Skip to content

Commit 96777ae

Browse files
committed
added more commands for Red Hat linux
1 parent a442c0f commit 96777ae

File tree

1 file changed

+69
-1
lines changed

1 file changed

+69
-1
lines changed

Cloud_providers/Readme.md

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Red Hat offers a cloud platform known as Red Hat OpenShift, which is a Kubernete
238238
**1. Red Hat CLI:**
239239
Red Hat provides a command-line interface (CLI) tool called ```rhel-osp-director``` for managing Red Hat OpenStack Platform environments.
240240

241-
1. General steps for installing Red Hat CLI:
241+
## 1. General steps for installing Red Hat CLI:
242242

243243
- ***Ensure You Have Red Hat Subscription:***
244244
To install Red Hat CLI tools, you need a valid Red Hat subscription. Make sure you have access to the Red Hat repositories.
@@ -265,6 +265,74 @@ After installation is complete, you can verify that the CLI tool has been instal
265265

266266
This command should display the installed version of the Red Hat CLI tool, confirming a successful installation.
267267

268+
269+
<!-- start -->
270+
## 2 . Commands:
271+
Red Hat-based Linux distributions like Red Hat Enterprise Linux (RHEL), CentOS, and Fedora use the yum package manager (and more recently dnf in newer versions of RHEL and Fedora) to manage software packages.
272+
273+
- ***Update the System:***
274+
```sudo yum update```
275+
276+
or with `dnf`:
277+
```sudo dnf update```
278+
279+
- ***Install a Package:***
280+
```sudo yum install package_name```
281+
282+
or with `dnf`:
283+
```sudo dnf install package_name```
284+
285+
Replace package_name with the name of the package you want to install.
286+
287+
- ***Remove a Package:***
288+
```sudo yum remove package_name```
289+
290+
or with `dnf`:
291+
```sudo dnf remove package_name```
292+
293+
- ***Search for a Package:***
294+
```sudo yum search keyword```
295+
296+
or with `dnf`:
297+
```sudo dnf search keyword```
298+
299+
- ***List Installed Packages:***
300+
```sudo yum list installed```
301+
302+
or with `dnf`:
303+
```sudo dnf list installed```
304+
305+
- ***Enable a Service (Start at Boot):***
306+
```bash :sudo systemctl enable service_name```
307+
Enables a service to start automatically at boot.
308+
309+
- ***Start/Stop/Restart a Service:***
310+
```sudo systemctl start service_name sudo systemctl stop service_name sudo systemctl restart service_name```
311+
Manages services (replace service_name with the actual service name).
312+
313+
- ***Check System Logs:***
314+
```journalctl```
315+
Displays the system journal and logs.
316+
317+
- ***Check Disk Space:***
318+
```bash : df -h```
319+
320+
- ***Check Memory and CPU Usage:***
321+
```c: free -h```
322+
323+
- ***Network Configuration:***
324+
```ip addr show```
325+
326+
- ***Firewall Configuration:***
327+
```sudo firewall-cmd --list-all```
328+
329+
## Note:
330+
Remember to replace package_name and service_name with the actual names of packages and services you want to interact with. Always use sudo to execute administrative commands to ensure proper permissions.
331+
Additionally, consult the man pages (```man command_name```) for more detailed information about specific commands and their options.
332+
333+
334+
335+
<!-- end -->
268336
For further more details :
269337
- Redhat Openshift Documentation : https://docs.openshift.com/
270338
- Redhat customer portal: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8

0 commit comments

Comments
 (0)