Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Hi,
I would like to find the size of a folder. When I run the command
du -k
It is going through all the sub-folder and files and taking really much time.
Is there any command to get the complete directory size without showing the sub-folder and file size.
Appreciate your response.
... (3 Replies)
I would like to know if it is possible to find out how much memory is in a machine from the iLOM prompt on an x86 box? I have retrieved the MAC address details from the iLOM promt before using show /SYS/MB/NETx and wondering if I can do the same for the Memory although I can't seem to find anything... (4 Replies)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
Hi,
Can anyone redirect to an existing thread or provide some info on how to find the size of a directory and it's sub-directories using a single script ?
I tried finding a similar thread but in vain.
I'm a newbie and any help would be greatly appreciated.
Thanks in advance. (3 Replies)
Alright so I've tried a couple different things that at first glance, looked like they worked.
find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time.
find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Hi
I have a list of 2000 records with multiple entries and I want to get the max size for each entry
ABC 1
ABC 2
ABC 3
ABC 4
DEF 1
DEF 2
DEF 2
DEF 2
DEF 2
... (9 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
I am trying to find RAM size in my HP-UNIX server. what command I should use for this?
I am using top command but not clear about below line from top o/p
Memory: 1517080K (471284K) real, 1877692K (751256K) virtual, 8078944K free Page# 1/6 (3 Replies)
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
LEARN ABOUT HPUX
fsctl
fsctl(2) System Calls Manual fsctl(2)NAME
fsctl - file system control
SYNOPSIS DESCRIPTION
provides access to file-system-specific information. fildes is an open file descriptor for a file in the file system of interest. The
possible values for command depend on the type of file system. Currently, defined commands exist only for the CDFS file system (see
outbuf is a pointer to the data area in which data is returned from the file system. outlen gives the length of the data area pointed to
by outbuf.
The CDFS commands are:
Returns the directory record for the file or directory indicated by
fildes. The record is returned in a structure of type cddir, defined in
Returns the extended attribute record, if any,
for the file or directory indicated by fildes. Because the size of an extended attribute record varies, be sure
outbuf points to a data area of sufficient size. To find the necessary size, do the following:
1. Use statfs(2). to get the logical block size of the CDFS volume.
2. Use an call with the command to get the extended attribute record size (in blocks) for the file or directory
of interest. The field in the returned structure contains the size of the extended attribute record in logi-
cal blocks. (If this field is zero, the file or directory has no extended attribute record.)
3. Multiply by the logical block size obtained in step 1 to get the total space needed.
4. Once you get the extended attribute record, cast outbuf into a pointer to a structure of type (defined in
This enables you to access those fields that are common to all extended attribute records. (See below for an
example of this process.)
If the extended attribute record contains additional system use or application use data, that data will have
to be accessed manually.
Returns the abstract file identifier for the primary volume
whose root directory is specified by fildes, terminated with a NULL character. Note that the constant defined in
gives the maximum length a file identifier can have. Thus, + 1 can be used for outlen and the size of outbuf.
Returns the bibliographic file identifier for the primary volume
whose root directory is specified by fildes, terminated with a NULL character. + 1 can be used for the value of
outlen and the size of outbuf.
Returns the copyright file identifier
for the primary volume whose root directory is specified by fildes, terminated with a NULL character. + 1 can be
used for the value of outlen and the size of outbuf.
Returns the volume ID for the primary volume specified by
fildes, terminated with a NULL character. The maximum size of the volume ID is 32 bytes, so a length of 33 can be
used for outlen and the size of utbuf.
Returns the volume set ID for the primary volume specified by
fildes, terminated with a NULL character. The maximum size of the volume set ID is 128 bytes, so a length of 129
can be used for outlen and the size of outbuf.
EXAMPLES
The following code fragment gets the extended attribute record for a file on a CDFS volume. The filename is passed in as the first argu-
ment to the routine. Note that error checking is omitted for brevity.
RETURN VALUE
returns the number of bytes read if successful. If an error occurs, -1 is returned and is set to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EBADF] fildes is not a valid open file descriptor.
[EFAULT] outbuf points to an invalid address.
[ENOENT] The requested information does not exist.
[EINVAL] command is not a valid command.
[EINVAL] fildes does not refer to a CDFS file system.
SEE ALSO statfs(2), cdnode(4), cdrom(4).
fsctl(2)