In UNIX, what is the command to edit contents of the file?
Answers were Sorted based on User's Feedback
Answer / shaishaw
Commands like vi filename, sed, awk , nawk can be used
Is This Answer Correct ? | 4 Yes | 0 No |
How to redirect standard error to a file?
In Unix file permissions what does the second field denotes?
How to view the hidden files in /etc directory?
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 ?
How can you see the command line history?
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
How do you find path of a directory? Give its syntax.
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How to get a particular string as your prompt ? Give syntax of that command?
distinguish between paging and swapping?
How will you know who are the users logged in to the system before 15 minutes?