Number of files currently opened in linux


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Number of files currently opened in linux
# 1  
Old 01-02-2010
Number of files currently opened in linux

Hello, How do i check number of files currently opening in the linux server? Your help is highly appreciated. Thank you

---------- Post updated at 02:43 PM ---------- Previous update was at 02:19 PM ----------

never mind!! I got it.

---------- Post updated at 02:44 PM ---------- Previous update was at 02:43 PM ----------

never mind!! I got it.
# 2  
Old 01-02-2010
what you got ?

Share the answer also here.
# 3  
Old 01-03-2010
lsof will do
# 4  
Old 01-03-2010
Indeed @ lsof.

lsof|wc -l should produce a listing of all open file handles.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Solaris 11 - opened files limit ?

Hey all, I'm running apache (cswapache2) on a Solaris 11.3 server. Recently, if I create a new vhost, the service fails to restart, and enters in maintenance mode. If I comment lines with log files, the service starts again. I guess I've reached the limit. I checked the current values... (8 Replies)
Discussion started by: omegared77
8 Replies

2. Shell Programming and Scripting

List files with number to select based on number

Hi experts, I am using KSH and I am need to display file with number in front of file names and user can select it by entering the number. I am trying to use following command to display list with numbers. but I do not know how to capture number and identify what file it is to be used for... (5 Replies)
Discussion started by: mysocks
5 Replies

3. Shell Programming and Scripting

Script or alias to backup all files opened by vi

we want to backup all opened files by vi before editing also with version information. i wrote below alias to backup crontab file content with version info. What i want know is to make this opened files by vi. We want to prevent user mistakes by adding this alias. alias crontab='DATE=$(date... (4 Replies)
Discussion started by: sebu
4 Replies

4. Shell Programming and Scripting

How to count number of files in directory and write to new file with number of files and their name?

Hi! I just want to count number of files in a directory, and write to new text file, with number of files and their name output should look like this,, assume that below one is a new file created by script Number of files in directory = 25 1. a.txt 2. abc.txt 3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies

5. Shell Programming and Scripting

File exists, but cannot be opened.How to check- whether it could be opened to read when it exists

Hi #Testing for file existence if ; then echo 'SCHOOL data is available for processing' else echo 'SCHOOL DATA IS NOT AVAILABLE FOR PROCESSING' : i wrote a script, where it begins by checking if file exists or not. If it exists, it truncates the database... (2 Replies)
Discussion started by: rxg
2 Replies

6. SuSE

<92> unknown character when opened with Vi editor in Linux

Hi, One of our applications has this string : xxx ¿ yyyyy We are on Linux Suse and the character set is en_US.UTF-8. Our requirement is to replace this special character ¿ with a space. When we open the file containing this string using VI editor we see the same character as <92> xxx... (10 Replies)
Discussion started by: LinuxTest
10 Replies

7. Solaris

How to check number of files is currenty open by Solaris 10 and Linux

Hi, Anyone know the command as how many files are open in Solaris 10 and Linux - i.e. currently open - real time Thanks (1 Reply)
Discussion started by: civic2005
1 Replies

8. Shell Programming and Scripting

multiple files opened in awk

Hi , i' d like to use an awk script to automate the ripping of cds : here's how it works : - i first create a file named songs.txt containing the name of the songs - the scripts extracts the tracks of a cd with cdparanoia - the scripts saves the contents of the dir with ls (ls > list.txt) -... (0 Replies)
Discussion started by: krhamidou
0 Replies

9. Programming

maximum number of times - a file can be opened

Hi All, We can find the maximum of open file descriptors in hold with respect to a process. As default size was 256 (with getrlimit) and the hard limt was 65536 I tried changing the limit to 1024(with setrlimit) successfully changed the limit but still I couldnt have as many open file... (3 Replies)
Discussion started by: matrixmadhan
3 Replies

10. HP-UX

How to get the opened files by a process

Hi, i'd like to get the files which are opened by a process during his execution using the c language. Thanks for helping me. (2 Replies)
Discussion started by: benoit.gaillard
2 Replies
Login or Register to Ask a Question