Thursday, September 9, 2010

Linux Interview Questions: Experienced

1)How to implement Squid proxy?
2)How to see bandwidth used by ftp user?
3)How to implement Squid as reverse proxy?
4)How to see logs of Squid proxy?
  • /var/log/squid/access.log : You can use this file to find out who is using squid server and what they are doing etc
  • /var/log/squid/cache.log : The cache.log file contains the debug and error messages that Squid generates. If you start your Squid using the default RunCache script, or start it with the -s command line option, a copy of certain messages will go into your syslog facilities.
  • /var/log/squid/store.log : The store.log file covers the objects currently kept on disk or removed ones. As a kind of transaction log it is ususally used for debugging purposes.

5)How to see cache in Squid proxy?
6)How to clear Cache in Squid proxy?
Ans.: just stop squid, and erase all the files in your cache directory... for example:
squid -k shutdown

rm -fr /var/lib/squid/cache/* 
then re-create the swap directory structure:
squid -z
 7)Totally how many configuration modules are there in Squid proxy?
A)nearly some 127 modules in squid proxy
8)What is the authentication used in Samba when it is used as PDC?
9)Where is the logs present for samba PDC server?
10)Some of the logs in my system are not time stamped how to resolve this ?
11)How to see what is the encryption used by ssl?
11)How to host different domains on with different ip add on single system?
12)How to assigned different ip add to single interface?
13)How to assign different ip addresses to single interface? what is the default gateway to each ip address?