UNIX Command $ls -a . .. a1.txt a2.txt $ls -A a1.txt a2.txt $ls a1.txt a2.txt $ UNIX Explanation -a, –all do not ignore entries starting with . -A, –almost-all do not list implied . and .. computer science related Theory Drop In computing, a hidden directory or hidden file is a directory (folder) or file …
Monthly Archives: February 2012
code
I am foo. http://www.beautifulwork.org/Js/foo.js
ls ( –author -l option)
UNIX Command $ls –author -l total 4 -rw-r–r– 1 jeffrin jeffrin jeffrin 0 Feb 19 22:30 a1.txt -rw-r–r– 1 jeffrin jeffrin jeffrin 2 Feb 19 22:31 a2.txt $ls -l total 4 -rw-r–r– 1 jeffrin jeffrin 0 Feb 19 22:30 a1.txt -rw-r–r– 1 jeffrin jeffrin 2 Feb 19 22:31 a2.txt $ UNIX Explanation –author with -l, …
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 …
ls ( -g option )
UNIX Command $ls -g total 4 -rw-r–r– 1 jeffrin 0 Feb 19 22:30 a1.txt -rw-r–r– 1 jeffrin 2 Feb 19 22:31 a2.txt $ UNIX Explanation -g like -l, but do not list owner computer science related Theory Drop Every file or folder in UNIX has access permissions. There are three types of permissions (what allowed …
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 …
Beautiful Works
SOFTWARE MAINTAINER at GNU TruePrint FIXES AT LINUX KERNEL DEBIAN MAINTAINER FOR libjs-jstat (NOT COMPLETED) LEARN THE WORKING OF LINUX KERNEL KNOWLEDGE ENGINEERING INFORMATION GRAPHICS
stat Perl API
Perl API — stat() $ls test.pl test.pl $cat test.pl my $result = stat(‘./test.pl’); print “$result n”; $perl test.pl 1 $ Perl Explanation Returns a 13-element list giving the status info for a file, either the file opened via FILEHANDLE or DIRHANDLE, or named by EXPR. If EXPR is omitted, it stats $_ (not _ !). …
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 …