• #### Find Possible Number of Combinations

There are A, B techers and C,D doctors. Find the possible no. of combinations that should not be repeated more than once?

#### Abinaya Roshini

• Jan 17th, 2011

24 number of possibilities

#### manishkraasawat

• Jul 7th, 2010

There are 15 possible combination 4C1+ 4C2 + 4C3+ 4C4= 15One value missed is ACD in the above given 14 combinations.

• #### Program Termination

If a program is terminated at the middle of execution in UNIX, What will happen to the program?

#### UncaAlby

• May 16th, 2010

Nothing, actually. The OS will halt program execution, retrieve whatever resources the program was using, close whatever files it had open, and go back to doing everything else an OS does. If there is...

• #### Join Two CSV Text Files

Write a shell script to join two CSV text files based on value of some columns?

#### abdas

• Jun 26th, 2011

Cat file1 file2 >  file3

#### nkumar85

• May 18th, 2010

Bash does not support this kind of feature, you can do this in PERL, because PERL supports all feature which are needed to work with CSV worksheets.

• #### Stored Procedure

Which version of MySQL does not support stored procedure?

#### UncaAlby

• Apr 18th, 2010

Stored procedures were introduced as a new feature in version 5.0.

• #### Calculate and print the amount of money paid to each worker

A carpenter is paid a contract fee of \$2000 for 3 days work. He hires 3 workers who work for 3 days at \$75 a day. Calculate and print the amount of money paid to each worker, the total paid to each worker,the total paid to all workers and the amount the carpenter is left with.

#### Abinaya Roshini

• Jan 17th, 2011

The amount paid to each worker is 75 per day, total paid for each worker is 225, total paid for all workers is 675, the money left for carpenter is 1325.

#### levteck

• Sep 13th, 2010

Each worker get 3 times \$75 for a total of \$225 after three days3 workers were hired so total of all workers would cost  \$675the total contract was \$2000 minus total labor cost \$675  then \$1325 remains to the carpenter.

• #### A company gives out bonuses

A company gives out bonuses based on the amount of income generated by their sales representatives per month. Once the income generated is greater than or equal to \$10,000 a bonus of 20% is given. If the income generated is greater than or equal to \$8000 but less than \$10,000 a bonus of 15% is given. If the income generated is greater than or equal to \$5000 then a 3% bonus is given. Read the income...

#### Abinaya Roshini

• Jan 17th, 2011

For sales representative gaining income above or equal to 10000 the bonus will be 2000 and above,if income range between 8000 to 10000 the bonus will be a range of 1200 to1500,if income equal to or above 5000 the bonus will be 150 and above

#### yuviii

• Apr 24th, 2010

Let x be the income generated.if x>=10,000 then bonus is 2000Rs therefore the income left is 8,000.if x>=8,000 and <10,000 then bonus is 1,200Rs therefore the income left is 6,800.if x>=5000 then bonus is 150Rs therefore the income left is 4,850.

• #### Pipes are laid by an oil company

Pipes are laid by an oil company. If the company has to lay down 3km of pipes and each pipe is 25 meters long, calculate and print the number of pipes needed to cober the distance

#### Gulshan Chawla

• Feb 27th, 2011

120 pipes

#### gkunarapu

• Feb 21st, 2011

120 pipes

• #### Solaris Server Backup

How to take backup from Solaris Server?

#### vivek

• Dec 17th, 2012

Boot -s
fsck /dev/rdks/c1t0d0s0
#ufsdump 0uf /dev/rmt/0 /dev/rdsk/c1t0d0s0
for restore
#ufsrestore /dev/rmt/0 /

#### osmond

• Sep 14th, 2012

The arp command is used to manage entries in the ARP cache. To display the entries in the ARP cache, use the –a option,

• #### Migrate File Systems

How to migrate file systems from one server to another server in Solaris?

#### UncaAlby

• Apr 20th, 2010

If it's not a bootable file system, it's pretty straightforward.I'm assuming that by "migrate" you mean to completely remove a disk from one machine to put into another.  If...

• #### Solaris Patching

What is patching in Solaris?

#### UncaAlby

• Apr 20th, 2010

Patching is the process whereby you repair bugs or add new features in the system.  Sun keeps a repository of patches based on the hardware and release level, and you should review that repositor...

• #### Decommission Solaris Server

How to decommission a Solaris Server?

#### shamithlal

• Jun 22nd, 2010

That was a cool answer to unplug...What if that was a server with NIS/Storage connected.For a decom, you should first check for the active services on the server.something likeps -aef | grep -i ypfor ...

#### UncaAlby

• Apr 20th, 2010

Unplug it.

• #### Database BackUp

How will you take database backup when there is no space in file system?

#### ericpro

• Nov 21st, 2014

You can also try using remote backup so you can dump to another server with available space. of course you have to configure the interfaces between the servers to allow this.

• May 20th, 2011

