In UNIX, what is the command to edit contents of the file?

Answers were Sorted based on User's Feedback



In UNIX, what is the command to edit contents of the file? ..

Answer / suitable

vi <filename>

Is This Answer Correct ?    17 Yes 0 No

In UNIX, what is the command to edit contents of the file? ..

Answer / shaishaw

Commands like vi filename, sed, awk , nawk can be used

Is This Answer Correct ?    4 Yes 0 No

In UNIX, what is the command to edit contents of the file? ..

Answer / suman

Commands like sed, awk , nawk can be used.

Is This Answer Correct ?    4 Yes 1 No

In UNIX, what is the command to edit contents of the file? ..

Answer / preetam

vi filename

Is This Answer Correct ?    2 Yes 0 No

In UNIX, what is the command to edit contents of the file? ..

Answer / yuvaevergreen

vi

Is This Answer Correct ?    1 Yes 0 No

In UNIX, what is the command to edit contents of the file? ..

Answer / subbareddy kake

vi <filename>
more <file name>

Is This Answer Correct ?    2 Yes 2 No

In UNIX, what is the command to edit contents of the file? ..

Answer / shamnad

vi <filename>
sed <option> <filename>

Is This Answer Correct ?    0 Yes 0 No

In UNIX, what is the command to edit contents of the file? ..

Answer / senthilkumar

bash#vi <filename>

Is This Answer Correct ?    0 Yes 1 No

In UNIX, what is the command to edit contents of the file? ..

Answer / venkatn_999

i

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More Unix Commands Interview Questions

How to redirect standard error to a file?

2 Answers  


In Unix file permissions what does the second field denotes?

3 Answers  


How to view the hidden files in /etc directory?

10 Answers  


How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks

6 Answers   Polaris, Tech Mahindra,


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

0 Answers  


How can you see the command line history?

0 Answers  


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

4 Answers   IBM,


How do you find path of a directory? Give its syntax.

7 Answers  


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


How to get a particular string as your prompt ? Give syntax of that command?

3 Answers  


distinguish between paging and swapping?

3 Answers   Infosys,


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


Categories