Homework assignment HW4
Homework log
Remember to create a new post with a new topic “HW4” in your homework log channel on Microsoft Teams. Make a reply to that topic whenever do some work on this assignment. You can also post questions there. Your posts should provide evidence that you spent several hours doing meaningful work.
Objectives
This assignment Further extends our knowledge of using the Linux command line, especially for software installation and environment management.
Minimal knowledge and experience to acquire include the following:
- usage of
envto view environment variables, andechoto print the value of a variable, e.g.echo $PATH - updating the value of an environment variable, e.g.
export PATH=$PATH:/home/username/bin - use of
sudoto run commands with elevated privileges - use of
groupsto view the groups that a user belongs to, e.g.groups username - use of
sudo apt updateto update the list of available packages - use of
aptto install software packages, e.g.sudo apt install cowsay - Install Java (
default-jdk), then create, compile, and run a hello world program. - use of
apt searchto search for available packages, e.g.apt search cowsay
PB version
The Professor Braught version is available as:
- 04-A-InstallingSoftware.docx You are free to follow this version closely if desired, or use it as a loose guide to your activities.
Likely quiz questions
- What command would you use to run the program
platypuswith elevated privileges? - How would you update the list of available packages?
- How would you install the package
wombat? - How would you append the path
/usr/gamesto your currentPATHenvironment variable?