I would dump the database to a removable storage device.

• #### Motivate yourself

What motivates you to put forth your greatest effort? Describe a situation in which you did so.

#### moonshekar

• Jan 9th, 2011

Someone says it can't be done, that when i get motivated to do it at any cost. You always get a sense of satisfaction that you could complete a task that was considered imposible by someone.This would always make you confident

#### saritha1406

• Oct 13th, 2010

Never accept your failure in life.Everything is possible when we put effort in that.

• #### srand() and rand() Functions

Explain srand() and rand() Functions

#### UncaAlby

• Apr 20th, 2010

rand() uses what is known as a "multiplicative congruential" method for generating pseudo-random numbers between 0 and 32767.  (The exact maximum can be system dependent.)It will start ...

• #### Grep

How to use logical AND in grep?

#### UncaAlby

• Dec 12th, 2008

By logical "and" I presume you mean that you wish to see lines that contain both "expressionOne" AND "expressionTwo".Just pipe the standard output of one "grep"...

• #### UID and GID

What does UID and GID signify?

#### swetha_0505

• Oct 26th, 2009

To find a user's UID or GID in Unix, use the id command. To find a specific user's UID, at the Unix prompt, enter: id -u username Replace username with the appropriate user's username. To find ...

#### Vijaymorey

• Apr 28th, 2009

UID - User idGID - Group idWe can find out using sample command fire @ \$ promoit "id" you will user id & group id.e. g step 1 : \$ id ---> O/p get display immediately uid=232(vi...

• #### Add Not Null Column in a Table

How we can add a NotNull Column in a table by using alter command (without using default command)?

#### Tejas More

• Jul 7th, 2011

You can add a NOT NULL column to a table. This means that a constant expression, and not a null value, is placed in the column when the column is added. This also ensures that, for all existing rows, ...

#### UncaAlby

• Oct 20th, 2008

First add the column as NULL. Then populate the column with non-null data. Then modify the column to NOT NULL. You may need to set dboption "select into" to True.

• #### Log File Information

How can we get information about log files in the database?

#### UncaAlby

• Nov 3rd, 2008

That is a vendor-specific question.In Sybase, you can get log file information as follows:prompt\$ isql1> sp_help {database} 2> goThat will list the devices used by the database, including log de...

#### nahomteshale

• May 9th, 2011

I would like to avoid micro management and avoid receiving in and out info. The manager should emphasize on the strategic one while the employee may concentrate on how to achieve the ultimate goal with minor guidelines.

#### UncaAlby

• Apr 20th, 2010

I would like to avoid being micro-managed. I know what I'm doing, and I know how to do it. The manager should just tell me what needs to be done, when it's needed, and the constraints. After that, just let me carry the ball and get out of my way.

• #### rollback command

what is rollback command in unix?

#### UncaAlby

• Apr 20th, 2010

There is no "rollback" Unix command.The "lost+found" directory has no functionality analogous to the Windows "recycle bin".  This directory is where the "fsck&q...

#### sham2sushil

• Dec 14th, 2009

We don't have any rollback command in unix. But we have one folder "lost+Find" in the root area. This is like windows recycle bin. Size of this folder is set by UNIX administrator.

?

#### UncaAlby

• Nov 8th, 2008

Yes, it is executed by the hardware like any other program.  It controls itself.This is why you have the concept of a kernel, which would be the smallest possible piece of the operating system th...

#### sk_seeker

• Dec 22nd, 2007

Execution contexts can be of two types: thread/process context OR an Interrupt context. What this means is that to execute code, one has to be in a thread context or a an Interrupt context. OS code or...

#### Manisha Kumari

• Jun 15th, 2017

In Esc mode, dw

#### sambit

• Mar 28th, 2017

Sed command with -i option will make the changes persistent in the file. You dont need the redirection operator to submit the changes to a new file. The answer is:

sed -i s/word_to_delete/word_to_replace_with/g file_name

#### abrenar

• Nov 4th, 2009

Most UNIX servers are configured not to use FTP or TELNET for security purposes, and if you use FTP it has limited number of data can be transfered on one transaction hence I preferred using another w...

#### UncaAlby

• Nov 8th, 2008

If you can't get Samba, or you're not the Admin so you can't install it anyway, then use FTP, as it's almost guaranteed to be installed and running on both machines.  The only han...

• #### What difference between cmp and diff commands?

cmp - Compares two files byte by byte and displays the first mismatchdiff - tells the changes to be made to make the files identical

#### Anupam Kumar

• Nov 2nd, 2016

Com - will give the difference between two files; data available only in file 1 or file 2; data available in both the file.
Diff - will give difference between two file in a way that how file 1 and be in sync with file 2.

#### Deepak

• Sep 3rd, 2014

To check the differences between the data of two files cmp command is used. But it displays only the first difference. Syn: \$ cmp file1 file2 To display all the differences between the files diff comm...