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 to convert a hidden file to normal visible file?
By using which command we can find the CPU utilization time?
How does one process we can start an executable file? How to get the PID process, which we started?
If we want to see first 35 lines of a file which command we have to use?
What does this command do? Cat food 1 > kitty
what are wild cards?
What is a bash command?
What are some command words?
what is the default permission for /etc/shadow file in UNIX
Using unix command how to display no of records in oracle?
in UNIX ,What is the command to view contents of a large error log file?
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above