Terminal and bash

Help with my homework 

## Week 3 Homework: A High Stakes Investigation
### Scenario
You have just been hired by Lucky Duck Casino as a security analyst.
– Lucky Duck has lost a significant amount of money on the roulette tables over the last month.
– The largest losses occurred on March 10, 12, and 15.
– Your manager believes there is a player working with a Lucky Duck dealer to steal money at the roulette tables.
– The casino has a large database with data on wins and losses, player analysis, and dealer schedules.
– You are tasked with navigating, modifying, and analyzing these data files to gather evidence on the rogue player and dealer.
– You will prepare several evidence files to assist the prosecution.
– You must work quickly as Lucky Duck can’t afford any more losses.
Lucky Duck Casino has provided you with the following files if required:
– [Roulette Player Data: Week of March 10](Resources/Roulette_Player_WinLoss_0310.zip)
– [Employee Dealer Schedule: Week of March 10](Resources/Dealer_Schedules_0310.zip)
**Note**: The instructions ask you to set up the files using a `wget` command, but the files are also provided in compressed zip format if the command does not work.

Don't use plagiarized sources. Get Your Custom Essay on
Terminal and bash
Just from $13/Page
Order Essay

### Lab Environment
– You will use your local Vagrant virtual machine for today’s activities. Please note that instructors and students have different access credentials.
– Username: `sysadmin`
– Password: `cybersecurity`
### Instructions
Use your command-line skills to uncover the identities of the rogue casino player and dealer colluding to scam Lucky Duck out of thousands of dollars.
After your investigation, you will provide a summary of your findings to the casino.
#### Step 1: Investigation Preparation
Your first task is to set up directories to prepare for your investigation.
1. Begin by making a single directory titled `Lucky_Duck_Investigations`.
2. In this directory, create a directory for this specific investigation titled `Roulette_Loss_Investigation`.
3. In `Roulette_Loss_Investigation`, create the following directories:
– `Player_Analysis` to investigate the casino player.
– `Dealer_Analysis` to investigate the dealers.
– `Player_Dealer_Correlation` to summarize your findings of the collusion.
4. Create empty files called `Notes_` under each subdirectory to store investigation notes.
– For example: `Notes_Player_Analysis`
#### Step 2: Gathering Evidence
Your next task is to move evidence from the specific days that Lucky Duck experienced heavy losses at the roulette tables.
1. Navigate to the directory where you created the `Lucky_Duck_Investigations` directory and run the following command to set up the evidence files:
– `wget “https://tinyurl.com/3-HW-setup-evidence” && chmod +x ./3-HW-setup-evidence && ./3-HW-setup-evidence`
After running this command your current directory should have the following subdirectories:
– `Dealer_Schedules_0310`: Contains the dealer schedules.
– `Lucky_Duck_Investigations`: Contains the investigation directories and notes files you created.
– `Roulette_Player_WinLoss_0310`: Contains the data for player wins and losses.
2. The `Dealer_Schedules_0310` and `Roulette_Player_WinLoss_0310` directories contain the dealer schedules and win/loss player data from the roulette tables during the week of March 10.
– Since the losses occurred on March 10, 12, and 15, move the schedules for those days into the directory `Dealer_Analysis`.

– Move the files for those days into the directory `Player_Analysis`.
#### Step 3: Correlating the Evidence
Your next task is to correlate the large losses from the roulette tables with the dealer schedule. This will help you determine which dealer and player are colluding to steal money from Lucky Duck.
**Note:** Winnings for Lucky Duck Casino are indicated with a positive number and losses are indicated with a negative number.
Complete the player analysis.
1. Navigate to the `Player_Analysis` directory.
2. Use `grep` to isolate all of the losses that occurred on March 10, 12, and 15.
3. Place those results in a file called `Roulette_Losses`.
4. Preview the file `Roulette_Losses` and analyze the data.
– Record in the `Notes_Player_Analysis` file:
– The times the losses occurred on each day.
– If there is a certain player that was playing during each of those times.
– The total count of times this player was playing.
– **Hint:** Use the `wc` command to find this value.
Complete the dealer analysis.
1. Navigate to the `Dealer_Analysis` directory.
2. This file contains the dealer schedules for the various Lucky Duck casino games: Blackjack, Roulette, and Texas Hold ‘Em.
– Preview the schedule to view the format and to understand how the data is separated.
3. Using your findings from the player analysis, create a separate script to look at each day and time that you determined losses occurred. Use `awk`, `pipes`, and `grep` to isolate out the following four fields:
– Time
– a.m./p.m.
– First name of roulette dealer
– Last name of roulette dealer
For example, if a loss occurred on March 10 at 2 p.m., you would write one script to find the roulette dealer who was working at that specific day and time.
– **Hint:** You will have many scripts, but only a small change is required for each script.
5. Run all of the scripts and append those results to a file called `Dealers_working_during_losses`.
6. Preview your file `Dealers_working_during_losses` and analyze the data.

