Unix - Questions - Interview / Learning

1. To display the contents of a executable file the following command can be used

Ans : od

2. Assume the current directory contains 10 files and does'nt contain 'temp'. What will be the output of the follwing commands?

$ls > temp
$wc -l temp

Ans : 10

IITM - General Model Questions

1. 6*12*15 is the volume of some material. How many cubes can be inserted into that?

2.Two pipes can fill a tank in 10 1nd 12 hours while third pipe will make the tank
empty in 20 hours.If all three pipes operate simultaneously,in how many hours the
tank will be filled ?

3.Diameter of a beaker is 7cm. Mambler(some instrument)dia is 1.4cm.How many mamblers
has to be put to increase the water level by 5.6cm.

4.Cost of an item is x. It's value increases by p% and decreases by p%Now the new value
is 1 rupee, what is the actual value.

5.A right circular cylinder and a cone are there.Base radius of cone is equal to radius
of cylinder.What is the ratio of height to slant side.

6.Distance between two poles is 50 meters.A train goes by 48 kmph in one minute.How many
poles will be crossed by the train.

7.A pole seen from a certain distance at an angle of 15 degrees and 100 meters ahead by
30 degrees. What is th height of pole.

8.15 people--each has to pay Rs.20.. 20 people--each has to pay Rs.18.. for 40 people--how
much has to pay ?

9.if p=2q then q=r*r,if p-odd then q is even,whether we decide r is even or odd ?

a)first condition is sufficient
b)second condition is sufficient
c)both are sufficient
d)both are not sufficient

10.What is the value of m given that

i) m is devided by 2
ii) m is devided by 5

Continue Read

How to use Database Call by using easytrive?

The PSB needs to specify in program execute step like below.

%XXXXXXXX – Record layout for database which you want to use
JOB INPUT (XXXXXXXX) – Database name
It read the database and record found in it.

Mainframe - Is it possible to copy only first 100 records from one file to other file?

Yes, it’s possible to copy by using SORT utility.

SUM FIELDS=(starting position of first column, length of first column, based on variable format use
PD or ZD),STOPAFT=(in which record you want to STOP copy).


WinSCP is free sftp client / scp client / ftp client for windows. It helps to transfer files between local and remote servers. The remote server can be window or linux or unix box.

Its main advantage is :

* It have explorer
* Windows like drag and drop options
* one side local and other side remote computer file manager
* If required stored the session information
* Integrated text editor
* Can perform all common operations with files.

You can download from winscp.net/eng/download.php

htmldoc : Convert Html file to PDF

htmldoc helps to convert the hyper-text markup language files and webpages to PDF, postscript files.

How to use this in Unix / Linux

1. Download htmldoc and install it in unix / linux system.
2. Get ready with input html / web page file
3. Use command
htmldoc/bin/htmldoc_path --landscape --top --right 0 left 7mm --bottom --fontsize 10.0 --webpage -f outputfilename inputfilename

To use this in perl running in linux / unix box

Just pass on parameters and execute this command using system command in perl

You can download this from htmldoc.org

Syndicate content