Open main menu

CDOT Wiki β

Changes

OPS705 Lab 3 (2211)

185 bytes added, 00:50, 7 September 2021
m
Chris.johnson moved page OPS705 Lab 3 to OPS705 Lab 3 (2211) without leaving a redirect
You work will be done entirely in your secondary user's home directory.
 
'''WARNING: Only use sudo ''when instructed by the lab''.'''
To begin:
# Connect to the VM remotely via SSH using your secondary account.
# Navigate to your home directory with this command: <code>cd ~</code>
# In your home directory(/home/''yourusername''), recreate the directory tree in ''Figure 1''. (''yourusername'' should be your own username home folder that already exists.# '''Do not remove lab2.txt''')
= INVESTIGATION 4: Moving Files =
In this investigation, you're tasked with moving a set of existing files. You will download and run a script, which will create a set of files in '''~/tmp'''. It is then your job to create the directory structure seen in ''Figure 2'', and move the files from '''~/tmp''' to their proper location according to the file tree diagram. '''Do not delete and recreate files, and do not delete your work from Investigation 1.'''[[Image:Ops705_lab3_fig2.png|thumb|right|250px|Figure 2. Square icons are directories, oval icons are empty text files.]]
# On your Linux VM, from install wget: <code>sudo yum install wget</code># From your user's home directory(/home/''yourusername''), download script for this lab with the following command: <code>wget https://ict.senecacollege.ca/~chris.johnson/ops705/lab3_script.bash</code>
# Give the script execute permissions: <code>chmod u+x ~/lab3_script.bash</code>
# Run the script: <code>~/lab3_script.bash</code>
# Check that the files 13-17 have been created in '''~/tmp''' (These ''must'' come from the script, do not create them yourself)
# Using ''Figure 2 '' as a model, create the '''~/shared''' directory structure# Using ''Figure 2 '' as a model, move the files from '''~/tmp''' to their proper location in '''~/shared'''
Voila, you're done!
= Lab Submission =
Submit to Blackboard's ''Lab Submission'' section full-desktop screenshots (PNG/JPG) of the following:
# From your secondary user's home directory(/home/username), run <code>tree</code>. Your screenshot should contain the entire output. (To install tree, run: <code>sudo yum install tree</code>)
# Run the following command and screenshot: <code>hostnamectl</code>