Question: Using Linux/Ubiuntu- In the Terminal window, enter cd ~ to return to the /home directory of your user account. Use the pwd command to verify
Using Linux/Ubiuntu-
- In the Terminal window, enter cd ~ to return to the /home directory of your user account. Use the pwd command to verify the current directory.
- Enter nano todolist at the command prompt. Type in the script as shown in the screen capture below. Use the left, right, up, and down arrow keys to move the cursor in the nano editor. Double check the script before pressing ^x (ctrl + x), answering y to question Save modified buffer?, and pressing Enter to keep the same script name. Note that Linux treats upper-case and lower-case letters differently! Enter cat todolist to verify the script content.
- Enter ls l todolist to check the file permissions. Notice that no execute permission is set for the script file.
- Execute the script by entering bash todolist. If there are error messages displayed, go to Step 2 and double check every character including spaces!
- Enter 1. family. 2. work. 3. school. at the prompt and press the Enter key.
- Execute the script again and enter 1. school. 2. family. 3. work. at the prompt and press the Enter key.
Enter cat MyToDoLists to view the two entries you entered before.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
