ls ( –full-time option )

UNIX Command $ls –full-time total 4 -rw-r–r– 1 jeffrin jeffrin 0 2012-02-19 22:30:38.000000000 +0530 a1.txt -rw-r–r– 1 jeffrin jeffrin 2 2012-02-19 22:31:00.000000000 +0530 a2.txt $date Sat Feb 25 01:17:27 IST 2012 $date -R Sat, 25 Feb 2012 01:19:41 +0530 $ UNIX Explanation –full-time like -l –time-style=full-iso computer science related Theory Drop In computer science and …

How to list numeric user and group IDs ?

UNIX Command $ls a1.txt a2.txt $ls -n total 4 -rw-r–r– 1 1000 1000 0 Feb 19 22:30 a1.txt -rw-r–r– 1 1000 1000 2 Feb 19 22:31 a2.txt $id a1.txt id: a1.txt: No such user $id jeffrin uid=1000(jeffrin) gid=1000(jeffrin) groups=1000(jeffrin),29(audio),33(www-data),1001(wireshark),119(mysql) $ Unix Explanation -n, –numeric-uid-gid like -l, but list numeric user and group IDs Theory Drop …

Hacking with ls options ( -S -1 -r)

GNU Command $> a1.txt $a > a2.txt bash: a: command not found $echo a > a2.txt $ls -S a2.txt a1.txt $ls -S -1 a2.txt a1.txt $ls -r -S -1 a1.txt a2.txt $ UNIX Explanation -S sort by file size -1 list one file per line -r, –reverse reverse order while sorting computer science Theory Drop …

encode_json Function

Perl API $json_text = encode_json $perl_scalar Perl Explanation Converts the given Perl data structure to a UTF-8 encoded, binary string computer science Theory Drop Scalar processors represent the simplest class of computer processors. A scalar processor processes one datum at a time (typical data items being integers or floating point numbers).[1] , a scalar processor …