Lab: Linux File System & Commands

Instructions:

  1. Refer to the attached two files for this lab
  2. Create a shell script that uses at least the following Linux commands, files, and constructs. Follow instructions that are at the end of the scripting document above. When finished, show your script and the output of your script to one of the instructors or lab helpers. Then submit the name of the person who reviewed your script in the submission box of ramct.

    • date
    • ls
    • grep
    • '|' (pipe)
    • echo
    • whoami
    • cat
    • wc
    • the file, ~info/machines, as a file argument to one of your commands as illustrated in the File I/O section in the reference file for this lab.
    • use the > character to redirect the output of a command to a new file
    • use the >> character to append the output of a command to an existing file

  3. If you get done early,
    • If you have completed this exercise early and would like to explore more Linux (or if you want to learn more Linux), try this tutorial. Pick any Linux module and you will see a table of contents for that module.
    • discuss your major project ideas with Elaine or Debbie