Error
PHP Parse error: syntax error, unexpected T_STRING
Please add the following line in the php_flag short_open_tag X in the .htaccess file and
short_open_tag = X in the php.ini file under the clients folder on the suexcec server and then check .
ABHIONLINUX
Site useful for linux administration and web hosting
2009/09/06
2009/09/05
Interview Question Linux (samples)
Part 1:
1. Two Diffrent ways to configure Apache and how ?
2. Name virtual host or IP virtual host is good ? Why?
3. What is SMARTHOST in sendmail ?
4. How can we disable a users login ?
5. Can we change the primary group of a user after creating a user?
6. How you secure a linux box?
7. Situavation in a big company - They have 2mbps leased line and 1mbps line, you have to give the 2mbps line to developers and 1 mpbs line to sales peoples with any controllers? How can you handle this situvation ?
8. Port numbers for telnet and pop3?
9. Diffrence between Hardlink and Softlink?
10.File systems in Linux?
11.What will you do when a file system corrupt. How you handle it?
--------------------------------------------------------------------------
Part 2:
1. How to take apache core dump?
2. Difference between IMAP and POP3?
3. Ext2 and Ext3 ?
4. How to point abc.com to a serverlet page ?
5. How to handle segmentation faults in apache?
6. Tcpdump ?
7. Difference between TCP and UDP ?
8. SSL ? what is its significance?
9. Which service is using UDP protocol ?
10.Which is using TCP protocol ?
11. .htaccess importance ?
12.Which one you opt - changes in apache config or change in .htaccess ?
13. Difference between RAID1 and RAID 5?
14. What is lost+found in linux ?
--------------------------------------------------------------------
Part 3:
1. Why do we need Apache, Does the Tomcat can handle the same ?
2. How can we integrate Apache with Tomcat ?
3. Versions that you are using for Apache,Tomcat,Mysql ?
4. Working of Nagios ?
5. How to add a new server to Nagios for monitorng ?
6. How to create a repository in SVN ?
7. Why we remove the work folder in Tomcat while deploying new war files ?
8. Mysql replication, advantages, which all files need to be edited for replication ?
9. What is a contest ?
10.Difference between Mysql and Sql ?
11.Why and what we do for OUT OF MEMORY error ?
12.Configuration files for Tomcat ?
13.How can we increase the memory in Tomcat ?
14.Is there any diffrence between Tomcat and JBoss ?
15.How can we do Virtual hosting in Tomcat ?
16.Memory Heap ?
--------------------------------------------------------------------------------
Questions in Operating systems:
28. Describe four general strategies for dealing with deadlocks.
29. For single unit resources, we can model resource allocation and requests as a directed graph connecting processes and resources. Given such a graph, what is involved in deadlock detection.
30. Is the following system of four processes with 2 resources deadlocked?
Current allocation matrix
P1 1 3
P2 4 1
P3 1 2
P4 2 0
Current request matrix
P1 1 2
P2 4 3
P3 1 7
P4 5 1
Availability Vector
1 4
If the availability vector is as below, is the system above still deadlocked?
2 3
Is the system deadlocked if the availability is
2 4
31. Assuming the operating system detects the system is deadlocked, what can the operating system do to recover from deadlock?
32. What must the banker's algorithm know a priori in order to prevent deadlock?
33. Describe the general strategy behind dealock prevention, and give an example of a practical deadlock prevention method.
34. Filesystems can support sparse files, what does this mean? Give an example of an application's file organisation that might benefit from a file system's sparse file support.
35. Give an example of a scenario that might benefit from a file system supporting an append-only access write.
36. Give a scenario where choosing a large filesystem block size might be a benefit; give an example where it might be a hinderance.
37. Give an example where contiguous allocation of file blocks on disks can be used in practice.
38. What file access pattern is particularly suited to chained file allocation on disk?
39. What file allocation strategy is most appropriate for random access files?
40. Compare bitmap-based allocation of blocks on disk with a free block list.
41. How can the block count in an inode differ from the (file size / block size) rounded up to the nearest integer. Can the block count be greater, smaller, or both.
42. Why might the direct blocks be stored in the inode itself?
43. Given that the maximum file size of combination of direct, single indirection, double indirection, and triple indirection in an inode-based filesystem is approximately the same as a filesystem soley using triple indirection, why not simply use only triple indirection to locate all file blocks?
44. What is the maximum file size supported by a file system with 16 direct blocks, single, double, and triple indirection? The block size is 512 bytes. Disk block numbers can be stored in 4 bytes.
45. The berkely fast filesystem (and Linux Ext2fs) use the idea of block groups. Describe what this idea is and what improvements block groups have over the simple filesystem layout of the System V file system (s5fs).
46. What is the reference count field in the inode? You should consider its relationship to directory entries in you answer.
47. The filesystem buffer cache does both buffering and caching. Describe why buffering is needed. Describe how buffering can improve performance (potentially to the detriment of file system robustness). Describe how the caching component of the buffer cache improves performance.
48. What does flushd do on a UNIX system?
49. Why might filesystems managing external storage devices do write-through caching (avoid buffering writes) even though there is a detrimental affect on performance.
50. Describe the difference between external and internal fragmentation. Indicate which of the two are most likely to be an issues on a) a simple memory memory mangement machine using base limit registers and static partitioning, and b) a similar machine using dynamic partitioning.
51. List and describe the four memory allocation algorithms covered in lectures. Which two of the four are more commonly used in practice?
52. Base-limit MMUs can support swapping. What is swapping? Can swapping permit an application requiring 16M memory to run on a machine with 8M of RAM?
53. Describe page-based virtual memory. You should consider pages, frames, page tables, and Memory Management Units in your answer.
54. Give some advantages of a system with page-based virtual memory compared to a simply system with base-limit registers that implements swapping.
55. Describe segmentation-based virtual memory. You should consider the components of a memory address, the segment table and its contents, and how the final physical address is formed in your answer.
56. What is a translation look-aside buffer? What is contained in each entry it contains?
57. Some TLBs support address space identifiers (ASIDS), why?
58. Describe a two-level page table? How does it compare to a simple page table array?
59. What is an inverted page table? How does it compare to a two-level page table?
60. What are temporal locality and spatial locality?
61. What is the working set of a process?
62. How does page size of a particular achitecture affect working set size?
63. What is thrashing? How might it be detected? How might one recover from it once detected?
64. Enumerate some pros and cons for increasing the page size.
65. Describe two virtual memory page fetch policies. Which is less common in practice? Why?
66. What operating system event might we observe and use as input to an algorithm that decides how many frames an application receives (i.e. an algorithm that determines the application's resident set size)?
67. Name and describe four page replacement algorithms. Critically compare them with each other.
-------------------------------------------------------------------
GOOGLE - Round 1 & 2
http://google.com
1.Introduction.
2.Current work setup.
3.Most challenging job that done in life.
4.Job that i can't handle in my life.
5.Difference between windows and linux.
6.Why the need for varoius linux distributions live Debian, redhat,fedora etc.
7.Different package management in linux.
8.Purpose of Load balancer
9.How to implement load balancer
10.If a call from a loadbalancer to an application server, then the reply to that call from loadbalancer to the client or directly to the client.
11.Difference between http and https.
12.Steps in SSL.
13.How the browser knows the site is https or not.
14.Kernal compilation.
15.What is GPL license
16.Whats the purpose of master-master db replication.
17.In an organization there are 1000 pupils, they need different levels of access, how we can implement it. If an marketing guy in travel needs to access local network as well as VPN, how we can implement.
GOOGLE - Round 3
http://google.com
1. Ports and Tcp/UDP for the following services
ssh,http,imap,pop3,ldap,imaps
2. You are asked to setup a few hundrends of machine for a conference how you setup?
3. One person can get internet in home, but when he comes in office, internet
not working. What all things will check? He has his ip and able to ping....etc...
4. Working of DHCP?
5. DHCP comes in which layer?
6. You are asked to copy some official and personal files from an old laptop to a new one
will you copy?
7. What is google?
8. What all things we can see in command "ifconfig"
GOOGLE - Round 4
http://google.com
1. mgetty
2. Booting preocess of linux in depth.
3. Kernal --> vmlinux --> authentication process --> initrd
4. Suppose we are copying a file over scp with 2 machines. How they transfer. How the bits
or bytes are getting copyied?
5. PAM
6. Operating System in depth.
7. Why you choose Systems Administration jobs
GOOGLE - Round 5
http://google.com
1. package managment in linux.
2. Working of apt-get full.
3. Working of mail server in depth.
4. DB replication, if 2 persons commiting at same time, which will take in action
5. Working of google search engine.
6. If i get cores of cores of dollars, how i start a company like GOOGLE.
-------------------------------------------------------------------
Describe the terms given below:
Grid Computing
Round robin DNS
Load balancer
Master-Master Mysql database configeration or master-slave mysql database configeration.
Just search for answers and you can post a reply to this post.
1. Two Diffrent ways to configure Apache and how ?
2. Name virtual host or IP virtual host is good ? Why?
3. What is SMARTHOST in sendmail ?
4. How can we disable a users login ?
5. Can we change the primary group of a user after creating a user?
6. How you secure a linux box?
7. Situavation in a big company - They have 2mbps leased line and 1mbps line, you have to give the 2mbps line to developers and 1 mpbs line to sales peoples with any controllers? How can you handle this situvation ?
8. Port numbers for telnet and pop3?
9. Diffrence between Hardlink and Softlink?
10.File systems in Linux?
11.What will you do when a file system corrupt. How you handle it?
--------------------------------------------------------------------------
Part 2:
1. How to take apache core dump?
2. Difference between IMAP and POP3?
3. Ext2 and Ext3 ?
4. How to point abc.com to a serverlet page ?
5. How to handle segmentation faults in apache?
6. Tcpdump ?
7. Difference between TCP and UDP ?
8. SSL ? what is its significance?
9. Which service is using UDP protocol ?
10.Which is using TCP protocol ?
11. .htaccess importance ?
12.Which one you opt - changes in apache config or change in .htaccess ?
13. Difference between RAID1 and RAID 5?
14. What is lost+found in linux ?
--------------------------------------------------------------------
Part 3:
1. Why do we need Apache, Does the Tomcat can handle the same ?
2. How can we integrate Apache with Tomcat ?
3. Versions that you are using for Apache,Tomcat,Mysql ?
4. Working of Nagios ?
5. How to add a new server to Nagios for monitorng ?
6. How to create a repository in SVN ?
7. Why we remove the work folder in Tomcat while deploying new war files ?
8. Mysql replication, advantages, which all files need to be edited for replication ?
9. What is a contest ?
10.Difference between Mysql and Sql ?
11.Why and what we do for OUT OF MEMORY error ?
12.Configuration files for Tomcat ?
13.How can we increase the memory in Tomcat ?
14.Is there any diffrence between Tomcat and JBoss ?
15.How can we do Virtual hosting in Tomcat ?
16.Memory Heap ?
--------------------------------------------------------------------------------
Questions in Operating systems:
28. Describe four general strategies for dealing with deadlocks.
29. For single unit resources, we can model resource allocation and requests as a directed graph connecting processes and resources. Given such a graph, what is involved in deadlock detection.
30. Is the following system of four processes with 2 resources deadlocked?
Current allocation matrix
P1 1 3
P2 4 1
P3 1 2
P4 2 0
Current request matrix
P1 1 2
P2 4 3
P3 1 7
P4 5 1
Availability Vector
1 4
If the availability vector is as below, is the system above still deadlocked?
2 3
Is the system deadlocked if the availability is
2 4
31. Assuming the operating system detects the system is deadlocked, what can the operating system do to recover from deadlock?
32. What must the banker's algorithm know a priori in order to prevent deadlock?
33. Describe the general strategy behind dealock prevention, and give an example of a practical deadlock prevention method.
34. Filesystems can support sparse files, what does this mean? Give an example of an application's file organisation that might benefit from a file system's sparse file support.
35. Give an example of a scenario that might benefit from a file system supporting an append-only access write.
36. Give a scenario where choosing a large filesystem block size might be a benefit; give an example where it might be a hinderance.
37. Give an example where contiguous allocation of file blocks on disks can be used in practice.
38. What file access pattern is particularly suited to chained file allocation on disk?
39. What file allocation strategy is most appropriate for random access files?
40. Compare bitmap-based allocation of blocks on disk with a free block list.
41. How can the block count in an inode differ from the (file size / block size) rounded up to the nearest integer. Can the block count be greater, smaller, or both.
42. Why might the direct blocks be stored in the inode itself?
43. Given that the maximum file size of combination of direct, single indirection, double indirection, and triple indirection in an inode-based filesystem is approximately the same as a filesystem soley using triple indirection, why not simply use only triple indirection to locate all file blocks?
44. What is the maximum file size supported by a file system with 16 direct blocks, single, double, and triple indirection? The block size is 512 bytes. Disk block numbers can be stored in 4 bytes.
45. The berkely fast filesystem (and Linux Ext2fs) use the idea of block groups. Describe what this idea is and what improvements block groups have over the simple filesystem layout of the System V file system (s5fs).
46. What is the reference count field in the inode? You should consider its relationship to directory entries in you answer.
47. The filesystem buffer cache does both buffering and caching. Describe why buffering is needed. Describe how buffering can improve performance (potentially to the detriment of file system robustness). Describe how the caching component of the buffer cache improves performance.
48. What does flushd do on a UNIX system?
49. Why might filesystems managing external storage devices do write-through caching (avoid buffering writes) even though there is a detrimental affect on performance.
50. Describe the difference between external and internal fragmentation. Indicate which of the two are most likely to be an issues on a) a simple memory memory mangement machine using base limit registers and static partitioning, and b) a similar machine using dynamic partitioning.
51. List and describe the four memory allocation algorithms covered in lectures. Which two of the four are more commonly used in practice?
52. Base-limit MMUs can support swapping. What is swapping? Can swapping permit an application requiring 16M memory to run on a machine with 8M of RAM?
53. Describe page-based virtual memory. You should consider pages, frames, page tables, and Memory Management Units in your answer.
54. Give some advantages of a system with page-based virtual memory compared to a simply system with base-limit registers that implements swapping.
55. Describe segmentation-based virtual memory. You should consider the components of a memory address, the segment table and its contents, and how the final physical address is formed in your answer.
56. What is a translation look-aside buffer? What is contained in each entry it contains?
57. Some TLBs support address space identifiers (ASIDS), why?
58. Describe a two-level page table? How does it compare to a simple page table array?
59. What is an inverted page table? How does it compare to a two-level page table?
60. What are temporal locality and spatial locality?
61. What is the working set of a process?
62. How does page size of a particular achitecture affect working set size?
63. What is thrashing? How might it be detected? How might one recover from it once detected?
64. Enumerate some pros and cons for increasing the page size.
65. Describe two virtual memory page fetch policies. Which is less common in practice? Why?
66. What operating system event might we observe and use as input to an algorithm that decides how many frames an application receives (i.e. an algorithm that determines the application's resident set size)?
67. Name and describe four page replacement algorithms. Critically compare them with each other.
-------------------------------------------------------------------
GOOGLE - Round 1 & 2
http://google.com
1.Introduction.
2.Current work setup.
3.Most challenging job that done in life.
4.Job that i can't handle in my life.
5.Difference between windows and linux.
6.Why the need for varoius linux distributions live Debian, redhat,fedora etc.
7.Different package management in linux.
8.Purpose of Load balancer
9.How to implement load balancer
10.If a call from a loadbalancer to an application server, then the reply to that call from loadbalancer to the client or directly to the client.
11.Difference between http and https.
12.Steps in SSL.
13.How the browser knows the site is https or not.
14.Kernal compilation.
15.What is GPL license
16.Whats the purpose of master-master db replication.
17.In an organization there are 1000 pupils, they need different levels of access, how we can implement it. If an marketing guy in travel needs to access local network as well as VPN, how we can implement.
GOOGLE - Round 3
http://google.com
1. Ports and Tcp/UDP for the following services
ssh,http,imap,pop3,ldap,imaps
2. You are asked to setup a few hundrends of machine for a conference how you setup?
3. One person can get internet in home, but when he comes in office, internet
not working. What all things will check? He has his ip and able to ping....etc...
4. Working of DHCP?
5. DHCP comes in which layer?
6. You are asked to copy some official and personal files from an old laptop to a new one
will you copy?
7. What is google?
8. What all things we can see in command "ifconfig"
GOOGLE - Round 4
http://google.com
1. mgetty
2. Booting preocess of linux in depth.
3. Kernal --> vmlinux --> authentication process --> initrd
4. Suppose we are copying a file over scp with 2 machines. How they transfer. How the bits
or bytes are getting copyied?
5. PAM
6. Operating System in depth.
7. Why you choose Systems Administration jobs
GOOGLE - Round 5
http://google.com
1. package managment in linux.
2. Working of apt-get full.
3. Working of mail server in depth.
4. DB replication, if 2 persons commiting at same time, which will take in action
5. Working of google search engine.
6. If i get cores of cores of dollars, how i start a company like GOOGLE.
-------------------------------------------------------------------
Describe the terms given below:
Grid Computing
Round robin DNS
Load balancer
Master-Master Mysql database configeration or master-slave mysql database configeration.
Just search for answers and you can post a reply to this post.
Subscribe to:
Posts (Atom)