Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7 - HD2

692 bytes added, 22:43, 3 January 2017
no edit summary
# What command can display the NIC's MAC address?
# What command is used to get a list of running processes on your newly-installed system?
# How can Shell Scripts be used to help automate a task performed in lab1?
# Write the Linux command to download the on-line file: http://linux.server.org/package.tar.gz
# Write a Bash Shell Script to prompt the user for a directory, and then display the file types for all files in that specified directory (hint: use the '''read''' command and then use the '''file''' command and '''command substitution''' with the '''ls''' command). Test the Bash Shell script by adding execute permissions and run the Bash Shell Script.
# Modify the previously created shell script to perform error checking after prompting for a directory to test if the specified directory does not exist. If it does NOT exist (i.e. true), display an error message indicating that the directory does NOT exist, and issue the command exit 1 to terminate the Bash Shell Script. Test the Bash Shell script by adding execute permissions and run the Bash Shell Script.
13,008
edits

Navigation menu