5
votes
2answers
280 views

Difference between xattr and chattr

What is the relation and the difference between xattr and chattr? I want to know when I set a chattr attribute in Linux what is happening inside the Linux kernel and inode metadata.
0
votes
2answers
110 views

File compression - how to implement in Linux

I would like to be able to compress certain files (that I need to keep, but use rarely) on disk. I noticed that chattr +c flags a file for compression, but it doesn't seem to actually compress files. ...
2
votes
2answers
1k views

`chattr +i` error on NFS

I'm trying to secure my authorized_keys file to prevent it from being modified. I run this: [root@localhost]# chattr +i authorized_keys chattr: Inappropriate ioctl for device while reading flags on ...
0
votes
1answer
120 views

Cent OS 6.3 Hidden files in shell

I need help, I want to be able to check whether a file is hidden or not in Cent OS 6.3. These are often referred to as (dot) files but I can clearly see Cent OS 6.3 handling these by appending a ...
2
votes
1answer
234 views

How to utilize extended attributes for image preview?

Is there any file browsers for Linux that cache image previews, just like Windows Explorer cache them to a file named Thumbs.db? As in the latest ext3/4 filesystems, an inode can hold extended ...
2
votes
1answer
820 views

Extended attribute on symbolic link

I'm trying to set some extended attributes on a symbolic link on Fedora 15. According to setfattr's usage, there is an option -h for such purpose: setfattr 2.4.44 -- set extended attributes Usage: ...
3
votes
1answer
2k views

what does the “a” in chattr +ia do?

what does the a in chattr +ia <filename> do? and why would you add the a in combination with the i? note: I know the i is for immutable
6
votes
1answer
974 views

What does the 'a' attribute in lsattr mean?

I was trying to remove some old history from my .bash_history file, but I was receiving this message: [john ~] /home/john $ mv .bash_history .bas mv: impossible to move `.bash_history' to `.bas': ...