0% found this document useful (0 votes)
16 views2 pages

RHCSA Exam Questions Answer Command

The document contains a series of command-line instructions for managing network settings, user accounts, and the Apache HTTP server on a Linux system. It includes commands for checking IP addresses, modifying repository configurations, managing firewall settings, and controlling the httpd service. The commands also involve SELinux configuration and user management tasks.

Uploaded by

binodstha747
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

RHCSA Exam Questions Answer Command

The document contains a series of command-line instructions for managing network settings, user accounts, and the Apache HTTP server on a Linux system. It includes commands for checking IP addresses, modifying repository configurations, managing firewall settings, and controlling the httpd service. The commands also involve SELinux configuration and user management tasks.

Uploaded by

binodstha747
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

nmtui

88 ip a
89 route -n
90 cat /etc/resolv.conf
91 reboot
92 ip a
93 route -n
94 cat /etc/resolv.conf
95 nmtui
96 ip a
97 route -n
98 ip a
99 ifconfig
100 lsblk
101 mount /dev/sr0 /media/
102 lsblk
103 cd /etc/yum.repos.d/
104 ll
105 rm -rvf *
106 ll
107 vim new.repo
108 vim xty.repo
109 vim xty.repo
110 ll
111 cat xty.repo
112 cat new.repo
113 ll
114 cd
115 ll /home
116 useradd natasha
117 id natasha
118 su - natasha
119 crontab -eu nats
120 crontab -eu natasha
121 getenforce
122 vim /etc/selinux/config
123 getenforce
124 exec bashg
125 exec bash
126 getenforce
127 exit
128 getenforce
129 yum -y install httpd*
130 systemctl status httpd.s
131 systemctl status httpd
132 systemctl enable httpd --now
133 systemctl status httpd
134 semanage port -l |grep http
135 semanage port -at http_port_t -p tcp 82
136 semanage port -l |grep http
137 firewall-cmd --list-all
138 firewall-cmd --permanent --add-port=82/tcp
139 firewall-cmd --permanent --add-service=http
140 firewall-cmd --list-all
141 firewall-cmd --reload
142 firewall-cmd --list all
143 firewall-cmd --list-all
144 systemctl status httpd
145 vim /etc/httpd/conf/httpd.conf
146 systemctl status httpd
147 systemctl restart httpd
148 systemctl status httpd

You might also like