This command will show how many kilometers there are in a light year. jason$ units -t ‘1 light year/kilometers’ 9.4605284e+12jason$ units -t ‘1 light year/kilometers’ 9.4605284e+12 If I travelled 800m in 9.58 seconds how many miles per hour is this? jason$ units -t ‘800m/9.58s’ ‘miles/hour’ 186.80053jason$ units -t ‘800m/9.58s’ ‘miles/hour’ 186.80053 Using it this way, …

The Linux find command is useful for finding files on your Linux system. It is possible to look for more than one file type. This example will search for all text and png files under the /usr/share directory. [email protected]:/usr/share$ find -regex ‘.*txt\|.*png’[email protected]:/usr/share$ find -regex ‘.*txt\|.*png’ This example will search for three different file types. [email protected]:/usr/share$ …

This command will return a huge listing of all the visitable url`s on the http://www.google.com.au website. Give this a shot on other websites and see how you go. [email protected]:~$ wget –spider –force-html -r -l2 http://www.google.com.au 2>&1 | grep ‘^–‘ | awk ‘{ print $3 }’[email protected]:~$ wget –spider –force-html -r -l2 http://www.google.com.au 2>&1 | grep ‘^–‘ …

To get the command line of a process without the ps command, and the PID of the command is known, use this command. This example is using a process with a PID of 3380. [email protected]:~$ cat /proc/3380/cmdline /usr/lib/vmware/bin/thnuclnt-pdir/tmp/vmware-jason/[email protected]:~$ cat /proc/3380/cmdline /usr/lib/vmware/bin/thnuclnt-pdir/tmp/vmware-jason/thnuclnt-3346-fg This will show the command line of the process without using the ps command. …

The Linux stat command allows information to be shown about a file on your file-system. [email protected]:~/Documents$ stat /bin/ls File: ‘/bin/ls’ Size: 118280 Blocks: 232 IO Block: 4096 regular file Device: 801h/2049d Inode: 10616940 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2016-02-01 08:55:40.145487505 +1100 Modify: 2015-03-15 02:47:04.000000000 +1100 Change: 2016-01-19 …

The netdiscover utility will list all connected hosts on your local LAN. This is useful for scanning a network and determining which hosts are online. I used this command to scan an IP range starting with 192.168.0.1. [email protected]:~$ sudo netdiscover -r 192.168.0.1/[email protected]:~$ sudo netdiscover -r 192.168.0.1/24 Currently scanning: Finished! | Screen View: Unique Hosts   …

The wikipedia2text command allows a command line user on Debian to output the contents of a Wikipedia article to a text file on your hard drive. Install this command this way: [email protected]:~/Documents$ sudo apt-get install [email protected]:~/Documents$ sudo apt-get install wikipedia2text Then convert an article this way. [email protected]:~/Documents$ wikipedia2text Debian > [email protected]:~/Documents$ wikipedia2text Debian > Debian.txt …