commandline session $ 4.2.20 31 113—> ls as_lookups.c flowlabel.h mod-tcp.c module.c time.c traceroute.h csum.c mod-icmp.c mod-tcpconn.c poll.c traceroute.8 traceroute-hop.c extension.c mod-raw.c mod-udp.c random.c traceroute.c $ 4.2.20 32 114—> diff -u traceroute.c traceroute-hop.c — traceroute.c 2011-08-18 20:49:48.000000000 +0530 +++ traceroute-hop.c 2012-04-10 03:18:05.000000000 +0530 @@ -53,7 +53,7 @@ #endif -#define MAX_HOPS 255 +#define MAX_HOPS 1000 #define MAX_PROBES …
Monthly Archives: April 2012
traceroute . trace the path of a network packet
commandline session $ 4.2.20 3 85—> traceroute www.beautifulwork.org traceroute to www.beautifulwork.org (208.111.45.242), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 12.033 ms 12.014 ms 11.980 ms 2 122.178.228.1 (122.178.228.1) 281.549 ms * * 3 ABTS-KK-Static-217.32.166.122.airtelbroadband.in (122.166.32.217) 285.006 ms 288.169 ms 288.335 ms 4 AES-Static-025.102.22.125.airtel.in (125.22.102.25) 297.473 ms 298.623 ms 299.619 ms 5 125.21.167.118 (125.21.167.118) …
Continue reading “traceroute . trace the path of a network packet”
ping . a basic network command
commandline session $ 4.2.20 2 84—> ping www.beautifulwork.org PING beautifulwork.org (208.111.45.242) 56(84) bytes of data. 64 bytes from in.infoclub.in (208.111.45.242): icmp_req=1 ttl=53 time=288 ms 64 bytes from in.infoclub.in (208.111.45.242): icmp_req=2 ttl=53 time=288 ms 64 bytes from in.infoclub.in (208.111.45.242): icmp_req=3 ttl=53 time=289 ms 64 bytes from in.infoclub.in (208.111.45.242): icmp_req=4 ttl=53 time=288 ms 64 bytes from in.infoclub.in …
dd . one device to another
commandline session $ 4.2.20 2 84—> dd if=/dev/pts of=stdout dd: reading `/dev/pts’: Is a directory 0+0 records in 0+0 records out 0 bytes (0 B) copied, 0.001431 s, 0.0 kB/s $ 4.2.20 3 85—> dd if=/dev/sda sda sda1 sda2 sda5 $ 4.2.20 3 85—> dd if=/dev/sda1 of=/dev/sda sda sda1 sda2 sda5 $ 4.2.20 3 85—> …
dpkg commandline
commandline session $ 4.2.20 7 25—> dpkg –status cam Package `cam’ is not installed and no info is available. Use dpkg –info (= dpkg-deb –info) to examine archive files, and dpkg –contents (= dpkg-deb –contents) to list their contents. $ 4.2.20 8 26—> dpkg –status ftp Package: ftp Status: install ok installed Priority: standard Section: …
PS1 customizing prompt.
commandline session jeffrin@debian:~$ PS1=” $ s # ” $ bash 2 PS1=” $ V # ” $ 4.2.20 3 PS1=” $ V # ! ” $ 4.2.20 4 341 PS1=”[ 33[0;41m]$[ 33[0m] ” $ $ ARCH bash: ARCH: command not found $ arch x86_64 $ PS1=”[ 33[0;41m]$[ 33[0m] ” $ PS1=” $ V # ! …
exit
commandline session $echo $SHELL /bin/bash $ksh $echo $SHELL /bin/bash $echo $shell $csh % echo $SHELL /bin/bash % exit % exit $exit $ksh $ps PID TTY TIME CMD 3523 pts/1 00:00:00 bash 3573 pts/1 00:00:00 ksh 3574 pts/1 00:00:00 ps $csh % ps PID TTY TIME CMD 3523 pts/1 00:00:00 bash 3573 pts/1 00:00:00 ksh 3575 …
df and free
commandline session $df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 234611560 217250928 5443016 98% / udev 991480 0 991480 0% /dev tmpfs 199568 604 198964 1% /run /dev/disk/by-uuid/26cca090-8a72-4443-859f-7a67b7188357 234611560 217250928 5443016 98% / tmpfs 5120 0 5120 0% /run/lock tmpfs 399132 72 399060 1% /tmp tmpfs 399132 700 398432 1% /run/shm $df -h Filesystem …
date and cal
commandline session $date Sat Apr 7 19:34:47 IST 2012 $date -R Sat, 07 Apr 2012 19:34:51 +0530 $date -u Sat Apr 7 14:05:05 UTC 2012 $cal April 2012 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 …
arch and uname
commandline session $arch i686 $uname -m i686 $arch –help Usage: arch [OPTION]… Print machine architecture. –help display this help and exit –version output version information and exit Report arch bugs to bug-coreutils@gnu.org GNU coreutils home page: General help using GNU software: For complete documentation, run: info coreutils ‘arch invocation’ $