Question: Sorry I have problems doing this Lab Lab 2 Connectivity, vi/vim Editor, Unix Environment & turnin CSCI 111 Programming and Algorithms I Due Friday January

Sorry I have problems doing this Lab

Lab 2

Connectivity, vi/vim Editor, Unix Environment & turnin

CSCI 111 Programming and Algorithms I

Due Friday January 29, 11:59pm on turnin

10 Points

STEP 1: Vim Editor

Be familiar in using the vi/vim editor which is commonly used on the Unix environment to create/modify scripts, edit text data, etc.

1. Log in to your UNIX account on jaguar.

2. Create a subdirectory from your home directory; name it csci111.

3. Navigate to this new directory using the cd command.

4. From within your new directory, create a Labs subdirectory and a Projects subdirectory.

5. Navigate to the Labs subdirectory and create an empty file called vimfile.txt using the touch command.

6. Edit the file by typing vim vimfile.txt to launch the vim editor.

enter your name

enter today's date

enter your username

tell me what platform you plan to use outside of lab (PC/Mac/Linux)

7. Save the edited vimfile.txt file:

8. What vi command is used to delete an entire line?

9. What vi command is used to save a file without saving changes?

10. What are the 2 different modes of vi? And what commands are used to toggle between the 2 modes?

11. Refer to the viCheatSheet document posted on Blackboard.

STEP 3: Basic Unix Commands

1. Introductory to Bash: environment variables, scripts, etc.

2. Demonstrate your directory and file creations & permissions by taking a screenshot of your terminal window after:

o Navigate to Labs subdirectory (if not already there)

o Use the clear command to clear the screen

o Show current working directory (pwd)

o Display directory listing with permissions (ls -la)

o Take a screenshot of your terminal window and save it as either a jpg or png formatted file named UNIXScreenShot.jpg

o Refer to the BasicUNIXCommands document on Blackboard and perform all the operations.

STEP 4: Submit work

1. Submit both files: vimfile.txt and UNIXScreenShot.jpg on turnin

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!