In vi editor how do you execute unix commands?
Answers were Sorted based on User's Feedback
Answer / km
:! cmd execute a single command (cmd) and return to vi
| Is This Answer Correct ? | 22 Yes | 6 No |
Answer / pritesh_8
you can execute as
for example
:filename.c
this will copy current file in vi editor into filename.c
although it is not unix cmd but makes the use of cp cmd
| Is This Answer Correct ? | 7 Yes | 3 No |
Answer / ravi kumar.r
compiling filename.c and then execution ./a.out
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / santhosh
we have 3 modes i.e {vi editor}
1.inserted mode
2.extended mode
3.command mode
by default ur in command mode when entering into vi..
if want excute any command just steps are ..
go to command mode i.e ESC+:what command u wish that one
ex-- esc+:pwd
esc+:date
| Is This Answer Correct ? | 0 Yes | 0 No |
How many bits use for MAC address?
What is the use of find command in unix?
What do chown command do?
Write a command that will display files in the current directory, in a colored, long format.
How to identify whether a file is normal file or directory?
What is unix command?
their is a file1,file2 and i want to append file1 data to file2?
Is it inbetween or in between?
Explain command to show the space allocation of files?
What is the protocol for PING command?
describe the escaping sequence characteres in unix
what is the use of "fg" command ?