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

Session 8

The document contains a series of command-line instructions primarily related to network configuration, package management, and system administration on a Linux system. It includes commands for pinging, modifying network connections, installing and removing software packages, and managing services like httpd. Additionally, it shows usage of tools like dnf, rpm, and ssh for various system tasks.

Uploaded by

anashantash15
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)
6 views2 pages

Session 8

The document contains a series of command-line instructions primarily related to network configuration, package management, and system administration on a Linux system. It includes commands for pinging, modifying network connections, installing and removing software packages, and managing services like httpd. Additionally, it shows usage of tools like dnf, rpm, and ssh for various system tasks.

Uploaded by

anashantash15
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

171 ping 8.8.8.

8
172 ping --help
173 ping -c3 8.8.8.8
174 ifconfig
175 ip addr
176 netstat
177 netstat -rnv
178 nm-connection-editor
179 ip addr
180 nmtui
181 nmcli con show
182 nmcli device
183 nmcli connection modify ens160 ipv4.addresses 192.168.1.110/24
184 nmcli connection modify ens160 ipv4.gateway 192.168.1.1
185 nmcli connection modify ens160 ipv4.dns 8.8.8.8
186 nmcli connection modify ens160 ipv4.method manual
187 nmcli connection down ens160
188 nmcli connection up ens160
189 ip addr
190 nmtui
191 history
192 nmtui
193 ip addr
194 nmtui
195 ping 8.8.8.
196 ping 8.8.8.8
197 ls -l
198 chmod u-x Videos
199 ls -l
200 tree
201 ls
202 tree
203 rpm -qa
204 rpm -qa | wc -l
205 rpm -qa | grep tree
206 rpm -e tree-1.8.0-10.el9.x86_64
207 rpm -qa | grep tree
208 tree
209 arch
210 wget https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/
Packages/tree-1.8.0-10.el9.x86_64.rpm
211 ls
212 rpm -ivh tree-1.8.0-10.el9.x86_64.rpm
213 rpm -qa | grep tree
214 tree
215 history
216 curl www.google.com
217 curl www.google -o dd
218 ls
219 curl https://rpmfind.net/linux/centos-stream/9-stream/BaseOS/x86_64/os/
Packages/tree-1.8.0-10.el9.x86_64.rpm -o ammar.rpm
220 ls
221 rpm -e tree
222 tree
223 dnf install tree
224 tree
225 dnf remove tree
226 dnf install tree -y
227 dnf install httpd -y
228 cd /etc/yum.repos.d/
229 ls
230 vim centos.repo
231 vim centos-addons.repo
232 dnf install python -y
233 cd
234 python3.9
235 history
236 python
237 python3
238 history
239 dnf update
240 dnf search httpd
241 touch transfer
242 vim transfer
243 sftp [email protected]
244 ls
245 sftp [email protected]
246 dnf install httpd
247 systemctl start httpd
248 systemctl enable httpd
249 systemctl stop firewalld
250 ip addr
251 wget https://www.tooplate.com/zip-templates/2135_mini_finance.zip
252 ls
253 unzip 2135_mini_finance.zip
254 ls
255 cd 2135_mini_finance/
256 ls
257 cp -rf * /var/www/html
258 ls /var/www/html
259 systemctl restart httpd
260 history
261 cd
262 ssh ammar@localhost
263 mkdir /opt/files /opt/proccesd
264 chgrp ammar /opt/files /opt/proccesd
265 ssh ammar@localhost
266 sudo dnf -y install dnf-plugins-core
267 sudo dnf config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
268 dnf config-manager --add-repo
https://download.docker.com/linux/centos/docker-ce.repo
269 cd /etc/yum.repos.d/
270 ls
271 cd
272 dnf install cockpit
273 systemctl start cockpit
274 systemctl status cockpit
275 ip addr
276 clear
277 history

You might also like