Erlang shell .

commandline session $erl Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.9.1 (abort with ^G) 1> q(). ok 2> $ $erl Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.9.1 (abort with ^G) 1> h(). ok 2> h() 2> . 1: h() -> ok ok 3> pwd(). /home/jeffrin/Downloads ok 4> cd(“..”). /home/jeffrin ok 5> 1+2. …

GCC COMMANDLINE OPTIONS PART 8 -ansi

commandline session $cat main.c #include<stdio.h> #include<math.h> int main(void) { int i=0; float y; printf(“n The Geek Stuff [%d]n”, i); y=sinf(2.5); printf(“%fn”,y); return 0; } $gcc -ansi main.c /tmp/ccBNR3rx.o: In function `main’: main.c:(.text+0x3c): undefined reference to `sinf’ collect2: error: ld returned 1 exit status $gcc main.c $

GCC COMMANDLINE OPTIONS PART 7

commandline session $gcc -v main.c Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v –with-pkgversion=’Debian 4.7.2-4′ –with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs –enable-languages=c,c++,go,fortran,objc,obj-c++ –prefix=/usr –program-suffix=-4.7 –enable-shared –enable-linker-build-id –with-system-zlib –libexecdir=/usr/lib –without-included-gettext –enable-threads=posix –with-gxx-include-dir=/usr/include/c++/4.7 –libdir=/usr/lib –enable-nls –with-sysroot=/ –enable-clocale=gnu –enable-libstdcxx-debug –enable-libstdcxx-time=yes –enable-gnu-unique-object –enable-plugin –enable-objc-gc –with-arch-32=i586 –with-tune=generic –enable-checking=release –build=x86_64-linux-gnu –host=x86_64-linux-gnu –target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-4) COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=x86-64’ …

GCC COMMANDLINE OPTIONS PART 6

commandline session $ gcc -c -Wall -Werror -fPIC main.c main.c: In function ‘main’: main.c:8:10: error: ‘i’ is used uninitialized in this function [-Werror=uninitialized] cc1: all warnings being treated as errors $vim main.c $cat main.c #include<stdio.h> #include<math.h> int main(void) { float y; printf(“n The Geek Stuff [%d]n”, i); y=sinf(2.5); printf(“%fn”,y); return 0; } $ gcc -c …

GCC COMMANDLINE OPTIONS PART 5

commandline session $cat main.c #include<stdio.h> #include<math.h> int main(void) { int i; float y; printf(“n The Geek Stuff [%d]n”, i); y=sinf(2.5); printf(“%fn”,y); return 0; } $gcc main.c $./a.out The Geek Stuff [0] 0.598472 $gcc main.c -lmath /usr/bin/ld: cannot find -lmath collect2: error: ld returned 1 exit status $gcc main.c -llibmath /usr/bin/ld: cannot find -llibmath collect2: error: …

lspci -vmm . Dump PCI device data in a machine readable form for easy parsing by scripts

commandline session $lspci -vmm Slot: 00:00.0 Class: RAM memory Vendor: NVIDIA Corporation Device: MCP61 Memory Controller SVendor: Giga-byte Technology SDevice: Device 5001 Rev: a1 Slot: 00:01.0 Class: ISA bridge Vendor: NVIDIA Corporation Device: MCP61 LPC Bridge SVendor: Giga-byte Technology SDevice: Device 0c11 Rev: a2 Slot: 00:01.1 Class: SMBus Vendor: NVIDIA Corporation Device: MCP61 SMBus SVendor: …