Question: 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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!