unix

Interview Questions and Answers

Unix

Question:
Which command is used to delete all files in the current directory and all its sub-directories?
Answer:

rm -r *

--- >>>

Unix - Questions
1. What are the process states in Unix?
Answer
2. What Happens when you execute a program?
Answer
3. What Happens when you execute a command?
Answer
4. What are various IDs associated with a process?
Answer
5. Explain fork() system call.
Answer
6. "Predict the output of the following program code. main()
{
fork();
printf(""Hello World!"");
}"
Answer
7. " Predict the output of the following program code main() <> { fork(); fork(); fork(); printf(""Hello World!""); }"
Answer
8. What is difference between ps -ef and ps -auxwww?
Answer
9. How do you find how many cpu are in your system and there details? Read more: http://javarevisited.blogspot.com/2011/05/unix-command-interview-questions.html#ixzz2w1QSwqo9
Answer
10. What is difference between HardLink and SoftLink in UNIX? Read more: http://javarevisited.blogspot.com/2011/05/unix-command-interview-questions.html#ixzz2w1QalkZe
Answer
11. In a file word UNIX is appearing many times? How will you count number?
Answer
12. How do you check if a particular process is listening on a particular port on remote host?
Answer
13. How do you find which processes are using a particular file?
Answer
14. What is ephemeral port in UNIX?
Answer
15. If one process is inserting data into your MySQL database? How will you check how many rows inserted into every second?
Answer
16. There is a file Unix_Test.txt which contains words Unix, how will you replace all Unix to UNIX?
Answer
17. You have a tab separated file which contains Name, Address and Phone Number, list down all Phone Number without there name and Addresses?
Answer
18. Your application home directory is full? How will you find which directory is taking how much space?
Answer
19. How do you find for how many days your Server is up?
Answer
20. You have an IP address in your network how will you find hostname and vice versa?
Answer
21. Write command to list all the links from a directory?
Answer
22. Create a read-only file in your home directory?
Answer
23. How do you know if a remote host is alive or not?
Answer
24. Define message queue?
Answer
25. Define directory and filename?
Answer
26. List down the different file types?
Answer
27. What are the options available to determine the group ID of the new file?
Answer
28. What is called a page fault?
Answer
29. What are the different types of buffering is supported by UNIX?
Answer
30. What is the purpose of exec functions?
Answer
31. Define process group?
Answer
32. What are shell variables?
Answer
33. what are the different commands used to create files?
Answer
34. What is chmod, chown and chgrp?
Answer
35. What are PIDs?
Answer
36. How to close the current user account?
Answer
37. What are the features and benefits of unix?
Answer
38. Explain the following commands.
Answer
39. Which of the following commands is not a filter man , (b) cat , (c) pg , (d) head
Answer
40. What is the difference between cat and more command?
Answer
41. What will the following command do?
Answer
42. Is it possible to restrict incoming message?
Answer
43. What is the use of the command "ls -x chapter[1-5]"
Answer
44. How does the kernel differentiate device files and ordinary files?
Answer
45. Explain kill() and its possible return values.
Answer
46. What is relative path and absolute path.
Answer
47. How do you execute one program from within another?
Answer
48. What is IPC? What are the various schemes available?
Answer
49. Brief about the initial process sequence while the system boots up.
Answer
50. List the system calls used for process management:
Answer
General Knowledge Quiz
3001 Bizarre Facts
Dictionary
Elementary English Grammar Test
Standard English Grammar Test
Advanced English Grammar Test
Daily English Quiz
English Test
Grammar Examination
ESL / EFL Test
Grammar Test
Antonyms
Synonyms
Homonyms
Vocabulary Examination
Word Analogy
Vocabulary Flashcards
Idioms
Idioms Quiz
Quantitative Aptitude Test
iQ Quiz Game
Verbal Reasoning Quiz - Mind Game
English Question Answer
Vocabulary Game 1
Vocabulary Game 2
Scramble Word Game
Common Mistakes
Confusing Words
Basic English Usage
English Grammar
Prepositions
English Phrases
Learn English
Word Game
Interview Questions and Answers
Educational Quiz Games