Changes

Jump to: navigation, search

OPS435 Test1 Practice - Bash

208 bytes added, 13:41, 22 August 2017
m
Write a script that will check whether any interface has the IP address 10.0.0.4 and if it does - it will print the subnet mask used with that interface (subnet mask or bit length, whatever you prefer). If it doesn't - it will print a message saying so.
 
== Maybe start Apache ==
 
Write a script that will use the ps command to check whether any apache processes are running. If not - it will call '''systemctl start apache'''.
= Loops =
== Write HTML for images ==
In the images subdirectory of the current directory you have a pile of jpg images. You want to generate some code to put them all in a webpage. The HTML to show one image looks like this (the quotes around the filename can be single or double quotes):
<source lang="html4strict"><img src="images/imagefilename.jpg" /></source>
Write the script that will generate one big HTML file with an <img> tag for every image in the current directory.

Navigation menu