GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Commands
Go To First  |  Previous Question  |  Next Question 
 Unix Commands  |  Question 66 of 73    Print  
what is the command in UNIX to see a list of opened files?
lsos


  
Total Answers and Comments: 1 Last Update: February 29, 2008     Asked by: towid 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 29, 2008 09:25:16   #1  
borngold Member Since: January 2008   Contribution: 1    

RE: what is the command in UNIX to see a list of opened files?
lsof   - List open files on the system. Normally, it only lists files you (or processes you own) have open; if run as root, it lists all open files.
 
Is this answer useful? Yes | No

 Related Questions

A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command. Example : ls 
Latest Answer : The Unix commands alone are powerful, but when two or more commands get combine together, we can accomplish complex task with ease.In unix we can combine the two or more commands together to perform multiple action simulatenously with the help of Pipe ...

With the help of kill command we can terminate the process.Syntax: kill pidKill 0 - kills all processes in your system except the login shell. 
Latest Answer : kill -0 : All processes in the current process group are signaled. Kill -0 commnd is use to sends signal to all process and group of process. ...

Use ‘su’ command. The system asks for password and when valid entry is made the user gains super user (admin) privileges. 
Latest Answer : "su" is the command to switch to a super user status (commonly known as root user) from a user shell.This command does not load the shell settings for a typical super user that login from a login screen. Therefore, environment variables/settings ...

Kernel checks 'type' field in the file's inode structure. 
Latest Answer : device filles are of 2 types --- charcater device file and block device filetype field in the file's inode structureb--- block device filec--- character device file ...

Two prompts, PS1 (Primary Prompt), PS2 (Secondary Prompt). 
Latest Answer : Bash supports 4 prompts:PS1 - the default promptPS2 - for multi-line inputPS3 - printed for the select commandPS4 - printed before output if set -x is set(see http:// www . gnu . org/software/bash/manual/bashref . html )The first two are common to the ...

Yes, it stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk. 
Latest Answer : Thats right.. du gives you "disk used" and not free disk space. some of the options for du are : du -k   : returns the disk usage in KBsdu -k : gives the disk usage by direcotry and all its sub-directories in KBs ...

ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on. 
Latest Answer : ls -x displays the list of contents in linewise instead of column wise ...

Yes, using the ‘mesg’ command. 
Latest Answer : messages can be restricted by you with the help of 'mesg n', this will restrict the incoming of messages to your terminal, for again allowing messages for your terminal you can use 'mesg y'. ...

Yes, ‘mkfs’ is used to create a new file system. 
Latest Answer : Yes,mkfs -t filesystem  device name.for e.gmkfs -f ext3 /dev/hda2 ...

$ echo *It is similar to 'ls' command and displays all the files in the currentdirectory. 
Latest Answer : Ya u r correct, $echo *  will give u the files in the current directory similar to ls command. ...


 Sponsored Links

 
Related Articles

What is the use of truncate command?

Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from
 

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

Importance of Header Files

What is the importance of header files? The main role of header file is it is used to share information among various files. In brief, if we have several functions say 4 functions named as f1, f2, f3, f4 placed in file say sample.c and if all the functions want to get accessed by each other then all
 

SQL Table Commands

SQL Table Commands Overview As mentioned previously in this series of SQL articles, databases are primarily composed of tables. The “columns and rows” structure of the table allows data to be efficiently inserted, manipulated, updated, and deleted from the database. The three mos
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Top 10 Application Security Vulnerabilities in Web.config Files - Part One

These days, the biggest threat to an network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be sealed off from the outside via firewalls-a public Web site is generally accessible to anyone who wan
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape