Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.24 KB

Command Line Challenge.md

File metadata and controls

49 lines (36 loc) · 2.24 KB

Command Line Challenge

Now that you have completed CLI The Hard Way, Let's have some fun completing these challenges.

####Install Package from source distribution Often times, you will need to provision (install, configure, deploy) a stack of applications on a machine before you can deploy your app. Being able to install a package from source is a key skill to master.

Write a bash script to install Python 3.x on your machine from source

**Acceptance Criteria: **

➜ python
Python 3.x.x (default, Mar  x 2014, xx:xx:xx)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

####We've hired a New Employee A new employee has joined your company. Your job as a System Administrator is to add his user account to group called “developers” and ensure the new employee is notified that he/she is ready to start working.

Acceptance Criteria: New employee has been notified that he/she is ready to do work and is able to login into terminal with their account.

####Suppose You're working @Netflix Suppose you are at Netflix and your next task is to combine 3 files into 1, sorted alphabetically using your command line skills. Here are the three files which contain user ratings user_ratings_ca, user_ratings_nv, user_ratings_tx. You will often need to create your own input data as you would here. Your input data should look like the following:

dana, 2
arthur, 3
...
bob, 5

**Acceptance Criteria: ** One file which contains all movie ratings sorted alphabetically.

####**Keeping It Real ** Write a Bash script which determines if the supplied command is a valid native Unix/Linux command.

**Acceptance Criteria: ** Your script should print to the screen “Valid Unix/Linux Command” or “Invalid Unix/Linux Command” respectively.

####**Create an input file for A/B tests ** Write a Bash script which will create two output files, first containing the first half of movie ratings and the second containing the second half of ratings from the input file.

**Acceptance Criteria: ** Create two files which each contain the first & second half of the contents of movie_ratings_ca.