– Record in the `Notes_Dealer_Analysis` file:
– The primary dealer working at the times where losses occurred.
– How many times the dealer worked when major losses occurred.
3. Complete the player/employee correlation.
– In the notes file of the `Player_Dealer_Correlation` directory, add a summary of your findings noting the player and dealer you believe are colluding to scam Lucky Duck.
– Make sure to document your specific reasons for this finding.
#### Step 4: Scripting Your Tasks
You manager is impressed with the work you have done so far on the investigation.
They tasked you with building a shell script that can easily analyze future employee schedules. They will use this to determine which employee was working at a specific time in the case of future losses.
Complete the following tasks:
1. Remain in the `Dealer_Analysis` directory. Develop a shell script called `roulette_dealer_finder_by_time.sh` that can analyze the employee schedule to easily find the roulette dealer at a specific time.
**Hint:** You will be using a script similar to the one you created for the dealer analysis step, but you will not output the results into a file.
– Design the shell script to accept the following two arguments:
– One for the date (four digits)
– One for the time
**Note:** The argument should be able to accept a.m. or p.m.
3. Test your script on the schedules to confirm it outputs the correct dealer at the time specified.
#### Bonus
– In case there is future fraud on the other Lucky Duck games, create a shell script called `roulette_dealer_finder_by_time_and_game.sh` that has the three following arguments:
– Specific time
– Specific date
– Casino game being played
**Hint:** The argument does not need to name the specific casino game.
### Submission Guidelines
– Move the following to the `Player_Dealer_Correlation` directory:
– All note files
– Evidence files:
– `Roulette_Losses`
– `Dealers_working_during_losses`
– Shell script(s)
– Compress the `Player_Dealer_Correlation` folder to a zip file and submit it.

© 2020 Trilogy Education Services, a 2U, Inc. brand. All Rights Reserved.

What Will You Get?

We provide professional writing services to help you score straight A’s by submitting custom written assignments that mirror your guidelines.

Premium Quality

Get result-oriented writing and never worry about grades anymore. We follow the highest quality standards to make sure that you get perfect assignments.

Experienced Writers

Our writers have experience in dealing with papers of every educational level. You can surely rely on the expertise of our qualified professionals.

On-Time Delivery

Your deadline is our threshold for success and we take it very seriously. We make sure you receive your papers before your predefined time.

24/7 Customer Support

Someone from our customer support team is always here to respond to your questions. So, hit us up if you have got any ambiguity or concern.

Complete Confidentiality

Sit back and relax while we help you out with writing your papers. We have an ultimate policy for keeping your personal and order-related details a secret.

Authentic Sources

We assure you that your document will be thoroughly checked for plagiarism and grammatical errors as we use highly authentic and licit sources.

Moneyback Guarantee

Still reluctant about placing an order? Our 100% Moneyback Guarantee backs you up on rare occasions where you aren’t satisfied with the writing.

Order Tracking

You don’t have to wait for an update for hours; you can track the progress of your order any time you want. We share the status after each step.

image

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

Areas of Expertise

Although you can leverage our expertise for any writing task, we have a knack for creating flawless papers for the following document types.

image

Trusted Partner of 9650+ Students for Writing

From brainstorming your paper's outline to perfecting its grammar, we perform every step carefully to make your paper worthy of A grade.

Preferred Writer

Hire your preferred writer anytime. Simply specify if you want your preferred expert to write your paper and we’ll make that happen.

Grammar Check Report

Get an elaborate and authentic grammar check report with your work to have the grammar goodness sealed in your document.

One Page Summary

You can purchase this feature if you want our writers to sum up your paper in the form of a concise and well-articulated summary.

Plagiarism Report

You don’t have to worry about plagiarism anymore. Get a plagiarism report to certify the uniqueness of your work.

Free Features $66FREE

  • Most Qualified Writer $10FREE
  • Plagiarism Scan Report $10FREE
  • Unlimited Revisions $08FREE
  • Paper Formatting $05FREE
  • Cover Page $05FREE
  • Referencing & Bibliography $10FREE
  • Dedicated User Area $08FREE
  • 24/7 Order Tracking $05FREE
  • Periodic Email Alerts $05FREE
image

Our Services

Join us for the best experience while seeking writing assistance in your college life. A good grade is all you need to boost up your academic excellence and we are all about it.

  • On-time Delivery
  • 24/7 Order Tracking
  • Access to Authentic Sources
Academic Writing

We create perfect papers according to the guidelines.

Professional Editing

We seamlessly edit out errors from your papers.

Thorough Proofreading

We thoroughly read your final draft to identify errors.

image

Delegate Your Challenging Writing Tasks to Experienced Professionals

Work with ultimate peace of mind because we ensure that your academic work is our responsibility and your grades are a top concern for us!

Check Out Our Sample Work

Dedication. Quality. Commitment. Punctuality

Categories
All samples
Essay (any type)
Essay (any type)
The Value of a Nursing Degree
Undergrad. (yrs 3-4)
Nursing
2
View this sample

It May Not Be Much, but It’s Honest Work!

Here is what we have achieved so far. These numbers are evidence that we go the extra mile to make your college journey successful.

0+

Happy Clients

0+

Words Written This Week

0+

Ongoing Orders

0%

Customer Satisfaction Rate
image

Process as Fine as Brewed Coffee

We have the most intuitive and minimalistic process so that you can easily place an order. Just follow a few steps to unlock success.

See How We Helped 9000+ Students Achieve Success

image

We Analyze Your Problem and Offer Customized Writing

We understand your guidelines first before delivering any writing service. You can discuss your writing needs and we will have them evaluated by our dedicated team.

  • Clear elicitation of your requirements.
  • Customized writing as per your needs.

We Mirror Your Guidelines to Deliver Quality Services

We write your papers in a standardized way. We complete your work in such a way that it turns out to be a perfect description of your guidelines.

  • Proactive analysis of your writing.
  • Active communication to understand requirements.
image
image

We Handle Your Writing Tasks to Ensure Excellent Grades

We promise you excellent grades and academic excellence that you always longed for. Our writers stay in touch with you via email.

  • Thorough research and analysis for every order.
  • Deliverance of reliable writing service to improve your grades.
Place an Order Start Chat Now
image

Order your essay today and save 30% with the discount code Happy