BEAUTIFULWORK is like a blog and has different methods of expression of knowledge. THERE ARE LEARNING STYLES EARLY BIRD Here you can see a GNU/Linux or related command in an overall round up which touches the possibility for the command in different levels. COCOA
Author Archives: jeffrin
Bison Tinkering
commandline session /* Reverse polish notation calculator. */ %{ #define YYSTYPE double #include %} %token NUM %% /* Grammar rules and actions follow */ $ 4.2.36 19 519—> bison rpcalc.y rpcalc.y:11.1: syntax error, unexpected end of file $ 4.2.36 20 520—> $ 4.2.36 1 501—> vim la.y $ 4.2.36 2 502—> bison la.y la.y:6.1: invalid …
UNCOMPRESS vmlinuz to vmlinux
commandline session root@debian:/boot# od -A d -t x1 vmlinuz-3.2.0-3-amd64 | grep ‘1f 8b 08 00′ 0018096 00 ff e0 1f 8b 08 00 00 00 00 00 02 03 ec fd 7b root@debian:/boot# dd if=vmlinuz bs=1 skip=18099 | zcat > vmlinux dd: opening `vmlinuz’: No such file or directory gzip: stdin: unexpected end of file …
HISTSIZE Tinkering
commandline session $ 4.2.36 1 501—> echo $HISTSIZE 500 $ 4.2.36 2 502—> cat ^C $ 4.2.36 3 503—> tac ^C $ 4.2.36 4 504—> echo $HISTSIZE 500 $ 4.2.36 5 505—> export $HISTSIZE=1 bash: export: `500=1′: not a valid identifier $ 4.2.36 6 506—> export HISTSIZE=1 $ 4.2.36 7 500—> tic tic: File name …
BASH_ALIASES tinkering
commandline session $ 4.2.36 6 506—> echo $BASH_ALIASES $ 4.2.36 7 507—> echo ${BASH_ALIASES[0]} $ 4.2.36 8 508—> echo ${BASH_ALIASES[1]} $ 4.2.36 9 509—> echo ${BASH_ALIASES[2]} $ 4.2.36 10 510—> alias lst ls bash: alias: lst: not found bash: alias: ls: not found $ 4.2.36 11 511—> alias ls lst bash: alias: ls: not found …
sudo and a bash builtin command
commandline session $ 4.2.36 37 537—> cd /var/log/gdm3/ bash: cd: /var/log/gdm3/: Permission denied $ 4.2.36 38 538—> cd /var/log/gdm3/ bash: cd: /var/log/gdm3/: Permission denied $ 4.2.36 39 539—> sudo sh -c ‘cd /var/log/gdm3/’ $ 4.2.36 40 540—> sudo cd /var/log/gdm3 sudo: cd: command not found $ 4.2.36 41 541—> sudo cd /var/log/gdm3 sudo: cd: command …
mapfile is a bash builtin command
commandline session $ 4.2.36 1 501—> mapfile ^C $ 4.2.36 2 502—> man mapfile No manual entry for mapfile $ 4.2.36 3 503—> mapfile –help bash: mapfile: –: invalid option mapfile: usage: mapfile [-n count] [-O origin] [-s count] [-t] [-u fd] [-C callback] [-c quantum] [array] $ 4.2.36 4 504—> mapfile god is love …
PERCEPTION MODEL
DATA PROCESSING INFORMATION Knowledge representation Organize Routing Statistical values Plotting graph Visualizing Documented knowledge Compilation Expanding Raw data Search Finding Statistical values Data analysis Fortelling
snmpd and php script
GET THE HANG [ SNMPD AND PHP ] $ 4.2.36 28 528—> php snmp.php PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20100525/suhosin.so’ – /usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0 STRING: “Linux debian 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64” OID: …
Bash -a option
GET THE HANG [ -a option ] $ 4.1.5 1 387—> vim cond-a.sh $ 4.1.5 2 388—> sh cond-a.sh cond-a.sh: 3: Syntax error: end of file unexpected (expecting “then”) $ 4.1.5 3 389—> vim cond-a.sh $ 4.1.5 4 390—> sh cond-a.sh cond-a.sh: 4: Syntax error: end of file unexpected (expecting “fi”) $ 4.1.5 5 391—> …