Sponsored Content
Full Discussion: Posix Attributes
Top Forums UNIX for Beginners Questions & Answers Posix Attributes Post 303044881 by Neo on Saturday 7th of March 2020 04:29:16 AM
Old 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

rcp and file attributes

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

file attributes

how do we set file attributes at shell prompt (2 Replies)
Discussion started by: hytechpro
2 Replies

3. UNIX for Dummies Questions & Answers

how to find system attributes

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

file attributes

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

file attributes and exception

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

Problems with any ls attributes

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

Help with can't get execution attributes

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

Identify User Attributes

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

How to remove attributes of a file?

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

File attributes ????

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
E-PCR(1)						      General Commands Manual							  E-PCR(1)

NAME
e-PCR -- Find sequence tagged sites (STS) in DNA sequences SYNOPSIS
e-PCR [-hV] [posix-options] stsfile [fasta ...] [compat-options] DESCRIPTION
The program substitutes blast in the location of pairs primers on the genome that may yield a PCR product. OPTIONS
posix-options are: -m=## Margin (default 50) -w=## Wordsize (default 7) -n=## Max mismatches allowed (default 0) -g=## Max indels allowed (default 0) -f=## Use ## disontiguous words, slow if ##>1 -o=## Set output file -t=## Set output format: 1 - classic, range (pos1..pos2) 2 - classic, midpoint 3 - tabular 4 - tabular with alignment in comments (slow) -d=##-## Set default size range (default 100-350) -p=+- Turn hits postprocess on/off -v=## Verbosity flags -a=a|f Use presize alignments (only if gaps>0), slow a - Always or f - as Fallback -x=+- Use 5'-end lowercase masking of primers (default -) -u=+- Uppercase all primers (default -) compat-options (duplicate posix-options) are M=## Margin (default 50) W=## Wordsize (default 7) N=## Number of mismatches allowed (default 0) G=## Max indels allowed (default 0) F=## Use ## discontinuous words O=## Set output file to ## T=## Set output format (1..3) D=##-## Set default size range P=+- Postprocess hits on/off V=## Verbosity flags A=a|f Use presize alignments (only if gaps>0), slow a - Always or f - as Fallback X=+- Use 5'-end lowercase masking of primers (default -) U=+- Uppercase all primers (default -) -mid Same as T=2 For information about further options just call e-PCR without any options. SEE ALSO
/usr/share/doc/ncbi-epcr/README.txt bioperl(1), re-pcr(1) AUTHORS
This manual page was written by Steffen Moeller <moeller@debian.org> and Andreas Tille <tille@debian.org> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. February 2004 E-PCR(1)
All times are GMT -4. The time now is 02:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy