Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this assignment using Linux Ubuntu. The instructions are posted below. P.S. I need help with splitting terminal into two vertical panes.

Please help me with this assignment using Linux Ubuntu. The instructions are posted below.

P.S. I need help with splitting terminal into two vertical panes. I pressed ctrl+b first then pressed shift+5, didn't work. I'm using my college's VMware Horizon to launch Ubuntu. It would be helpful if clear screenshots are provided. Thank you

image text in transcribed

1. Login to your server vm using ssh login. Do not use a tty session ! 2. Launch tmux , maximize it and split into two vertical panes. Use LHS to write the script and RHS to execute it. 3. Write a shell script 300123456-a3. sh to perform the following: 3.1. 05pts. Use command substitution to pass the current working directory in $1. 3.2. 05pts. Exit with return code 2 immediately if the number of arguments passed is zero. 3.3. 05pts. Create an empty file samplefile if it does not exist in current working directory. 3.4. 05pts. Store the absolute path to samplefile in a variable _SFILE using $1 and the filename. 3.5. 05pts. Use parameter expansion to extract the filename samplefile from _SFILE . Hint : Remove all characters as longest matching pattern from the start of the absolute path. 3.6. 05pts. Use parameter expansion to extract the path info in _SFILE by removing the filename from the end. 3.7. 05pts. Print 3.5 and 3.6 in a single echo statement and exit with 0. 3.8. 05pts. Print the contents of your script with line numbers. 4. All your coursework must comply with submission guidelines to be accepted. 1. Login to your server vm using ssh login. Do not use a tty session ! 2. Launch tmux , maximize it and split into two vertical panes. Use LHS to write the script and RHS to execute it. 3. Write a shell script 300123456-a3. sh to perform the following: 3.1. 05pts. Use command substitution to pass the current working directory in $1. 3.2. 05pts. Exit with return code 2 immediately if the number of arguments passed is zero. 3.3. 05pts. Create an empty file samplefile if it does not exist in current working directory. 3.4. 05pts. Store the absolute path to samplefile in a variable _SFILE using $1 and the filename. 3.5. 05pts. Use parameter expansion to extract the filename samplefile from _SFILE . Hint : Remove all characters as longest matching pattern from the start of the absolute path. 3.6. 05pts. Use parameter expansion to extract the path info in _SFILE by removing the filename from the end. 3.7. 05pts. Print 3.5 and 3.6 in a single echo statement and exit with 0. 3.8. 05pts. Print the contents of your script with line numbers. 4. All your coursework must comply with submission guidelines to be accepted

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

2. What process will you put in place to address conflicts?

Answered: 1 week ago