
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
Concept explainers
Question
Bash Shell Scripting – Simple File System Navigation
Write a bash shell script with the following capabilities:
-
- Create a bash script ~/test1.sh with any text editor.
- Write a bash script that does the following:
- Echo your current directory to the screen.
- Change directory to your home directory.
- Change directory to a child directory within your home directory.
- List all of the files that end with .c within the child directory.
- Navigate back to your home directory.
- Run your script after doing a chmod 777 on the script.
- Take a screenshot of the console output.
Expert Solution

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

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- You will develop a client side and a Servlet program that will work with a database. 1. The client (front end) should have a title "NJIT Credit Union", centered. 2. The client should have a background color. 3. The client should have a text field with label 'UserID' where user will enter userID (integer) and a Submit button with text "Submit". 4. An unsuccessful authentication should have a message printed on the screen, in red, stating that "Your authentication has failed, please try again.” (no pop up message). At this point the text field should get cleared and ready to accept a new input. Your program should not exit. 5. A successful authentication should be followed by a message on the screen, in green, stating that "Your authentication is successful" (no pop up message). 6. There should be two other text boxes with label "Deposit" and "Withdraw" where user will enter an amount (you should accommodate for decimals). These two text boxes should only be enabled after successful…arrow_forwardFiles are organized according to tracks, sectors, and. Cylinders. The concentric rings on the platter are called ____. a) sectors b) cylinders c) horseshoes d) tracksarrow_forwardYou can configure your shell by editing the file~/.bashrc for instance to change the value of$ PS1 and $PAth permenatrly true or falsearrow_forward
- please 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_forwardFile Edit View Sign Window Help ECS401U_210571675.pdf ECS401U_210571... x 16 / 29 125% 罗ア白 ,班 a) Compare and contrast in your own words the way reading from a file using a File Reader is done in Java with keyboard input using a scanner illustrating your answer using the following example code fragments. Note you are not being asked to explain line by line what the code does but use it to help explain the points made in your answer. public static void keyboardInput () } new Scanner(System.in); Scanner scanner String s; System.out.println("Please input the data"); s = scanner.nextLine(); System.out.println(s ); return; { public static void fileRead () throws IOException BufferedReader inputStream new BufferedReader (new FileReader("data.csv")); inputStream.readLine(); String s = System.out.println(s); inputStream.close(); return; {arrow_forwardPlease answer the following Bash question, please show your output as well. 1. Write a Bash function named ‘Generate-ID' that generates all possible UGA student id start with 900. The output should be saved into a file named studentID.csv. 2. Write a Bash function named ‘Find_word’ that read wordlist.txt file to find all words end with “ing” and output these words to WordEndIng.csv. 3. The auth.log file (path: /var/log/auth.log) and syslog file (path: /var/log/syslog) are two of the most important log files in Linux. Generally, adversaries target these files so that system administrators couldn’t track what attackers are doing. Write a function named get-linuxlog() that reads all the above two files and stores them into a file named linuxeventlog.txt (Hint use the ‘cat’ command)arrow_forward
- Create a batch file Your batch file should include all required comments for creation and author information. Your batch file must include but is not limited to these commands: ECHO CD NET ICACLS MKDIR COPY Comment each line of your batch file as you create it. Don’t forget to include creation and author information. Create a batch file F:\bat that uses all the required commands and completes the following: Creates a folder named Scripts on the Root of C Add a local user named Aisha Bruce with the username ABruce and the password student Creates a directory in the “E:\CompanyInc\Management” folder named “ABruce_Files” Creates an ACE for “ABruce” to the “ABruce_Files” folder with these explicit permissions: Full Control Re-establishes inheritance to sub-folders and files Copies the application cmd.exe from the C:\Windows\System32 folder to the “ABruce_Files” folder Addes ABruce to your Management Group created in assignment 3 Produces an ICACLS Report for “ABruce_Files”…arrow_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_forwardC shell. A child process executes shell commands. Shell script. The user's executables may be in (/bin/). Shell doesn't take command line arguments or pipes.arrow_forward
- Write two scripts called encryption and decryption. Test both scripts by encrypting a file called file1 and save the result in file2. Then use file2 as the input to the decryption script and check if the output is the same as file1. May I get help with this in bash shell please?arrow_forwardThe size of this video file is MB Note: This Details tab is from Windows properties of a video file. The Data Rate is for video only. The Bit rate is for audio only. The Total bitrate audio + video. The format of Length is HH:MM:SS. Therefore you need the Total bitrate and the Length of the video and finally convert it to MB. General Details Previous Versions Property Value ViucU Length 00:06:45 Frame width 1024 Frame height 768 Data rate 5746kbps Total bitrate 5810kbps Frame rate 30.00 frames/second Audio Bit rate 64kbps Channels 2 (stereo) Audio sample rate 44. 100 kHzarrow_forwardWrite a bash script that displays the command line parameters starting from third argument to the last. The file name is lab1_2.sh for example bash lab1_2.sh aaa bbb ccc ddd eee fff ggg hhh ccc ddd eee fff ggg hhh The line ends with a new linearrow_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