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 …
Monthly Archives: April 2014
Looking into a lsattr practice session .
ABOUT lsattr The following shows a command line session with lsattr command which helps in listing file attributes. [bash] $pwd /proc $lsattr lsattr: Inappropriate ioctl for device While reading flags on ./asound lsattr: Permission denied While reading flags on ./sysrq-trigger lsattr: Inappropriate ioctl for device While reading flags on ./partitions lsattr: Inappropriate ioctl for device …
lsattr practice session . IV
The following shows a command line session with lsattr command which helps in listing file attributes. root>(time lsattr ) &>> lsattr-with-time.txt root>cat lsattr-with-time.txt lsattr: Inappropriate ioctl for device While reading flags on ./sys lsattr: Inappropriate ioctl for device While reading flags on ./dev lsattr: Operation not supported While reading flags on ./initrd.img lsattr: Inappropriate ioctl …
lsattr practice session . III
The following shows a command line session with lsattr command which helps in listing file attributes. $lsattr ————-e– ./(2561).jpg ————-e– ./(1596).jpg ————-e– ./(2551).jpg ————-e– ./(2157).jpg ————-e– ./(2053).jpg ————-e– ./(1793).jpg ————-e– ./(1917).jpg ————-e– ./shortlisted ————-e– ./(1722).jpg ————-e– ./(1881).jpg ————-e– ./(1654).jpg $lsattr /home/jeffrin/.bash_history ————-e– /home/jeffrin/.bash_history $lsattr /home/jeffrin/.gnome2 ————-e– /home/jeffrin/.gnome2/keyrings ————-e– /home/jeffrin/.gnome2/accels $lsattr /home/jeffrin/.m .mission-control/ .mplayer/ .muttrc .muttrc-personal …
lsattr graph . I
The following graph shows the time details to execute lsattr command which helps in listing file attributes. The following shows a commandline session related to the output of time command along with lsattr.The values for plotting the above graph is taken from the following readings. ————-e– ./README.md ————-e– ./lsattr.txt ————-e– ./barplot real 0m0.002s user 0m0.000s …
lsattr practice session . II
The following shows a command line session with lsattr command which helps in listing file attributes. $lsattr ————-e– ./A.txt ————-e– ./beautyastudyin00rothuoft.pdf ————-e– ./trueprint-5.4.tar.gz.sig ————-e– ./sample ————-e– ./scsh-common-0.6_0.6.7-8_all.deb ————-e– ./photos ————-e– ./beautifulwork-sorting ————-e– ./Templates ————-e– ./apache2_2.4.7-1_amd64.deb ————-e– ./Pictures ————-e– ./a.out ————-e– ./sent ————-e– ./Videos ————-e– ./functions.txt~ ————-e– ./Desktop ————-e– ./books ————-e– ./myapp.rb ————-e– ./tmp ————-e– ./ethstatus_0.4.3.dsc …
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 …
Continue reading “lsattr – list file attributes on a ext2fs”
BUBBLE SORT USING RUBY . ARRAY SIZE 500
The following graph shows the time taken to execute an algorithm with an array size of 500 using ruby language. Graph is plotted for 5 consecutive executions. The values for plotting the above graph is taken from the values which is produced with the help of time command. Mon Apr 7 18:34:34 IST 2014 real …
BUBBLE SORT USING RUBY . ARRAY SIZE 400
The following graphs shows the time taken to execute an algorithm using ruby language with an array size of 400. Graph is plotted for 5 consecutive executions. Both graphs plot the same values except that one is kind of monochrome and the other one is in color mode. The values for plotting the above graphs …
BUBBLE SORT USING RUBY. GRAPH FOR ARRAY SIZE 300
Wed Apr 2 21:06:24 IST 2014 real 0m0.193s user 0m0.032s sys 0m0.004s real 0m0.033s user 0m0.028s sys 0m0.004s real 0m0.030s user 0m0.028s sys 0m0.000s real 0m0.032s user 0m0.024s sys 0m0.008s real 0m0.028s user 0m0.024s sys 0m0.000s