Hi,
i want to list some files in the directory within selected period. for example, I want to list file within 5 days, 3 days, etc....is it possible? (1 Reply)
Hello all,
I have a directory filling up. I need to determine the size of the files in the directory. How do I do that, what command should I run when I am in the directory?
Next question, can I expand the partition size? (10 Replies)
I'm new to HP-UX and am looking for the command that will allow to me determine the total size of listed files. I'm being told that my backup selection is exceeding my tape drive size and need to determine how much information is being backed up.
Help? (3 Replies)
Hello!
I'm trying to find out the total file size of a subset list in a directory. For example, I do not need to know the total file size of all the files in a directory, but I need to know what the total size is of say, "ls -l *FEB08*" in a directory. Is there any easy way of doing this?
... (3 Replies)
If I have a file x.txt that is 8 bytes... I want to enter
>> x.txt
8
I've played around with ls, and du... and they always list the file name. (2 Replies)
Hi,
I have directories with name like:
aaa
bbb
ccc
...
I would like to to see which directories are the largest and then list the files within each. I have success using:
du -ks * | sort -rin | head -n 20
which gives me an output like:
120 bbb
27 ccc
3 aaa
...
I would like... (3 Replies)
Hello,
I have a flat file with a list of files with the path to the file and I am attempting to calculate the filesize for each one; however xargs isn't playing nicely and I am sure there is probably a better way of doing this.
What I envisioned is this:
cat filename|xargs -i ls -l {} |awk... (4 Replies)
to get the list of file name with size
Example:
rwxrwxrwx 1 cm x 562KB Nov 6 19:22 a
rwxrwxrwx 1 cm x 562MB Nov 6 19:22 a
edit by bakunin: Please view this code tag video for how to use code tags when posting code and data. (5 Replies)
how to get the file name list with size descriptive in hp-ux
Required output:
permission link user group size(with MB,KB,GB etc) date time name (7 Replies)
I used to use ls -l cut to detrmine file size, and google searches didn't come up with anything else but 'stat' which doesn't appear on HPUX.
I discovered the humble 'wc -c' which does this job very neatly, and thought I would share it. (7 Replies)
Discussion started by: tbochan
7 Replies
LEARN ABOUT LINUX
fssnap
fssnap(1M) System Administration Commands fssnap(1M)NAME
fssnap - create temporary snapshots of a file system
SYNOPSIS
fssnap [-F FSType] [-V] -o special_options /mount/point
fssnap -d [-F FSType] [-V] /mount/point | dev
fssnap -i [-F FSType] [-V] [-o special_options] [/mount/point | dev]
DESCRIPTION
The fssnap command creates a stable, read-only snapshot of a file system when given either an active mount point or a special device con-
taining a mounted file system, as in the first form of the synopsis. A snapshot is a temporary image of a file system intended for backup
operations.
While the snapshot file system is stable and consistent, an application updating files when the snapshot is created might leave these files
in an internally inconsistent, truncated, or otherwise unusable state. In such a case, the snapshot will contain these partially written or
corrupted files. It is a good idea to ensure active applications are suspended or checkpointed and their associated files are also consis-
tent during snapshot creation.
File access times are not updated while the snapshot is being created.
A path to the virtual device that contains this snapshot is printed to standard output when a snapshot is created.
OPTIONS
The following options are supported:
-d Deletes the snapshot associated with the given file system.
-F FSType Specifies the file system type to be used. The FSType should either be specified here or be determined by matching
the block special device with an entry in the /etc/vfstab table, or by consulting /etc/default/fs.
-i Displays the state of any given FSType snapshot. If a mount-point or device is not given, a list of all snapshots
on the system is displayed. When a mount-point or device is specified, detailed information is provided for the
specified file system snapshot by default. The format and meaning of this information is file-system dependent. See
the FSType-specific fssnap man page for details.
-o special_options See the FSType-specific man page for fssnap.
-V Echoes the complete command line, but does not execute the command.
OPERANDS
The following operands are supported:
/mount/point The directory where the file system resides.
EXAMPLES
See FSType-specific man pages for examples.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/etc/vfstab Specifies file system type.
/etc/default/fs Specifies the default local file system type.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO fssnap_ufs(1M), attributes(5)NOTES
This command might not be supported for all FSTypes.
SunOS 5.10 11 Aug 2004 fssnap(1M)