Krishna Logo
qa training in canada now
Divied
Call: Anusha @ 1 (877) 864-8462

 

Latest News
Home Navigation Divied
INTERVIEW Navigation Divied UNIX INTERVIEW QUESTIONS
Showing 271 - 280 of 324 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
UNIX INTERVIEW QUESTIONS
 
271Write A Script That Prints Out Date Information In This Order: Time, Day Of Week, Day Number, Month, Year
Date Posted: 07/02/2012

274. Write a script that prints out date information in this order: time, day of week, day number, month, year
(sample output: 17:34:51 PDT Sun 12 Feb 2012)
Ans: set ‘date’
echo $4 $5 $1 $3 $2 $6
 

 
 

  Write a script that will show the following as output: Give me a U! U! Give me a N! N! Give me a I! I! Give me a X! X!     Ans:  For i in U N I X do echo Give me a $...  

 
 
Date Posted: 07/01/2012

  What do you understand by 2>&1 in UNIX? Ans: In UNIX you have STDIN, which is denoted by number 0, STDOUT, which is denoted by 1, and STDERR, which is denoted by 2. So, the above line means, the error messages go to STDERR, w...  

 
 

    Ans: It is a black hole. For example, in the earlier example, if you want to ignore error like "sh: cd: Temp: No such file or directory" being printed, you can redirect your output to /dev/null. For example 1 $ ...  

 
 
275How Do I Get A Process To Core Dump?
Date Posted: 07/01/2012

How do I get a process to core dump?
 
Ans: Send it the QUIT signal. This is usually done with Control-
It will cause the process to exit and generate a core file.
You can also use: kill -s SIGQUIT.
 

 
 
276How Do I Use The Modem Pool?
Date Posted: 07/01/2012

How do I use the modem pool?
Ans: 
Telnet appsmp01
UserID is aol
no password
type: c out
type: atdt

 
 
277How Do I Telnet Outside The Firewall?
Date Posted: 07/01/2012

How do I telnet outside the firewall?
 
Ans: 
 
Telnet gatekeeper1
auth @us
enter the response value from your SNK
connect

 
 

  How do I remove a file that begins with a hyphen? Ans: rm will normally complain about an invalid option if you say: rm -filename Most UNIX commands will behave this way, treating the characters after the hyphen as an option...  

 
 
279What Is Semaphore?
Date Posted: 07/01/2012

What is Semaphore?
Ans: A semaphore is a type of Interprocess communication resource used for synchronization and mutual exclusion between any two asynchronous processes.
 

 
 
280What Are Data Structures That Are Used For Demand Paging?
Date Posted: 07/01/2012

What are data structures that are used for Demand Paging?
Ans: Kernel contains 4 data structures for Demand paging. They are,
- Page table entries
- Disk block descriptors
- Page frame data table (pfdata)
- Swap-use table.
 

 
Showing 271 - 280 of 324 Previous | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | Next
Shadow Bottom
 
 
© 2005 -