03-07-2020
Maybe here?
PosixFileAttributes (Java Platform SE 7 )
Quote:
public interface PosixFileAttributes
extends BasicFileAttributes
File attributes associated with files on file systems used by operating systems that implement the Portable Operating System Interface (POSIX) family of standards.
The POSIX attributes of a file are retrieved using a PosixFileAttributeView by invoking its readAttributes method.
Method Summary
Methods
Modifier and Type Method and Description
GroupPrincipal group()
Returns the group owner of the file.
UserPrincipal owner()
Returns the owner of the file.
Set<PosixFilePermission> permissions()
Returns the permissions of the file.
Methods inherited from interface java.nio.file.attribute.BasicFileAttributes
creationTime, fileKey, isDirectory, isOther, isRegularFile, isSymbolicLink, lastAccessTime, lastModifiedTime, size
Method Detail
owner
UserPrincipal owner()
Returns the owner of the file.
Returns:
the file owner
See Also:
FileOwnerAttributeView.setOwner(java.nio.file.attribute.UserPrincipal)
group
GroupPrincipal group()
Returns the group owner of the file.
Returns:
the file group owner
See Also:
PosixFileAttributeView.setGroup(java.nio.file.attribute.GroupPrincipal)
permissions
Set<PosixFilePermission> permissions()
Returns the permissions of the file. The file permissions are returned as a set of PosixFilePermission elements. The returned set is a copy of the file permissions and is modifiable. This allows the result to be modified and passed to the setPermissions method to update the file's permissions.
Returns:
the file permissions
See Also:
PosixFileAttributeView.setPermissions(java.util.Set<java.nio.file.attribute.PosixFilePermission>)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Good day
Does anyone have an idea on how I can rcp a file together with its attributes. owner,group, permissions ?
Regards
J (2 Replies)
Discussion started by: jhansrod
2 Replies
2. Shell Programming and Scripting
how do we set file attributes at shell prompt (2 Replies)
Discussion started by: hytechpro
2 Replies
3. UNIX for Dummies Questions & Answers
hi,
i am very- very new to unix
i have os - sun solaris 5.9 and i want to learn more about system attributes for example, the make - model of machine , operating system & patch versions
can somebody tell me a usefull command to learn these?
any help would be apreciated,
regards to all,... (3 Replies)
Discussion started by: merope
3 Replies
4. Shell Programming and Scripting
How to retrieve file attributes in a sh/bash script (modification time, access time, size, etc.)? (1 Reply)
Discussion started by: Hitori
1 Replies
5. UNIX Desktop Questions & Answers
hi,
I want to know the date the file was created or modified. I can do this using ls, ll -ltr etc...
I want to do this in a function (so If the file date is older then a week I can report it), is there a way?
another thing...
In sql function, I can catch exceptions, is there a way to do this... (1 Reply)
Discussion started by: krem
1 Replies
6. UNIX for Dummies Questions & Answers
I got a server (test server) that hangs anytime we run a ls attribute like ls -ltr or ls -al. We can run ls | more command with no problem. But getting back to the ls attribute problem, it just sits and hangs, I did a ps -ef | grep ls, and a user had 15 sessions of ls -al running, I killed those,... (3 Replies)
Discussion started by: Sarccastik Dude
3 Replies
7. UNIX for Advanced & Expert Users
Hi Gurus,
I am trying to create a FS using SVM but system is throwing the following error.
newfs /dev/md/rdsk/d1002
newfs: construct a new file system /dev/md/rdsk/d1002: (y/n)? y
/usr/sbin/clri: can't get execution attributes (1 Reply)
Discussion started by: rama krishna
1 Replies
8. AIX
SOS Guys...
Is there any way to determine the user attributes, mainly if that userid is set as never expire?
I do not have admin rights, and I'm working on AIX 5.3
I've tried :
lsuser -f <username>
but no luck on that (2 Replies)
Discussion started by: freakygs
2 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I opened a file by accident (with a java program, which has been uninstalled!) and from then on, all the file with .fasta extension has been changed with an icon (So annoying!!) and the file attributes has been changed with the property:
Type: application/x-wine-extension-fasta type... (6 Replies)
Discussion started by: yifangt
6 Replies
10. UNIX for Beginners Questions & Answers
I'm trying to sort out the charing of a problem folder, in the 'ls -l' list is shows as:
d???????????? ? ? ? ? ? Pi-Share
PiShare is the name of the directory, all the ??s make no sense to me at all, and no user (there are only two, pi and root) can make any changes to it.... (4 Replies)
Discussion started by: MuntyScrunt
4 Replies
LEARN ABOUT DEBIAN
h5perf_serial
H5PERF_SERIAL:(1) User Commands H5PERF_SERIAL:(1)
NAME
h5perf_serial: - Measures HDF5 serial performance.
DESCRIPTION
h5perf_serial: Version 1.8.7 usage: h5perf_serial [OPTIONS]
OPTIONS
-h Print an usage message and exit
-A AL Which APIs to test [default: all of them]
-c SL Selects chunked storage and defines chunks dimensions and sizes [default: Off]
-e SL Dimensions and sizes of dataset [default: 100,200]
-i N Number of iterations to perform [default: 1]
-r NL Dimension access order (see below for description) [default: 1,2]
-t Selects extendable dimensions for HDF5 dataset [default: Off]
-v VFD Selects file driver for HDF5 access [default: sec2]
-w Perform write tests, not the read tests [default: Off]
-x SL Dimensions and sizes of the transfer buffer [default: 10,20]
N - is an integer > 0.
S - is a size specifier, an integer > 0 followed by a size indicator:
K - Kilobyte (1024) M - Megabyte (1048576) G - Gigabyte (1073741824)
Example: '37M' is 37 megabytes or 38797312 bytes
AL - is an API list. Valid values are:
hdf5 - HDF5 posix - POSIX
Example: -A posix,hdf5
NL - is list of integers (N) separated by commas.
Example: 1,2,3
SL - is list of size specifiers (S) separated by commas.
Example: 2K,2K,3K
The example defines an object (dataset, tranfer buffer) with three dimensions. Be aware that as the number of dimensions increases,
the the total size of the object increases exponentially.
VFD - is an HDF5 file driver specifier. Valid values are:
sec2, stdio, core, split, multi, family, direct
Dimension access order:
Data access starts at the cardinal origin of the dataset using the transfer buffer. The next access occurs on a dataset region next
to the previous one. For a multidimensional dataset, there are several directions as to where to proceed. This can be specified in
the dimension access order. For example, -r 1,2 states that the tool should traverse dimension 1 first, and then dimension 2.
Environment variables:
HDF5_NOCLEANUP
Do not remove data files if set [default remove]
HDF5_PREFIX
Data file prefix
usage: h5perf_serial [OPTIONS]
OPTIONS
-h Print an usage message and exit
-A AL Which APIs to test [default: all of them]
-c SL Selects chunked storage and defines chunks dimensions and sizes [default: Off]
-e SL Dimensions and sizes of dataset [default: 100,200]
-i N Number of iterations to perform [default: 1]
-r NL Dimension access order (see below for description) [default: 1,2]
-t Selects extendable dimensions for HDF5 dataset [default: Off]
-v VFD Selects file driver for HDF5 access [default: sec2]
-w Perform write tests, not the read tests [default: Off]
-x SL Dimensions and sizes of the transfer buffer [default: 10,20]
N - is an integer > 0.
S - is a size specifier, an integer > 0 followed by a size indicator:
K - Kilobyte (1024) M - Megabyte (1048576) G - Gigabyte (1073741824)
Example: '37M' is 37 megabytes or 38797312 bytes
AL - is an API list. Valid values are:
hdf5 - HDF5 posix - POSIX
Example: -A posix,hdf5
NL - is list of integers (N) separated by commas.
Example: 1,2,3
SL - is list of size specifiers (S) separated by commas.
Example: 2K,2K,3K
The example defines an object (dataset, tranfer buffer) with three dimensions. Be aware that as the number of dimensions increases,
the the total size of the object increases exponentially.
VFD - is an HDF5 file driver specifier. Valid values are:
sec2, stdio, core, split, multi, family, direct
Dimension access order:
Data access starts at the cardinal origin of the dataset using the transfer buffer. The next access occurs on a dataset region next
to the previous one. For a multidimensional dataset, there are several directions as to where to proceed. This can be specified in
the dimension access order. For example, -r 1,2 states that the tool should traverse dimension 1 first, and then dimension 2.
Environment variables:
HDF5_NOCLEANUP
Do not remove data files if set [default remove]
HDF5_PREFIX
Data file prefix
SEE ALSO
The full documentation for h5perf_serial: is maintained as a Texinfo manual. If the info and h5perf_serial: programs are properly
installed at your site, the command
info h5perf_serial:
should give you access to the complete manual.
h5perf_serial: Version 1.8.7 August 2011 H5PERF_SERIAL:(1)