Few Important doubts and questions..(Unix/Shell)

Hi All,

I have a few questions which I am unable to solve/answer.

Please help me with them:-

  1. Command in Unix to determine if a Host is connected to the internet ?
  2. If a parenet process is killed what happens to the child process?
  3. How do I print the first 10 lines of a file in the command line?
  4. How do I refer to arguments passed to a Shell Script?
  5. How do I search for a string in a directory with subdirectories recursed?
  6. How do I view the contents of a very large error file?
  7. What is the command to list files in a directory in decreasing order of file size?
  8. What is the shell command to find all the Java files in a nested directory structure?
  9. What is the difference between SLEEP and WAIT?

Thanks in advance for your help and time.

Regards,
Shubh.

Do not post classroom or homework problems! Please read the rules!