Category: Uncategorized

Graph for Sorting plotted using R

The following graph shows the time details to execute a sorting algorithm written in python. The values for plotting the above graph is taken from the following readings. Fri May 16 21:36:17 IST 2014 real 0m0.019s user 0m0.016s sys 0m0.000s real 0m0.021s user 0m0.016s sys 0m0.004s real 0m0.024s user 0m0.020s sys 0m0.000s real 0m0.020s user

Crash: glibc: compile from upstream source related

Log Report Related the following content may not be accurate. 1. unable to find getty program upstream source. 2. need to get libc-2.14 for getty. 3. trying to upgrade another system to get libc-2.14 4. is it possible to get multiple versions of glibc installed on a same system. compile another version of glibc and

uptime w whoami id hostname apropos whatis

commandline session $uptime 20:57:47 up 1:41, 3 users, load average: 0.64, 0.71, 0.70 $ $w 20:57:49 up 1:41, 3 users, load average: 0.64, 0.71, 0.70 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT jeffrin tty7 :0 19:16 1:41m 3:50 0.04s gdm-session-worker [pam/gdm3-autologin] jeffrin pts/0 :0 20:52 1:25 0.08s 0.08s bash jeffrin pts/1 :0 20:57 5.00s

apt-get (8) – APT package handling utility – – command-line interface

commandline session NO WARRANTY $sudo apt-get remove cowsay [sudo] password for jeffrin: Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: cpp-4.7 libdrm-nouveau1a libmpc2 linux-headers-3.11-1-common linux-kbuild-3.11 Use ‘apt-get autoremove’ to remove them. The following packages will be REMOVED: cowsay 0 upgraded, 0

-mtime n File’s data was last modified n*24 hours ago

commandline session $find . -mtime +1000000 $find . -mtime +100000 $find . -mtime +10000 $find . -mtime +1000 ./wallphotos-old ./wallphotos-old/8002_1600x1200-wallpaper-cb1267712759.jpg ./wallphotos-old/18738_1600x1200-wallpaper-cb1271712460.jpg ./wallphotos-old/3767_1600x1200-wallpaper-cb1267712187 (1).jpg ./wallphotos-old/8020_1600x1200-wallpaper-cb1267712767.jpg ./wallphotos-old/3664_1600x1200-wallpaper-cb1267712118.jpg ./wallphotos-old/17801_1600x1200-wallpaper-cb1273013536.jpg $

head and tail Command Related

commandline session following session display may not be accurate $sudo head dmesg [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.46-1+deb7u1 [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=UUID=3219e911-81fb-4d52-ba7c-117a58d09312 ro quiet [ 0.000000] BIOS-provided physical RAM map: [

Debian GNU/Linux Easter Eggs and Game Related

commandline session the following session may not have an accurate display. $apt-get help $apt-get help | tail -f Attempt to correct a system with broken dependencies in place -m Attempt to continue if archives are unlocatable -u Show a list of upgraded packages as well -b Build the source package after fetching it -V Show

GNU/Linux Command: Viewing Resources

commandline session $df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 224G 7.5G 205G 4% / udev 10M 0 10M 0% /dev tmpfs 336M 664K 336M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 672M 19M 1004M 3% /run/shm $du -sh /etc/ du: cannot read directory ‘/etc/polkit-1/localauthority’: Permission denied du: cannot read directory

GLIBC Break : Errors

$vi Segmentation fault $ $/lib/ld-linux.so.2 /bin/ls /bin/ls: error while loading shared libraries: /bin/ls: wrong ELF class: ELFCLASS64 $ $file /lib/ld-linux.so.2 Segmentation fault $ $su Segmentation fault $su – Segmentation fault $sudo 1866: [sudo: unknown uid 1000: who are you? $ $/etc/init.d/gpm restart Segmentation fault $ $ls -l 1955: [total 81960 Segmentation fault $ Typical Fix