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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shaishaw
how will you display a file whose name is starting with '- '
$ find / -type f -name "-*" -print 2>null
/home/staff/thaler/-
/home/staff/thaler/-FF
/home/patron/polly/-n
/home/member/plucky/-w
/home/nijwala/bsn/-a.out
/home/mvpbhat/-foo
/home/mvpbhat/-l
| Is This Answer Correct ? | 0 Yes | 1 No |
How we will execute previous command in vi editor?
Explain the read, write, and execute permissions on a UNIX directory.
What is shrinking file system in AIX where it actually resides?
If we want to see first 35 lines of a file which command we have to use?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What are the dos commands?
Why is it called a shebang?
What do know about tee command and its usage?
How many bits use for MAC address?
How will you know who are the users logged in to the system before 15 minutes?
Can a process kill itself in UNIX/or in its various versions?
What is the use of tee command?