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 …
Author Archives: jeffrin
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 …
Value Addition Theory
Collections From Various Sources Science being used to stand for knowledge, and “art” for the application of knowledge. Several sciences are often necessary to form the ground work of a single art. Science is knowledge which we understand so well that we can teach it to a computer;and if we do not fully understand something, …
tasksel – a user interface for installing tasks
Debian Command $tasksel –list-tasks u desktop Debian desktop environment u web-server Web server u print-server Print server u database-server SQL database u dns-server DNS Server u file-server File server u mail-server Mail server u ssh-server SSH server u laptop Laptop u manual manual package selection $tasksel –task-packages Option task-packages requires an argument Usage: tasksel install …
Continue reading “tasksel – a user interface for installing tasks”
Books
Books Currently Reading Linux Programming Interface | No Starch Press . Computer Architecture | Nicholas P. Carter . Discrete Mathematics | Seymour Lipschutz, Marc Lipson Calculus Workbook FOR Dummies | Mark Ryan Pre-Algebra Essentials for DUMMIES | Mark Zegarelli
stat – display file or file system status
UNIX Command $stat /usr/sbin/famd File: `/usr/sbin/famd’ Size: 147504 Blocks: 304 IO Block: 4096 regular file Device: 801h/2049d Inode: 7572257 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2012-01-24 00:00:54.000000000 +0530 Modify: 2010-08-03 15:32:44.000000000 +0530 Change: 2012-01-24 00:00:07.000000000 +0530 Birth: – $ UNIX Explanation Display file or file system status.