In vi editor how do you execute unix commands?

Answers were Sorted based on User's Feedback



In vi editor how do you execute unix commands?..

Answer / km

:! cmd execute a single command (cmd) and return to vi

Is This Answer Correct ?    22 Yes 6 No

In vi editor how do you execute unix commands?..

Answer / manikantan t s

using ':!'

Is This Answer Correct ?    16 Yes 1 No

In vi editor how do you execute unix commands?..

Answer / kakoli

:![command]

Is This Answer Correct ?    9 Yes 2 No

In vi editor how do you execute unix commands?..

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

In vi editor how do you execute unix commands?..

Answer / ravi kumar.r

compiling filename.c and then execution ./a.out

Is This Answer Correct ?    6 Yes 2 No

In vi editor how do you execute unix commands?..

Answer / durgesh srivastava

!wq or we use shift+ZZ

Is This Answer Correct ?    1 Yes 1 No

In vi editor how do you execute unix commands?..

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

In vi editor how do you execute unix commands?..

Answer / hanu

system("Command-Nmae");

Is This Answer Correct ?    3 Yes 9 No

In vi editor how do you execute unix commands?..

Answer / shilpa

gcc filename

Is This Answer Correct ?    5 Yes 16 No

In vi editor how do you execute unix commands?..

Answer / amulya

:wq!
(or)
:wq

Is This Answer Correct ?    5 Yes 17 No

Post New Answer

More Unix Commands Interview Questions

Name the general commands in using unix os for a beginner?

0 Answers  


what does a process mean?

7 Answers   Infosys,


Name the unix command to find how many days the server has been up.

0 Answers  


Does cp command overwrite files?

0 Answers  


what is Online(STM) and offline diagnostics in HP-UX?

2 Answers   HP,


Can you enlist some commonly used network commands?

0 Answers  


What is the syntax of grep command and what is its use?

6 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands?

6 Answers   Deloitte, Polaris,


how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


What are bash commands?

0 Answers  


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

0 Answers  


Categories