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
XENO-CONFIG(1)							      Xenomai							    XENO-CONFIG(1)

NAME
xeno-config - Display Xenomai libraries configuration SYNOPSIS
xeno-config xeno-config --v | --verbose xeno-config --help xeno-config [--version] [--cc] [--arch] [--prefix] [--xeno-cflags] [--xeno-ldflags] [--posix-cflags] [--posix-ldflags] [--lib*-dir|--library-dir|--libdir|--user-libdir] DESCRIPTION
xeno-config is a script that is used to to display the compiler and linker flags that are required for building applications that use Xeno- mai. Any combination of options can be chosen (except --verbose and --help) to display configuration information, and options can be given in any order. The command output one line for each option, in the same order as the options. When xeno-config --verbose is executed, all configuration information is displayed in a different, more human-readable format. When xeno-config is executed without any options, the output is equivalent to than when executing xeno-config --verbose then xeno-config --help. OPTIONS
--v, --verbose Outputs all configuration information, in a human-readable format. --help Outputs the list of available command-line options. --version Outputs one line with the installed Xenomai version. --cc Outputs one line with the path to the C compiler command that was used to compiled Xenomai. --arch Outputs one line with the architecture to compile to, e.g. i386. May be different from the architecture of the currently running system, if cross-compiling. --prefix Outputs one line with the absolute path to the base Xenomai installation directory. --xeno-cflags Outputs one line with the C compiler command-line options that are necessary to compile applications that use the Xenomai libraries. --xeno-ldflags Outputs one line with the C compiler command-line options that are necessary to link applications against the Xenomai libraries. --posix-cflags Outputs one line with the C compiler command-line options that are necessary to compile applications that use Xenomai's Posix-com- patible layer library. --posix-ldflags Outputs one line with the C compiler command-line options that are necessary to link applications against Xenomai's Posix-compatible layer library. --lib*-dir, --library-dir, --libdir, --user-libdir Outputs one line with the absolute path to Xenomai's libraries. In the --lib*-dir option name, the * is meant as a wildcard: --lib-dir, --libfoo-dir and --libbar-dir are all valid and synonymous options. ENVIRONMENT VARIABLES
DESTDIR If the DESTDIR variable is set, its content is prepended to the Xenomai installed directories and files names output by the --prefix and --library-dir options, and to the Xenomai installation directories in the flags output by the --xeno-cflags, --xeno-ldflags, --posix-cflags, --posix-ldflags options. If DESTDIR was set when compiling and installing Xenomai, e.g. for cross-compilation, DESTDIR must be set to the same value before calling xeno-config, in order to output valid directory and file names. RETURN CODES
0 Successful script execution. 1 The --posix-ldflags option has been given but Posix support is not available in Xenomai; or an invalid argument has been given on the command-line. 2.6.0 2006-03-27 XENO-CONFIG(1)
All times are GMT -4. The time now is 06:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy