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 can we "forked" process in UNIX? How then recognize in any of the branches we?
What happens when we execute a unix command?
How many unix commands are there?
what are processor execution levels and priorities?
How do I use grep to search for a file?
how will you login one server's shell prompt to an another server?
5 Answers Cosmic Infotech, Perot Systems,
What is the different between UNIX command and UNIX shell script?
What is s and g in sed command?
What does the md command do?
How do you execute a UNIX command in the background?
Is ‘du’ a command? If so, what is its use?
How to rename files and folders?