Skip to content

Commit 45e79a0

Browse files
authored
Merge pull request #204 from Vishal-K-988/vishal3
this fixes #58 , Added more commands for Red Hat
2 parents a85fc9f + 96777ae commit 45e79a0

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
@@ -239,7 +239,7 @@ Red Hat offers a cloud platform known as Red Hat OpenShift, which is a Kubernete
239239
**1. Red Hat CLI:**
240240
Red Hat provides a command-line interface (CLI) tool called ```rhel-osp-director``` for managing Red Hat OpenStack Platform environments.
241241

242-
1. General steps for installing Red Hat CLI:
242+
## 1. General steps for installing Red Hat CLI:
243243

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

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

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

0 commit comments

Comments
 (0)