CS S18 C8

Spring 2018 – CS W8 – Linux Terminal – Permissions and Scripting

For this week, we’re continuing the Linux tutorials provided on the website https://ryanstutorials.net/linuxtutorial/ . Go through the “Permissions” section and the “Scripting” section of the tutorial. After reading through those sections, create the following scripts using Vim:

1.       A script that outputs the contents of the current directory;

2.       A script with a variable ‘name’ that outputs “Hello ‘name’” (‘name’ being the string that you put in the variable in the script);

3.       A script that takes command line arguments and outputs them back to the command line.

An example of each script can be found in the tutorials.

Submit a screenshot of each of your scripts being run in a PuTTY or terminal session. If you haven’t completed the Intro to Terminal challenge you can find it here – https://thecommons.bitrix24.com/compan…log/21712/

Done :) had some help with this, got confused a bit but seems interesting and will definitely use it in the near future.
Photo:
cscw7.JPGcsw7p2.JPGcsw7p3.JPG

Leave a Reply

Your email address will not be published. Required fields are marked *