1-how will you display a file whose name is starting with '-
'?
2-how will you add a patten at end of every line in vi
editor?

Answer Posted / dibya lochan giri

ans of Q2-using cmd :1,$ s/$/pattern name/
or %s/$/pattern name/g

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

891


What is the first character of the output in ls l command?

915


What is the functionality of a top command?

879


Give the command for finding the current date.

805


How can we use grep command in unix?

890


How do I search for a file in unix command?

788


What is updatedb?

798


Enumerate some of the most commonly used network commands in unix?

900


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 # include 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:

2006


What is the use of find command in unix?

801


How do you grep a case insensitive?

775


Write a command to display a file’s contents in various formats?

894


What is the command to find hidden files in the current directory?

899


How can you see the command line history?

870


How to find $ai_serual resolved path by using unix

1318