Sponsored Content
Operating Systems Solaris How to check number of files is currenty open by Solaris 10 and Linux Post 302102248 by civic2005 on Tuesday 9th of January 2007 07:34:00 AM
Old 01-09-2007
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

finding the number of open files

Hi!! Is there any way to find the number of open files at any time on the server?? I am on HP -UX-11 :confused: (1 Reply)
Discussion started by: jyotipg
1 Replies

2. Solaris

How to check no. of files open currently

I'm getting an error "too many files open" # ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) unlimited stack(kbytes) 8192 coredump(blocks) unlimited nofiles(descriptors) 256 memory(kbytes) unlimited # hard limit shows 1024 I would like to know how many files... (1 Reply)
Discussion started by: max_min
1 Replies

3. UNIX for Advanced & Expert Users

Number of open files (Dir's) how to close?

I am having a client/server application which will download files from server. If server has directories, it will create directories/sub directories and then download files. In this process, I observed that number of open files are more than 400 (which is approxmately same as number of dir/subdir... (1 Reply)
Discussion started by: satyam90
1 Replies

4. Cybersecurity

Ports open on solaris/linux

Hi, I am trying to close all possible ports on my solaris and linux servers. I am stuck on the following ports on both Solaris 10 (local zone) and Linux (Suse) servers. Here is nmap output : PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 1720/tcp open H.323/Q.931... (6 Replies)
Discussion started by: manifesto
6 Replies

5. UNIX Desktop Questions & Answers

Need to ftp some files, and check the number of rows in the transferd file

1)I need to write a script which ftps 3 files to a unix box, 2)once the files are ftped i need to check the number of rows in each file and compare it with the data (no of rows) coming in a manifest file, if the number of rows in each file matches the data coming in manifest file, then i need to... (3 Replies)
Discussion started by: imran_affu
3 Replies

6. Solaris

How to check the number of emails sent out from the Solaris server

Our solaris are configured to send out email and i would like to know the number of emails sent out from the solaris server. Anyone know can this be done? Thanks (1 Reply)
Discussion started by: sirius20d
1 Replies

7. Shell Programming and Scripting

Check existence of a number of files and call other scripts

Hi, I am new to unix scripting and am jus getting to learn about it.. I need to know on how to check for the existence of a number of files in a path..i.e the files are ftp'ed from several other servers, should check if all the files have arrived, if not wait till they arrive..can i use a flag... (5 Replies)
Discussion started by: yohasini
5 Replies

8. UNIX for Dummies Questions & Answers

Check number of files that were created before a date?

Hi all, In a directory I have a lot of files created in history. However do I check the number of files that were created before a designated date? Thanks (1 Reply)
Discussion started by: isaacniu
1 Replies

9. Solaris

How to check powerpaths in Solaris/Linux?

How to check powerpaths in Solaris/Linux? and How to recover the failure powerpaths? :wall: (1 Reply)
Discussion started by: Naveen.6025
1 Replies

10. UNIX for Advanced & Expert Users

How to check number of threads running per processor in Linux machine?

I have a machine which has 32 processor but i am really not sure how many threads are running. It has hyperthreading enabled. Is there a way i can find that all 32 processors are being used and how many threads are there in my linux box. Its a 64 bit processor. I am having very high load average... (3 Replies)
Discussion started by: Moon1234
3 Replies
OPENAT(2)						     Linux Programmer's Manual							 OPENAT(2)

NAME
openat - open a file relative to a directory file descriptor SYNOPSIS
#include <fcntl.h> int openat(int dirfd, const char *pathname, int flags); int openat(int dirfd, const char *pathname, int flags, mode_t mode); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): openat(): Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _ATFILE_SOURCE DESCRIPTION
The openat() system call operates in exactly the same way as open(2), except for the differences described in this manual page. If the pathname given in pathname is relative, then it is interpreted relative to the directory referred to by the file descriptor dirfd (rather than relative to the current working directory of the calling process, as is done by open(2) for a relative pathname). If pathname is relative and dirfd is the special value AT_FDCWD, then pathname is interpreted relative to the current working directory of the calling process (like open(2)). If pathname is absolute, then dirfd is ignored. RETURN VALUE
On success, openat() returns a new file descriptor. On error, -1 is returned and errno is set to indicate the error. ERRORS
The same errors that occur for open(2) can also occur for openat(). The following additional errors can occur for openat(): EBADF dirfd is not a valid file descriptor. ENOTDIR pathname is relative and dirfd is a file descriptor referring to a file other than a directory. VERSIONS
openat() was added to Linux in kernel 2.6.16. CONFORMING TO
POSIX.1-2008. A similar system call exists on Solaris. NOTES
openat() and other similar system calls suffixed "at" are supported for two reasons. First, openat() allows an application to avoid race conditions that could occur when using open(2) to open files in directories other than the current working directory. These race conditions result from the fact that some component of the directory prefix given to open(2) could be changed in parallel with the call to open(2). Such races can be avoided by opening a file descriptor for the target directory, and then specifying that file descriptor as the dirfd argument of openat(). Second, openat() allows the implementation of a per-thread "current working directory", via file descriptor(s) maintained by the applica- tion. (This functionality can also be obtained by tricks based on the use of /proc/self/fd/dirfd, but less efficiently.) SEE ALSO
faccessat(2), fchmodat(2), fchownat(2), fstatat(2), futimesat(2), linkat(2), mkdirat(2), mknodat(2), open(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), mkfifoat(3), path_resolution(7) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2009-12-13 OPENAT(2)
All times are GMT -4. The time now is 10:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy