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 …

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 …

ls -X sort alphabetically by entry extension

commandline session $ls -lX total 1144 -rwxr-xr-x 1 jeffrin jeffrin 115430 Sep 28 01:11 bwt -rwxr-xr-x 1 jeffrin jeffrin 129354 Sep 28 01:11 ds -rw-r–r– 1 jeffrin jeffrin 1063 May 18 19:23 Makefile -rw——- 1 jeffrin jeffrin 3793 Dec 13 2005 README -rwxr-xr-x 1 jeffrin jeffrin 141313 Sep 28 01:11 testlcp drwxr-xr-x 2 jeffrin jeffrin …

Burrows–Wheeler Transform . 1994

commandline session $cat hello Hello. How are you $../bwt hello $ls hello hello~ hello.bwt $rm hello~ $ls hello hello.bwt $cat hello.bwt u.weo rHellyHaoo $ $hexdump hello.bwt 0000000 750a 772e 6f100 200a 4872 6c100 796c 6148 0000010 6f6f 0520 0000 0000 0000017 $../unbwt hello.bwt $ls hello hello.bwt hello.bwt.y $cat hello.bwt.y Hello. How are you $

Binary Tree Debug (Pre-order Related)

commandline session $gdb a.out GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type “show copying” and “show warranty” for details. This GDB …