chown me to who you are

use the other folder permission as reference. Here, changing the permission of all files in folder to the permission similar to the parent folder.

chown –reference=. ./*

looking for files modified some time back in a dir and its subdir

$ find . -type f -print0 | xargs -0 stat -c’%Y :%y %12s %n’ | sort -nr | cut -d: -f2- | head

Will go through all the files in the directory specified, uses `stat` to print out last modification time, then sorts numerically in reverse, then uses cut to remove the modified epoch timestamp and finally head to only output the last 10 modified files.

Mac addresses Linux

This is how we can get the mac addresses of all the interfaces on the system.

$ /sbin/lspci -v | grep -i “Device Serial Number”

Vim on ipad

Was looking for a emacs clone on ipad, but it seems emacs uses lots of lisp and as per Apple’s store policies, can’t have an application on iPhone and IPads which uses code which can internally execute processes or may traverse across the application boundaries or the internals of the system, hence emacs is not ported and after some googling I figured out it never will be since, emacs does believe in the freedom and Apple otherwise.

Though, I manage to download vim clone for ipad(and I am sure vim does uses some scripts).