Open main menu

CDOT Wiki β

Changes

OPS235 Lab 1

380 bytes added, 21:43, 3 January 2017
no edit summary
# 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.
# Write 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 to . Test the Bash Shell script by adding execute permissions and run the Bash Shell Script.
13,420
edits