If you have a filesystem that supports extended attributes, you could use them to store information, like: ---------- Post updated at 08:44 ---------- Previous update was at 08:42 ----------
BTW: don't forget to prefix the attribute name with "user." or you'll get an setfattr: test: Operation not supported error.
Hello Moto
I hope someone can help
We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers..
a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Hi,
I had a directory and many subdirectories and files with in it.
Now i want to get the timestamp of files from the files and folders recursively. :(
Please help me to generate a script fort he above mentioned requirement!
Appreciate for ur qick response
Thanks in advance!
... (2 Replies)
Discussion started by: kishan
2 Replies
3. Post Here to Contact Site Administrators and Moderators
There is no indication (that I can find) as to who sent me the eMail regarding my occasional visits to this forum. I do come and browse at times, and want to keep my name on your list. However, I am not far enough along in my understanding of code to participate except for an occasional "dummies"... (0 Replies)
Need a clarification .... While copying files from one unix to another unix box .
I am working on two / three unix boxes which are all in a network.. in which home directory are mounted ..(I didn't understand what is the exact meaniing of that)
So can i copy the files from one box to another... (2 Replies)
Hi,
Could someone please assist on a quick way of How to extract data from indexed files (ISAM files) maintained in an UNIX(AIX) server.The file data needs to be extracted in flat text file or CSV or excel format .
Usually we have programs in microfocus COBOL to extract data, but would like... (2 Replies)
the sorting is based on name of file,
file size
modification time stamps o f file
it should dislay the output in the following format
"." and ".." enteries should be ignored
please give some idea how to do it (1 Reply)
Hi All,
For past some days iam trying, which not able to get to..so please help me on this..
My exact requirement is...
Step1: Find how many files/sub files exist in /some/path (maybe in multiple path)
Step2: Count the no. of files/sub files with their respective size.
Step3: Then a file... (0 Replies)
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Hi Folks,
I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml
which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/
now the credentials of unix box are
abc345 -->(dummyid)
ftyiu88--->(dummy passwd)
... (4 Replies)
Discussion started by: punpun66
4 Replies
LEARN ABOUT PHP
setfattr
SETFATTR(1) File Utilities SETFATTR(1)NAME
setfattr - set extended attributes of filesystem objects
SYNOPSIS
setfattr [-h] -n name [-v value] pathname...
setfattr [-h] -x name pathname...
setfattr [-h] --restore=file
DESCRIPTION
The setfattr command associates a new value with an extended attribute name for each specified file.
OPTIONS
-n name, --name=name
Specifies the name of the extended attribute to set.
-v value, --value=value
Specifies the new value for the extended attribute.
-x name, --remove=name
Remove the named extended attribute entirely.
-h, --no-dereference
Do not follow symlinks. If pathname is a symbolic link, it is not followed, but is instead itself the inode being modified.
--restore=file
Restores extended attributes from file. The file must be in the format generated by the getfattr command with the --dump option. If a
dash (-) is given as the file name, setfattr reads from standard input.
--version
Print the version of setfattr and exit.
--help
Print help explaining the command line options.
-- End of command line options. All remaining parameters are interpreted as file names, even if they start with a dash character.
AUTHOR
Andreas Gruenbacher, <a.gruenbacher@bestbits.at> and the SGI XFS development team, <linux-xfs@oss.sgi.com>.
Please send your bug reports or comments to these addresses.
SEE ALSO getfattr(1), and attr(5).
Dec 2001 Extended Attributes SETFATTR(1)