How to open a read-only file in the shell?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Shell Script Interview Questions

What is meant by $1 in shell script?

0 Answers  


How to use arguments in a script?

0 Answers  


Explain about sourcing commands?

0 Answers  


I want to connect to a remote server and execute some commands, how can I achieve this?

0 Answers  


What are the additional egrep symbols?

2 Answers  






In a file , how to retrieve the lines which are the multiples of 50 ? like 50,100,150th lines etc.

9 Answers   Amazon,


What is the fastest scripting language?

0 Answers  


What is shell scripting?

0 Answers  


How can you get the value of pi till a 100 decimal places?

0 Answers  


What does $@ mean bash?

0 Answers  


what do u mean by $#,$* in unix programming?

5 Answers   Convergys, TCS,


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

0 Answers  


Categories