GeekInterview.com
Series: Subject: Topic:

UNIX Interview Questions

Showing Questions 1 - 20 of 183 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

The root directory of disk should be placed 1. At a fixed address in main memory 2. At a fixed location on disk 3. Anywhere on the disk 4. At a fixed location on...

Asked By: Rujul | Asked On: Mar 9th, 2007

Answered by: Baikuntha Charan Das on: May 2nd, 2013

At a fixed location on the system disk

Answered by: pawan yadav on: Sep 20th, 2011

2.at a fixed location on the disk

How to compress files in UNIX and the commands used ?

Asked By: ayypss | Asked On: Feb 7th, 2007

Answered by: PALLAVI on: May 2nd, 2013

Compress or expand files.

Syntax
gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ... ]
gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name ... ]
zcat [ -fhLV ] [ name ... ]

Example:
gzip myfile

or using

compress [-c] [-f] [-v] filenames

Example: compress -v bigfile.exe

Answered by: siva on: Dec 15th, 2012

By using tar, compress, zip

How to do soft mount ?

Asked By: sendingtogaurav | Asked On: Jun 24th, 2011

Explain any precautions needs to be take before you do soft mount

Answered by: Arjun on: Feb 13th, 2013

ln -s

Boot cdrom -s

Asked By: atul | Asked On: Sep 28th, 2011

When we give boot cdrom -s which cd should be there inside cdrom ?

Answered by: tushar on: Jan 10th, 2013

For Booting cd in CD Rom the command is :

mount cd-rom/mount

Answered by: on: Jul 11th, 2012

A bootinfotable cd should be inside the cdrom when we give boot cdrom -s.

Echo command

Asked By: name is abhisek | Asked On: Nov 19th, 2012

In UNIX what is the purpose to use echo with the option "-e"?? i.E echo -e

Answered by: Manish Singh on: Dec 2nd, 2012

-e option tells echo to consider the escape sequences in the statement.

e.g. echo "Without hyphen e option
It will be the same"
Output :: Without hyphen e option
It will be the same

echo -e "With hyphen e option
It will be different"
Output :: With hyphen e option
It will be different


space.ksh cut -c 40-44,45-80 space.ksh > %.ksh grep "[80-10][0]%" %.ksh see the output after above cmd $ grep "[80-10][0]%" %.ksh 100% /opt/tivoli/tsm 80% /prod/users/edw 10% /prod/home01/sand I am not able to see the 81%,.......89% etc..how can i see them using grep " href="http://www.geekinterview.com/question_details/87652">How to grep directories

Asked By: hari.pardha | Asked On: Dec 21st, 2011

How to grep directories has reached above 80% from the df output using basin grep command.Below are the steps I have used df -h > date.Ksh grep "%" date.Ksh >space.Ksh cut -c 40-44,45-80 space.Ksh > %.Ksh grep "[80-10][0]%" %.Ksh see the output after above cmd $ grep "[80-10][0]%" %.Ksh 100% /opt/tivoli/tsm ...

Answered by: Tabrejkhan on: Sep 3rd, 2012

$ df -k|grep "1[0-9]%"
O/p:
2031440 342300 1584284 18% /
3047184 392216 2497684 14% /opt
190403 31064 149509 18% /osmf/mgmt/scheduler
3047184 391464 2498436 14% /var
/dev/cciss/c0d0p1 101086 15970 79897 17% /boot

Answered by: Santosh Nemani on: Mar 20th, 2012

#!/bin/ksh +x


df -kl|grep "<8[0-9]%>" > dfout.log
df -kl|grep "<9[0-9]%>" >> dfout.log
df -kl|grep "100%" >> dfout.log

How can you come to the home directory?

Asked By: Bindu Puvvala | Asked On: Nov 4th, 2005

Cd $home

Answered by: pravin on: Aug 24th, 2012

These are following ways to jump to the Home directory
1. cd
2. cd ~
3. cd ~
4. cd ${HOME}

Answered by: russpark on: Sep 29th, 2010

This is a vague question, so I'll provide multiple answers.1. Home differs on various flavors of UNIX, but standard for most is: /home.  To change directory to the Home directory, you would i...

How to change ownership to a file or folder ?

Asked By: kirankumar samudrala | Asked On: Apr 15th, 2011

Answered by: Krishna sagar on: Jul 31st, 2012

Chown ownername file r directory name

Answered by: Sakthi on: Apr 4th, 2012

use ::: chown command

How to find cpu utilization for only server ?

Asked By: kirankumar samudrala | Asked On: Apr 15th, 2011

Answered by: kiran78 on: Jul 20th, 2012

TOP command and prstat -a

Answered by: Rahul Gupta on: Apr 5th, 2012

By using "TOP"command we can see the CPU utilization. also u can ping the "sar" command

