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 …
Monthly Archives: October 2012
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—> …
debian package arduino
GET THE HANG [ arduino ] $ 4.2.36 2 502—> apt-cache show arduino Package: arduino Version: 1:1.0.1+dfsg-7 Installed-Size: 1293 Maintainer: Scott Howard Architecture: all Depends: default-jre | java6-runtime, libjna-java, librxtx-java (>= 2.2pre2-3), arduino-core (= 1:1.0.1+dfsg-7) Recommends: extra-xdg-menus, policykit-1 Description-en: AVR development board IDE and built-in libraries Arduino is an open-source electronics prototyping platform based on …
IFS Internal Field Separator — GNU Bash.
$ 4.2.36 1 501—> echo $* $ 4.2.36 2 502—> echo “$*” $ 4.2.36 3 503—> echo $IFS $ 4.2.36 4 504—> set $IFS=rightleftwrong $ 4.2.36 5 505—> echo $* =rightleftwrong $ 4.2.36 6 506—> echo “$*” =rightleftwrong $ 4.2.36 7 507—> echo $IFS $ 4.2.36 8 508—> echo $* =rightleftwrong $ 4.2.36 9 509—> …
bash -r restricted shell
$ 4.2.36 8 508—> bash -r $ 4.2.36 1 501—> ls Algorithms bookmark bugs-general debian-howtos firewall kernel linux README beautifulwork books config-files Docs https: language ovlfose $ 4.2.36 2 502—> cd .. bash: cd: restricted $ 4.2.36 3 503—> cd / bash: cd: restricted $ 4.2.36 4 504—> ./firewall/firewall.bw bash: ./firewall/firewall.bw: restricted: cannot specify `/’ …
reportbug tool
commandline session $ 4.2.36 8 508—> reportbug –debug Please enter the name of the package in which you have found a problem, or type ‘other’ to report a more general problem. > testing *** Welcome to reportbug. Use ? for help at prompts. *** Note: bug reports are publicly archived (including the email address of …
HACKS AT LINUX KERNEL
Linux(kernel) System Administration 1. Memory Management – Virtual Memory Using /proc/sys/vm