GeekInterview.com
Series: Subject: Topic:

UNIX Interview Questions

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

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...

What is the output of kill -3 pid ?

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

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 ...

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

Kill-3 pid tells the compiler to kill the process with the process id 3.

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* .

How to find cpu utilization for only server ?

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

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

Answered by: Mayukh Tokedar on: Mar 30th, 2012

TOP command in UNIX is used to know about CPU utilization

How to change ownership to a file or folder ?

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

Answered by: Sakthi on: Apr 4th, 2012

use ::: chown command

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`

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: 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

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 vlan ?

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

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

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...

Ibm-aix file system question

Asked By: sweetysiva29 | Asked On: Dec 10th, 2011

Creating file system with already created lv and and without lv.. What is the difference between these two??

Answered by: sreemon on: Jan 4th, 2012

In computer storage, logical volume management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes. In particular, a volum...

What permissions do we need to kill a process ?

Asked By: anandvoona | Asked On: Jun 10th, 2011

Answered by: kamalkvp on: Dec 22nd, 2011

9

Answered by: Prasanna Natta on: Aug 11th, 2011

we need root access to kill the process.But have to check before killing process whether it is using by any user and importance of that process.

Sleep and wait in LINUX

Asked By: rajges | Asked On: Sep 27th, 2011

What is the difference between sleep and wait in LINUX ?

Answered by: Anand Trimbake on: Nov 22nd, 2011

The wait command man page simply states that it pauses script execution until a specified process ID completes.

The man page for the sleep command is a single line stating that it causes a script to pause for specified period of time.

Ibm-aix interview questions:1. Why is the . Not included in the path? 2. How will you mirror a volume and how will you find if a volume is mirrored ? Lsvg –l (vol gp name) 3. A system is echoing the...

Asked By: abhi_jais | Asked On: Oct 30th, 2006

Answered by: Ansil on: Oct 10th, 2011

14.Depend on utilization% of sys,wait and usr a) If sys is showing high value, there may be more kernel system calls b) If usr is high ,the application space is using CPU for their operation c) If wa...

Answered by: Ramya on: Oct 5th, 2011

The '.' indicates the current directory. If the PATH environment variable is not set to look for commands in current directory, you need to use a './' before executing any command in the current directory.

Boot cdrom -s

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

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

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: pawan yadav on: Sep 20th, 2011

2.at a fixed location on the disk

Answered by: eramitsingh on: Nov 17th, 2009

At a fixed address in memory location.

What is difference between hard and soft mount?

Asked By: sanjay | Asked On: Jul 9th, 2006

Answered by: Petratch on: Aug 24th, 2011

NFS supports two types of mounts -- hard mounts and soft mounts. If a mount is a hard mount, an NFS request affecting any part of the mounted resource is issued repeatedly until the request is satisfi...

Answered by: msrao on: Oct 2nd, 2007

If a remote file system is hard mounted on a server, in some case the server is down,While boot the server checks the hard mount of the remote file sytem the boot, if remote systm also down, at the pa...

Explain the UNIX kernel?

Asked By: Beena | Asked On: Sep 19th, 2005

Answered by: jay prakash patel on: Aug 14th, 2011

Kernel is base foundation of operating system .The kernel provide services such as hardware and software interaction
and memory management. Efficiency of operating system is depend on efficiency of kernel.

Answered by: nayakss on: Dec 10th, 2008

Unix operating system derived into three different levels and the inner most level is Kernel. Who is the sole responsible of all the activites as scheduler, memory manager etc. The outmost level is Shell which connect to end user with the Kernel.

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".