What is the output of kill -3 pid ?

Asked By: kirankumar samudrala | Asked On: Apr 15th, 2011

Answered by: kiran78 on: Jul 20th, 2012

kill -3 pid find the thread dump jvm process

Answered by: Pranaw on: May 6th, 2012

Kill -3 pid is used to create thread dump for the process id. This is basically used for troubleshooting and to understand what went wrong with the above process. Suppose some node of weblogic is not ...

What are the parameters in http.Conf file ?

Asked By: kirankumar samudrala | Asked On: Apr 15th, 2011

Answered by: Sandhya.Kishan on: Jul 11th, 2012

Some parameters are
1.mod_rewrite
2.WLLogFile
3.DebugConfigInfo
4.StatPath
5.CookieName
6.MaxPostSize
7.FileCaching

What is vlan ?

Asked By: ashokrockz | Asked On: Feb 23rd, 2012

What is vlan in vio server in aix ? What is its main purpose ?

Answered by: Sandhya.Kishan on: Jul 11th, 2012

VLAN stands for virtual LAN,it is a broadcast domain created by switches.With VLANs, a switch can create the broadcast domain.The purpose of VLANS is to improve network performance by separating large broadcast domains into smaller ones.


Print using string copy and concate commands

Asked By: sweetysmarty | Asked On: Apr 19th, 2010

How will you print tata alone from tata power using string copy and concate commands in c?

Answered by: Sandhya.Kishan on: Jun 15th, 2012

include
#include
#include

int main()
{

char myString[] = "TATA POWER";
char output[10];

strcpy(output,myString);
output[4] = ;

printf("OUTPUT :%s
", output);
printf("ORGINAL STRING :%s", myString);

getch();
}

Masked code

Asked By: sweetysmarty | Asked On: Apr 19th, 2010

What is the number of the masked code ee@?

Answered by: Sandhya.Kishan on: Jun 15th, 2012

022 is the number of the masked code ee@

If a file has permissions 000, then who can access the file?

Asked By: sviiit | Asked On: Jul 13th, 2007

Answered by: Keith G. on: May 21st, 2012

If all you want to do is get rid of that file, as I did, just save a known file, like a dummy text file, with that same name and overwrite the existing file. I replaced my errant directory file with a...

Answered by: raj2munna on: Dec 14th, 2009

When a file or directory is created the default permisions inherited .they arefor files :666for dir: 777Actually it is not the file permission .the "umask" value is subtracted from these def...

Masked code

Asked By: prashantyelpale | Asked On: Jul 31st, 2010

What is the number of masked code ee@?

Answered by: Bharath Yadlapalli on: May 2nd, 2012

When kill -3 command is executed, it will quit from executing the process and additionally it will dump core for that process mentioned with pid.

Answered by: Sandhya.Kishan on: Apr 9th, 2012

022 is the number of mask code ee@.

Copy command

Asked By: maniac173 | Asked On: May 26th, 2010

Assume that you are not currently in your home directory. Enter a command to copy all files in your home directory beginning with the letter 'a' to the current directory.

Answered by: sirisha on: Apr 30th, 2012

cp [a]* /export/home/

Answered by: Tdolby on: Dec 12th, 2010

cp ~/a* .

Construct pipes to execute the following jobs?

Asked By: Interview Candidate | Asked On: Mar 6th, 2005

1. Output of who should be displayed on the screen with value of total number of users who have logged in displayed at the bottom of the list.2. Output of ls should be displayed on the screen and from this output the lines containing the word ‘poem’ should be counted and the count should be stored in...

Answered by: santosh on: Mar 20th, 2012

who;echo "Total number of users: "`who|wc -l`

Answered by: kiran on: Dec 14th, 2011

Ans for question 1

echo `who`\n the number of users logged in is `who | wc -l`

Proxy server ip

Asked By: kc_ravikiran | Asked On: Jan 7th, 2008

Command to find the ip of an proxy server in UNIX

Answered by: Guest on: Mar 9th, 2012

echo $http_proxy

Answered by: Srikanth Surendra Pattar on: Oct 28th, 2011

ifconfig

What is kernel? What is the difference between kernel and microkernel? What is the difference between UNIX and LINUX? What is relational database,hierarchal database. And network database? Their difference?

Asked By: somaraju | Asked On: Mar 22nd, 2006

Answered by: SELLAPPA SIVAKUMAR on: Jan 6th, 2012

Kernel - The kernel is the main component of most computer operating systems. - It is a bridge between applications and the actual data processing done at the hardware level - The kernel is the heart ...

Answered by: Swayam Shah on: Sep 7th, 2006

Unix was developed using ‘C’ Language. Unix was the foundation on which Linux was built. Unix has Character based environment while Linux has Graphical as well as Character based environment. Unix has...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.