Tag: attribute

  • chattr practice session . I

    The following shows a command line session with chattr command which helps in changing attributes of files. $lsattr functions.txt ————-e– functions.txt $chattr -e functions.txt chattr: Clearing extent flag not supported on functions.txt $lsattr functions.txt ————-e– functions.txt $chattr +c functions.txt $lsattr functions.txt ——–c—-e– functions.txt $lsattr functions.txt ——–c—-e– functions.txt $chattr +a functions.txt chattr: Operation not permitted while […]

  • lsattr – list file attributes on a ext2fs

    The following shows a command line session with lsattr and stat commands which helps in listing file attributes. $lsattr -v colors 1936034688 ————-e– colors $lsattr colors ————-e– colors $ls -l colors -rw-r–r– 1 jeffrin jeffrin 173 Feb 17 21:46 colors $stat colors File: ‘colors’ Size: 173 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d […]