0% found this document useful (0 votes)
58 views5 pages

RHCSA Exam Questions Answer Commands

The document contains a series of command-line instructions primarily for managing users, configuring network settings, and handling services on a Linux system. It includes commands for installing and managing the HTTP server, configuring firewall settings, and manipulating user accounts and permissions. Additionally, it shows file management operations such as creating, deleting, and modifying files and directories.

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)
58 views5 pages

RHCSA Exam Questions Answer Commands

The document contains a series of command-line instructions primarily for managing users, configuring network settings, and handling services on a Linux system. It includes commands for installing and managing the HTTP server, configuring firewall settings, and manipulating user accounts and permissions. Additionally, it shows file management operations such as creating, deleting, and modifying files and directories.

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/ 5

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

===================================================================================
============================
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
149 history
150 groupadd sysadmin
151 grep sysadmin /etc/group
152 id natasha
153 ll /home/
154 useradd abc
155 ll /home
156 userdel acb
157 userdel abc
158 ll /home/
159 userdel -r natasha
160 ll /home
161 cd /home/abc/
162 pwd
163 cd
164 ll /home
165 rm -rvf /home/abc/
166 ll /home/
167 mkdir /home/abc
168 ll /home/
169 rm -rvf abc
170 ll /home/
171 rm -rvf /home/abc/
172 ll
173 ll /home/
174 useradd abc
175 cd /var/www/html/
176 cd /var/spool/mail/
177 ll
178 rm -rvf abc
179 ll
180 cd
181 useradd abc
182 cat /etc/passwd
183 cd /etc/
184 cat passwd
185 rm -rvf /etc/passwd/abc
186 cat /etc/passwd
187 ll /home/
188 cd
189 ll /home/
190 id abc
191 useradd natasha
192 id natasha
193 usermod -G sysadmin natasha
194 id natasha
195 grep sysadmin /etc/group
196 id sarah
197 useradd -G sysadmin sarah
198 id sarah
199 grep sysadmin /etc/group
200 useradd -s /sbin/nologin harry
201 id harry
202 grep harry /etc/passwd
203 su - harry
204 passwd natasha
205 passwd sarah --stdin
206 passwd harry --stdin
207 su - natasha
208 rm -rvf /common/admin/
209 rm -rvf /common/
210 mkdir /common/admin -p
211 ls -ld /common/admin/
212 chgrp sysadmin /common/admin/
213 ls -ld /common/admin/
214 chmod 2770 /common/admin/
215 ls -ld /common/admin/
216 touch /common/admin/ty
217 cd /common/admin/
218 ll
219 rm -rvf ty
220 cd
221 cd /common/admin/
222 pwd
223 touch a
224 ll
225 rm -rvf a
226 ll
227 cds
228 cd
229 ls -ld /common/admin/
230 cp /etc/fstab /var/tmp/
231 ll /var/tmp/
232 ll /var/tmp/fstab
233 getfacl /var/tmp/fstab
234 setfacl -m u:natasha:rw
235 man setfacl
236 setfacl -m u:natasha:rw /var/tmp/fstab
237 getfacl /var/tmp/fstab
238 setfacl -m u:sarah:--- /var/tmp/fstab
239 getfacl /var/tmp/fstab
240 yum -y install chrony*
241 systemctl status chrony
242 systemctl status chronyd
243 vim /etc/chrony.conf
244 systemctl restart chronyd
245 id simone
246 useradd simone
247 id siome
248 id simone
249 find / -user simone cp -rpv {} > /root/found/ \;
250 find / -user simone cp -rpv {} /root/found/ \;
251 chrony sources -v
252 chronyc sources -v
253 id simone
254 find / -user simone -exec cp -rpf {} /root/found/\; this line work
255 find --help
256 man find
257 find / -user simone -exec -cp -rpf {} /root/found/\;
258 find / -user simone -exec cp -rpf {} /root/found/\;
259 grep strato /usr/share/dict/words > /searchfile
260 less /searchfile
261 grep strato /searchfile
262 useradd -u 1122 bob
263 id bob
264 tar -cvjf /home/backup.tar.bz2 /etc/
265 ll /home/
266 tar -tvf /home/backup.tar.bz2
267 tar -cvzf /home/backup.tar.gz /etc/
268 ll /home/
269 tar -tvf /home/backup.tar.gz
270 tar -cvaf /root/test.tar.gz /var/tmp/
271 ll
272 vim /etc/login.defs
273 useradd phone
274 ll /home
275 chage -l phone
276 umask
277 vim /etc/bashrc
278 umask
279 exec bash
280 ums
281 umask
282 mkdir net
283 ls -ld net
284 rm -rvf net/
285 useradd jack
286 id jack
287 vim /usr/local/bin/rhcsa
288 chmod +x /usr/local/bin/rhcsa
289 ls -lh /usr/local/bin/rhcsa
290 cd /usr/local/bin/
291 ll
292 chmod +x rhcsa
293 ll
294 chmod a+x rhcsa
295 ll
296 cd
297 vim /home/jack/.bashrc
298 rhcsa
299 su - jack
300 vim /usr/local/bin/newsearch
301 chmod a+x /usr/local/bin/newsearch
302 ls -lh /usr/local/bin/newsearch
303 newsearch
304 ll
305 cat output
306 du -sh /usr/bin/newgrp

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy