Month: July 2012

& – Forking operator(AND operator)

commandline session $ 4.2.29 11 511—> ping -c5 google.com & [1] 4376 $ 4.2.29 12 512—> PING google.com (173.194.38.1100) 56(84) bytes of data. 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=1 ttl=54 time=75.8 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=2 ttl=54 time=75.3 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): icmp_req=3 ttl=54 time=75.4 ms 64 bytes from sin04s02-in-f5.1e100.net (173.194.38.1100): …

Read More

( GNU size ) examples

commandline session $ 4.2.29 2 502—> ./a.out found in: htop-0.9 found in: . $ 4.2.29 3 503—> size a.out $ 4.2.29 3 503—> size a.out text data bss dec hex filename 2401 608 16 3025 bd1 a.out $ 4.2.29 4 504—> man size $ 4.2.29 5 505—> size –format=SysV a.out a.out : section size addr …

Read More

example working with scala 3

Get The Hang $ 4.2.29 2 502—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> va a, b = 10 :1: error: ‘;’ expected but ‘,’ found. va a, b = 10 ^ scala> val a, b = …

Read More

example working with scala 2 (declaring values and variables)

Get The Hang $ 4.2.29 1 501—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> val stat = data + ticks :7: error: not found: value data val stat = data + ticks ^ scala> val stat = …

Read More

example working with scala 1 (include auto-completion)

Get The Hang $ 4.2.29 2 502—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> 6/3 res0: Int = 2 scala> res0. % & * + – / > >= >> >>> ^ asInstanceOf isInstanceOf toByte toChar toDouble …

Read More

working with scala examples 1

commandline session $ 4.2.29 15 515—> scala Welcome to Scala version 2.9.2 (OpenJDK 64-Bit Server VM, Java 1.6.0_24). Type in expressions to have them evaluated. Type :help for more information. scala> 4*2-7 res0: Int = 1 scala> res0+1 res1: Int = 2 scala> 2*0.4 res2: Double = 0.8 scala> “hello” res3: java.lang.String = hello scala> …

Read More

process tree using ps

commandline session $ 4.2.29 10 510—> ps -H PID TTY TIME CMD 4668 pts/1 00:00:00 bash 4669 pts/1 00:00:53 evince 4738 pts/1 00:00:00 ps $ 4.2.29 11 511—>

Read More

GNU readline + bind + functions + keybinding

commandline session $ 4.2.29 57 557—> bind -P abort can be found on “C-g”, “C-xC-g”, “eC-g”. accept-line can be found on “C-j”, “C-m”. alias-expand-line is not bound to any keys arrow-key-prefix is not bound to any keys backward-byte is not bound to any keys backward-char can be found on “C-b”, “eOD”, “e[D”. backward-delete-char can be …

Read More

apache2 commandline 1

commandline session $ 4.2.29 34 534—> sudo /usr/sbin/apache2 -D module [sudo] password for jeffrin: apache2: bad user name ${APACHE_RUN_USER} $ 4.2.29 35 535—> sudo /usr/sbin/apache2 -D loadmodule apache2: bad user name ${APACHE_RUN_USER} $ 4.2.29 36 536—> sudo /usr/sbin/apache2 -l Compiled in modules: core.c mod_log_config.c mod_logio.c mod_version.c prefork.c http_core.c mod_so.c $ 4.2.29 37 537—>

Read More

xargs and find to selected copy

commandline session $ 4.2.29 8 508—> find . -name “*gimp*” -print0 | xargs -0 -I {} cp {} ../6raphics/ $ 4.2.29 9 509—> find . -name “*gimp*” -print0 | xargs -0 -I {} cp {} ../6raphics/ $ 4.2.29 10 510—> find . -name “*blender*” -print0 | xargs -0 -I {} cp {} ../6raphics/ $ 4.2.29 …

Read More