
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
- Write a BASH script that will use a for loop that will loop through the tscripts folder and delete each file. (rm) (be careful that you only delete files in the tscripts folder)
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

Knowledge Booster
Similar questions
- Program 3: Write a bash shell script that will enter the marks of a student and decide whether he has “passed” if he gets above 60 and “Fail” if the mark is below 60.arrow_forwardPlease help answer the following (both parts a and b) I have the file run.sh, it currently has unknown permissions. Say I want the owner to have read,write, and execute permissions, the group to have only execute permissions, and others to haveonly execute and read permissions.a. How can I accomplish this using letter codes?b. What is an equivalent command using octal syntax? (will leave a like)arrow_forwardplease comment all code Using a Bash environment, write a script to do the following: - declare and initialize an array to a few numbers.- in a loop, validate the numbers so they are greater than 0, if so:- get the total of them then the average.- print the average value.arrow_forward
- (a) Using a text editor, create a textfile, name it secretLetter.txt containing the text "The setting sun is limitless in beauty, alas it also means that dusk is near." Encrypt this file using the openssl toolset with your yhd7213 as the encryption key, using(i) AES 256 bit key, OFB mode, name the encrypted file secretLetter_aes256.enc (ii) DES CBC mode, name the encrypted file secretLetter_des.encAttach the screenshots and submit both filesarrow_forwardhow would you use cryptographic techniques to protect the integrity of data in a file if you do not require its content to remain confidential? ( choose all that apply)arrow_forwardYou need to find a specific text file on your system by its metadata. Which of the following commands might you use? (select two) grep find locate whereisarrow_forward
- What is the operational result of this command: (set('You need Python.'))[2]arrow_forwardWrite a bash script using for loop to list 0 - 9 as 1234567890 and the command prompt should be innext line of the resuarrow_forwardBash Shell Scripting – Permissions Need help with solving this problem: Write a bash shell script with the following capabilities: Create a new bash script ~./test5.sh Add a simple echo "Hello World" statement and save the script. Run the ls –l command to inspect the files permissions. Who is the owner of this file? Can you execute this script? If not, why not? Use the chmod command to change the file permissions to you can execute the file. Run the ls – l command to inspect the files permissions. What changed in the permissions to allow you to run the script? Take a screenshot of the console output.arrow_forward
- You need to create a text file using jEdit or another text editor (NOT a word processor such as MS-Word) with your answers to problems 1 and 2 below. This file is to be submitted electronically. Do NOT use any formarother than text to create your file. Name your file HW1-.txt(Do NOT type the ''.) 1. Explain what the effect of each of the following commands would be if entered at the Bash prompt? Be as specific as possible. a) Is *.cpp b) cp_/progl.py myDir c) rm_[ABC]* d) Is I wc -1 e) rm ??? [!1-3]arrow_forwardYou are using the scripting statement case in a script and keep getting a message such as the following: script 1: line 10: syntax error: unexpected end of file what is the likely cause of the error? a) You didn't have a default condition set. b) You forgot to close the case with esac. c) You were using the old [ ] bash style insted of [[ ]]. d) You were comparing an integer when you should have been comparing a string.arrow_forwardExplain what the effect of each of the following commands would be if entered at the Bash prompt? Be as specific as possible. a) ls *.py b) mv ./myprog.cpp .. c) rm [ABC]* d) ls | wc –l e) rm [!A-Z]???arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY