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


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Few Important doubts and questions..(Unix/Shell)
# 1  
Old 09-30-2008
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.
# 2  
Old 09-30-2008
Do not post classroom or homework problems! Please read the rules!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script doubts

Hello please kindly solve these doubts i have about the following scripts Script 1 //Shell script that accepts arguments and prints them in reverse order// echo "number of arguments" len=$#; while do eval echo \$$len len=`expr $len - 1` done --------- Output $sh test.sh a... (3 Replies)
Discussion started by: Shynash21
3 Replies

2. Solaris

Unix scripting doubts

i hav a file like this -rwxr-xr-x 1 root controlm 4141 Nov 13 2006 /opt/scripts/prod/fvaauditlos.ksh -rwxr-xr-x 1 root controlm 3958 Nov 13 2006 /opt/scripts/prod/fvaexpchbk1.ksh -rwxr-xr-x 1 root controlm 6471 Nov 13 2006 /opt/scripts/prod/fvaexpchbk2.ksh... (24 Replies)
Discussion started by: p_satyambabu
24 Replies

3. Shell Programming and Scripting

shell scripting doubts

Hello All, I am working in a reputed software firm,currently working on testing platform (manual and automation).But I am very much intersted in unix and shell scripting,I feel that I am good at beginner level of shell scripting,still I want to practise shell scripting to become excel in it.I... (1 Reply)
Discussion started by: maheshglm
1 Replies

4. Shell Programming and Scripting

awk, sed and a shell doubts

Hi, I have 3 doubts which I posted it here. Doubt 1: I have a file containing data: 22 -73 89 10 99 21 15 -77 23 63 -80 91 -22 65 28 97 I am trying to print the fields in the reverse order and replace every field by its absolute (positive) value (ie.) I am looking for output: 10... (8 Replies)
Discussion started by: royalibrahim
8 Replies

5. UNIX for Dummies Questions & Answers

Unix doubts

Hi All, 1. how and who calls .profile when you login 2. what is PPID and what means by PPID = 0 Thanks in Advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies

6. UNIX for Dummies Questions & Answers

unix doubts

Write unix command to list or view auto links (0 Replies)
Discussion started by: ashishshah.engg
0 Replies

7. Forum Support Area for Unregistered Users & Account Problems

How to post a new thread (Regarding Unix related doubts) in Unix Forums

How to post a new thread (Regarding Unix related doubts) in Unix Forums. I registered my id but I am unable to post my Questions to Forum. Thanks & Regards, indusri (1 Reply)
Discussion started by: indusri
1 Replies

8. UNIX for Dummies Questions & Answers

Unix doubts

Hello All, I am very new to UNIX. Please help me to find answers of below questions. 1.A script is saved with name ls. When we execute the script what it will execute? a) Will execute ls command b) Will execute the script c) Will execute script or command depends on the path ... (2 Replies)
Discussion started by: aswathy
2 Replies

9. Solaris

Unix Administration doubts ********

Hi, Can anyone tell me the correct answers for these: 1. You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance? 2. How do you increase the OS limitation for open files (LINUX and/or Solaris)? Thanks:p (1 Reply)
Discussion started by: dreams5617
1 Replies

10. UNIX for Advanced & Expert Users

unix & C doubts

Hi, I have a few doubt here : 1) I want to run a 3 different 'C' programs in same session simulteneously (parelelly). if I make a shell, it is running one after another, I mean it shout run in 3 processors. 2) In 'C' program, how can I assing a value of the unix commant cat a.txt|wc... (1 Reply)
Discussion started by: krishna
1 Replies
Login or Register to Ask a Question