Gary Matthew Rogers

November 30, 2005

Linux commands in Windows

Filed under: Linux — Administrator @ 1:39 am

I am constantly finding myself using the Windows Command Prompt and accidentally entering commands such as:


C:\Documents and Settings\Administrator>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.

So I went on a quest to see if there was an easy way to use POSIX (Portable Operating System based on Unix) commands in the Windows Command Prompt.

The answer… Cygwin!!

Cygwin is about the niftiest thing since sliced bread. In a nutshell, it is a collection of a buch of common GNU posix applications ported and compiled to run on Windows. And best of all, it is a sinch to install.

Steps to install Cygwin:

  1. Download and run the installer
  2. Select Download Source

    step 1

  3. Select Root Install Directory

    step 2

  4. Select Local Package Directory

    step 3

  5. Select Connection & Download Mirror
  6. Select Packages (Toggle the View to “Full”). Be sure to go over the list and add any extra packages you would like to download.

    step 4
    The installer will then download and install your selected packages.

Steps to make Cygwin commands available in the Windows Command Prompt:

  1. Hold ALT and Double-Click “My Computer” and select the “Advanced” tab

    properties

  2. Click the “Environment Variables” button
  3. Under the “System variables” section, double-click on the variable “Path”

    sysvars

  4. Then, simply add ;c:\cygwin\bin to the end of the variable section of the pop-up.
  5. You can then safely “Ok” out of all the open windows.
  6. Restart your computer. A reboot is required for the path variable changes to take effect.

Once rebooted, you can then issue your chosen linux commands in the Windows Command Prompt:

C:\Documents and Settings\Administrator>ls -la
total 518
drwxrwx---+ 14 Administrators SYSTEM      0 Nov 29 23:21 .
drwxrwxr-x+  8 Administrators SYSTEM      0 Nov 27 12:29 ..
dr-x------+  6 ????????       None        0 Nov 27 16:33 Application Data
drwx------+  2 ????????       None        0 Nov  8 13:21 Cookies
drwx------+  2 ????????       None        0 Nov 29 23:38 Desktop
dr-x------+  3 ????????       None        0 Nov 27 12:29 Favorites
drwx------+  6 ????????       None        0 Nov  8 06:07 Local Settings
dr-x------+  2 ????????       None        0 Nov 27 12:29 My Documents
-rwx------+  1 ????????       None   524288 Nov 29 23:38 NTUSER.DAT
	

November 29, 2005

Mozilla Firefox: New and Improved

Filed under: General — Administrator @ 8:56 pm

firefox logo
The Mozzilla Foundation announced today a new version and a new website for its two flagship projects, the Firefox browser and Thunderbird email client. Moreover, the new Firefox version 1.5 provides the cutting edge of features for the popular internet browser. Give it a try, it is well worth the download and upgrade.

Download Firefox 1.5

November 28, 2005

200GB HVD Discs

Filed under: General — Administrator @ 9:14 pm

High capacity disk drives are right around the corner. GameDaily reports that a new technology called HVD (Holographic Versatile Disc) will be available sometime in late 2006. The leading company in place to manufacture such equipment, InPhase Technologies, has announced that such discs will start at the 200 gigabyte capacity. This is great news for those who feel that the DVD-R 4.7 GB leaves something to be desired.

Powered by WordPress