Question

In: Computer Science

linux. If you are running UBUNTU: There may be an issue with the arrow keys working...

linux.

  1. If you are running UBUNTU: There may be an issue with the arrow keys working properly in vi on Ubuntu. When you use the arrow keys in insert mode the letters A, B, C, and D get printed instead. There are a few fixes to this problem but the main culprit is the version of vi installed on your system. Ubuntu ships with vi-light. Let’s upgrade to the full vi.

    Use apt to install the vim package (vim is the real name of the vi program for installation purposes and stands for Vi IMproved). Paste the output or a screenshot of the output of the installation information below along with your command. Run vi and verify that vi now properly responds to the arrow keys in insert mode.


$

Output of installation information:

If you are running LUBUNTU: Lubuntu already has Vi Improved (vim) installed. Let’s install a competitor to the vi editor called emacs. If you ever want to start an argument between a group of Unix users ask them if they prefer vi or emacs! Emacs tends to have a bigger system footprint than vi and is therefore not usually pre-installed.


Use apt to install the emacs package (a lot of items might get installed). Paste the output or a screenshot of some of the output of the installation information below along with your command. Run emacs to see how it differs from vi.

2.What command can you use to verify that the new software you installed in step 1 is now installed?

$

Solutions

Expert Solution

Solution for Ubuntu

Before installing vim run the following command to make sure everything is up to date.

if it is not up to date run sudo apt upgrade .


To install vim run the command sudo apt-get install vim and press enter (you have enter your account password to begin the installation)
sudo this gives you the superuser permission.

Then run vim (verified that arrow keys do not input a,w,s,d)
To check whether software is installed or not run vim --version

***The problem you mentioned with the arrow keys is not present in the newer version of Ubuntu***


Related Solutions

(Complete Using Ubuntu) Please try each command in Linux system, and get screenshots (you may put...
(Complete Using Ubuntu) Please try each command in Linux system, and get screenshots (you may put multiple commands in one screenshot) which can show how actually each command runs. Also, give a brief description (one or two sentences) for each command. For the commands which have multiple switches/parameters, please try one popular switch/parameter. Linux Commands: rm,cp ,mv (name), ld, ftp, more, less, cat (date), tar, top, ps (name), kill, df, last, patch, mkdir (date)
Design two shell programs working on Linux (Ubuntu) Design a shell script program, 1) reading given...
Design two shell programs working on Linux (Ubuntu) Design a shell script program, 1) reading given only two integer numbers from command line arguments and computing their multiplication. If two integer numbers are not given, print “Wrong Input” on your screen. Note that, the number of arguments is known when the script runs. Take a screenshot showing your shell program and its execution step. Design a shell program to remove all the shell programming files ending with sh on your...
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Ubuntu Linux HW2: 1. Give one line of the Linux command to see your (your login...
Ubuntu Linux HW2: 1. Give one line of the Linux command to see your (your login ID) credential data from the passwd file. Use a pipe and grep command. 2. Give one line of the Linux command to calculate the following and save it in the hex to a file calcOut. Use bc and <<<. 3+2*4 Submit Screenshots HW3: Permission Show the result clearly after each of the following commands are executed. 1. Create a subdirectory, “HW3”. Write the Linux...
Upgrade your UBUNTU Linux system and document the steps that you took. What events, if any,...
Upgrade your UBUNTU Linux system and document the steps that you took. What events, if any, were logged? Next, search the repositories for the application nginx. If it’s not installed, install it. Document the steps you took.
Ubuntu Linux HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passwd file...
Ubuntu Linux HW5: text processing; scripting 1. Write a Linux command to rewrite the /var/passwd file to have a tab for each delimiter ':'. Hint: use tr 2. Write a Linux command to extract the user names and sort them. Hint: use cut 3. Write a for loop to to display a time table, e.g., 17 x 1 = 17; 17 x 2 = 34; etc., as follows: 17 x 1 = 17 17 x 2 = 34 17 x...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device,...
Linux Ubuntu 1. Use the appropriate commands to locate the device file used by the device, mount the filesystem to a directory of your choice, and check the filesystem for errors. 2. Finally, add a line to /etc/fstab to ensure that the filesystem can be easily mounted in the future (this line should not automount the filesystem at boot time). You have to document all your steps and provide the screenshot of your work process.
Ubuntu, Linux, MacOS use one of these systems. 1a. Create a C program that forks a...
Ubuntu, Linux, MacOS use one of these systems. 1a. Create a C program that forks a child process that executes the command ‘ls’. 1b. Extend the program you created in Problem 1a such that it takes an argument. For example, the created child process should be able to execute the command ‘ls’ with any arbitrary single argument such as ‘ls -l’, and ‘ls -a’.
***************************************************** * USE UBUNTU (Linux) TERMINAL MODE COMMANDS ONLY * * DO NOT USE ANY EDITORS...
***************************************************** * USE UBUNTU (Linux) TERMINAL MODE COMMANDS ONLY * * DO NOT USE ANY EDITORS TO CREATE THIS PROGRAM * ***************************************************** 1) Create a file called lastNameFirstNameInitialpgm3.sh ex: robinsonMpgm1.sh 2) Append to the above file the necessary commands that when this file is executed it will display the following: - Using your own set of multi-line comments enter your program identification as described in the Syllabus, example: <<ID ************************************************** Author : Your Name Course : Course Name and Times...
In Linux (Ubuntu), write a script to check command arguments (3 arguments maximum). Display the argument...
In Linux (Ubuntu), write a script to check command arguments (3 arguments maximum). Display the argument one by one. If there is no argument provided, remind users about the mistake. If there is an easy way to use a loop to get all arguments, use it? a. Display the source code in an editor (#4-1) b. Execute your script in the terminal, and display the command and the result (#4-2)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT