amazon

Tuesday, April 26, 2011

Interview Preparation - 14

206. How to send automated email to a set of people at fixed time?
Just create a alias of people and create a command file and create a crond entry
What would you do when all the processess hangs and there is no other option in unix?
killall -HUP <service name> //it will automatically stop
and start the servies mentioned//

Starting IBM HTTP Server. To start IBM HTTP Server using the default httpd.conf configuration file, run the apachectl start command.
Stopping IBM HTTP Server. To stop IBM HTTP Server using the default httpd.conf configuration file, run the apachectl stop command.
Issue the commands from the default directories, based on your operating system:
/usr/IBMIHS/bin/apachectl start|stop
/opt/IBMIHS/bin/apachectl start|stop

207. Differences between TCP and UDP
TCP
1) TCP -Transmission control protocol
2) TCP is a connection oriented protocol.
3) Three way handshake happens between client and server.
4) TCP is a reliable data transfer
5) slow transmissions of data compare to UDP.
6) TCP is used to send file like database, where reliability play the first role
UDP
1)UDP -User Datagram protocol
2)UDP is connectionless protocol
3)NO 3 way handshake
4)Not a reliable data transfer
5)Faster than TCP
6)used to send data like video, audio

208. What is NFS? What is its job?
Answer: NFS stands for Network File System. NFS enables filesystems physically residing on one computer system to be used by other computers in the network, appearing to users on the remote host as just another local disk.

209. What is CVS? List some useful CVS commands.(Asked by Silicon Magic Corp.people)
Anser: CVS is Concurrent Version System. It is the front end to the RCS revision control system which extends the notion of revision control from a collection of files in a single directory to a hierarchical collection of directories consisting of revision controlled files. These directories and files can be combined together to form a software release.
There are some useful commands that are being used very often. They are
cvs checkout
cvs update
cvs add
cvs remove
cvs commit

210. What is DNS?
DNS (Domian name server)
DNS resolves hostname to IP address (forward lookup),
resolves IP address to hostname (reverse lookup), it allows machines to logically grouped by name domain, provides email routing.
DNS port: 53
dameon: named
4. Questions asked in novatium :
1) purpose of nsswitch.conf
2) purpose of /etc/resolv.conf
3) port number for dns , http
2. How to create swap file?
To create a swap file
>> mkswap /dev/hdax
add entry in the /etc/fstab (should look like similar)
/dev/hdax swap swap defaults 0 0
>> swapon -a (activates the swap partition)
>> swapon -s (checks the swap partition)