nmap . -O: Enable OS detection

commandline session $nmap 127.0.0.1 Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-24 17:56 IST Nmap scan report for localhost (127.0.0.1) Host is up (0.00019s latency). Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 111/tcp open rpcbind Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds $nmap …

What does the command “netstat ” do ?

ABOUT netstat In computing, netstat (network statistics) is a command-line network utility tool that displays network connections for the Transmission Control Protocol (both incoming and outgoing), routing tables, and a number of network interface (network interface controller or software-defined network interface) and network protocol statistics. It is available on Unix-like operating systems including macOS, Linux, …

GNU/Linux BASH builtin commands

commandline session $pwd /home/jeffrin/playground $which pwd /bin/pwd $ $/bin/pwd /home/jeffrin/playground $/bin/pwd -P /home/jeffrin/playground $pwd -P /home/jeffrin/playground $help pwd pwd: pwd [-LP] Print the name of the current working directory. Options: -L print the value of $PWD if it names the current working directory -P print the physical directory, without any symbolic links By default, `pwd’ …

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 …

DEBUG Method Development . LOG.0.2

method to downgrade debian from a unstable tree to stable tree step 1 put the following content in /etc/apt/preferences.d/default Package: * Pin: release a=stable Pin-Priority: 1001 step 2 make your sources.list to stable pointers. step 3 apt-get update apt-get upgrade next do sensibly To Fix Things, work on a stable system and chroot to the …