IT 244: Introduction to Linux/Unix
Homework 7

Due

Sunday, October 27th at 11:59 PM

What You Need to Do

Setup

Specification

  1. This step requires you to write two commands on two different lines.
    In the first command copy bother10.sh from /home/ghoffman/course_files/it244_files to your current directory, which should be hw7.
    In the second command run bother10.sh, redirecting output to /dev/null, in the background.
    Be sure you copy and run bother10.sh, NOT bother.sh.
  2. Run a command that shows the job number of the process running bother10.sh.
  3. Run a command that shows the process ID of the process running bother10.sh.
  4. Copy the script make_foo.sh from ~ghoffman/course_files/it244_files to your current directory.
    Run this script.
    Perform a long listing of all files whose name starts with the string "foo" using meta-characters.
  5. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single character, followed by .txt .
  6. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single digit, either 1, 3 or 5, followed by .txt .
  7. Using meta-characters, perform a long listing of all files whose name starts with the string "foo", followed by a single digit from 1 through 5 followed by .txt .
    Do this using the range feature of one of the meta-characters.
  8. Using meta-characters, perform a long listing of all files whose name starts with the string "foo" followed by a single digit, not 1, nor 3 nor 5, followed by .txt .
  9. Using meta-characters, perform a long listing of all files whose name starts with the string "foo" followed by two digits followed by .txt .
  10. Using meta-characters, perform a long listing of the files foo21.txt, foo25.txt and foo29.txt. This must be done using a single command.

Testing

Copyright © 2020 Glenn Hoffman. All rights reserved. May not be reproduced without permission.