answersLogoWhite

0


Best Answer

You type "vi filenameyouwanttoedit" on the command line.

I recommend getting a book for more details. We certainly can't teach you everything there is to know about vi here.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use vi command in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command is used to open VI in Linux?

vi


What vi command in Linux means go to the end of a file?

Shift-g / capital G


How do you compile and run the shell programs through vi-editor in Linux?

You don't Shell files/programs are not compiled. If you want to run a process through 'vi' then use the ':!' 'ex' command to shell out and execute it.


Where can one gain more information about how to use the Linux terminal?

At the command prompt, type 'man [command]' (removing the brackets and substituting the command for which you need information).


What command in Linux do you use to copy files?

cp.


To move to the root directory use the command?

For Unix/Linux, use the command 'cd /' For Windows, you can also use the same command or 'cd \'


What does the k command do in Linux?

k is not a standard command in Linux.


What command do you use to rename the old system file instead of copying it?

For Linux, use the 'mv' command, which is a rename


How do you use tar command of UNIX in vi editor?

You don't. The 'tar' command has nothing to do with the 'vi' editor; it creates an archive files and the vi editor modifies the content of a file.


What command prompt would you use in Linux to see filesystems in use?

mount


How do you use less command in Linux?

Viewing a file:"less [filename]"viewing the standard output of a command:"[command] | less"


What does the c99 command do in Linux?

The c99 command is a wrapper program that actually calls 'cc'. This is the standard c compiler for Linux. Since other Unix based systems use a c99 command to call the compiler with the 1999 standards there is a similar command to do the same thing under Linux.