Professional Documents
Culture Documents
Keynote: DO NOT ignore the recommended TEXTBOOK for this course. Read and ensure that you practice as
instructed in the book.
This is a reading exercise in preparation for Shell Scripting, which is most useful for repetitive tasks that
may be time-consuming to execute by typing one line at a time. But more importantly, at this stage, this is an
introduction to the way commands are processed and changed by the shell before they are executed. There is
nothing technical about this exercise. Just a set of rules or syntax for your note. As an Administrator, you
want to understand:
the way commands and arguments are processed
the external and built-in commands
how to manage environment variables in the shell mainly needed by applications
how the shell recognizes the patterns and matches in dynamic filename generation (file globbing)
Requirements:
Week2 Lab completed and knowledge of the Linux commands:
o Directories Operations: pwd, cd, and ls (including absolute and relative paths)
o File Content Operations: cat, head, tail, more, and less
Basic understanding of how you operate your computing device (hardware and operating system)
Goals:
Read Chapters 12 – 17. Focus on:
o Commands and Arguments (Ch. 12)
o Shell Variables (Ch. 14)
o File Globbing (Ch. 17)
Additional Resource:
File Globbing (or Dynamic Filename Generation)
Virginia State University
Reginald F. Lewis College of Business
Computer Information Systems
Operating Systems Administration (CISY 312) Online – Asynchronous
Deliverable (Evidence of task completed): Answer the questions and submit your response saved as a PDF or
Word document: Assign3FirstnameLastname.pdf or Assign3FirstnameLastname.doc.
1. When in doubt about exactly what the shell is doing with your command. What do you execute to
display shell expansion for every command?
Answer: set -x
2. What are external or built-in commands in Linux? Give two commands for each.
Answer: Pwd, echo
4. What is the value of the HISTFILE environment variable on your Linux VM?
Answer: /home/shills/.bash_history