Open main menu

CDOT Wiki β

Changes

OSL740 Lab 6

6 bytes added, 15:56, 21 July 2023
m
Protected "OSL740 Lab 6": OER transfer ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
=INVESTIGATION 3: USING PYTHON TO MODIFY FILES=
In this investigation you will write a python script that will allow a user to interactively configure a network interface's configuration file. Before beginning, '''make a backup of your ifcfg files'''. '''Store the python script in ~/bin/''' on c7host.
Write a script called '''netconfig.py''' that will prompt the user for the following values, and write their answers into an ifcfg file stored in the '''/etc/sysconfig/network-scripts''' directory.