Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For these commands there are both a g-suffix version and a plain version:

gdate.exe
gecho.exe
ginstall.exe
gln.exe
gmkdir.exe
grmdir.exe
gsort.exe

I can't find the difference.

Edit Someone is interested to this: OS Win7 Pro, GnuWin32 coreutils 5.3.

To be clear, g is the marketing suffix accompanying software released under GNU licensing terms (like k for KDE desktop apps). Here I'd like to know why only these commands (in coreutils) are suffixed and what is the difference with the others in the same directory without the suffix.

share|improve this question
    
I assume you are using windows? Where are you getting these names from? Are they perhaps links? –  terdon Jul 8 '13 at 19:16
    
@terdon: GnuWin= "ports of tools with a GNU or similar open source license, to modern MS-Windows" (gnuwin32.sourceforge.net). Download coreutils and find the binaries here coreutils-5.3.0-bin\bin. –  antonio Jul 8 '13 at 19:36
    
I know, I am pointing out the kind of details you should include in your question, your OS, the source you have downloaded things from etc. –  terdon Jul 8 '13 at 19:39
    
@terdon: I did but my question is not connected with my OS version and the website/description for gnuwin32 should be in the tag summary. –  antonio Jul 8 '13 at 21:57
    
My apologies, I had misunderstood the sitiation. I thought you had downloaded both gdate.exe and date.exe from the GNU tools site so I was asking where you got them so I could easily go and have a look to see if I could figure out what was wrong. –  terdon Jul 9 '13 at 2:03

1 Answer 1

up vote 6 down vote accepted

The g prefix here means that the tool is from GnuWin32 as opposed to the native Windows command of the same name. For example, mkdir and echo are builtin commands in the cmd.exe shell, and find.exe is part of Windows and does a completely different thing from the coreutils find (it is actually more similar to grep). Therefore, the prefix is needed to allow accessing both native and GnuWin32 commands at the same time.

share|improve this answer
1  
+1 for defining prefix :) –  MattDMo Jul 8 '13 at 21:29
    
Clear, while I don't see a built-in ln and install, while very common, isn't built-in either. –  antonio Jul 8 '13 at 22:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.