Answered step by step
Verified Expert Solution
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
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 acceptedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started