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 do you change your account's password?
how to unzip the contents of the gzip file
why unix commands can be divided into internal and external commands?
what is the difference between KILL and KILL -9?
5 Answers Informatica, Nutanix,
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
What is awk good for?
What is the output of : $ ps-e $ ps-a commands
What is grep in bash?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
what these two commands prints "echo test","cat test"?
Which Command is Used for temprary switch User?
What is used to type command?