Page 1 of 1

commands

Posted: Thu Apr 17, 2008 9:29 am
by manatails007
sometimes I feel confused when I work with DOS and Linux at the same time.

I sometimes type ls, cp, rm in DOS and
I sometimes type dir, copy, del in Linux

It's very confusing :roll: I think it will be good if ReactOS uses both of commands :wink:

Posted: Thu Apr 17, 2008 9:52 am
by elhoir
or maybe just aliases

Posted: Thu Apr 17, 2008 10:42 am
by SdC
I don't see why; these are different worlds. There are no English road signs in Russia are there?
even if you alias the commands, the parameters would still be different.

Posted: Thu Apr 17, 2008 12:21 pm
by elhoir
SdC wrote: even if you alias the commands, the parameters would still be different.
I agree with you, i didnĀ“t notice it

Posted: Thu Apr 17, 2008 12:22 pm
by BOT_ev
or maybe just aliases
Indeed ...

Posted: Fri Apr 18, 2008 5:47 am
by manatails007
SdC wrote:I don't see why; these are different worlds. There are no English road signs in Russia are there?
even if you alias the commands, the parameters would still be different.
you're right but we dont use parameters very much.

I think just aliases will be ok

Posted: Fri Apr 18, 2008 9:18 am
by SdC
manatails007 wrote: you're right but we dont use parameters very much.

I think just aliases will be ok
"we"?
I do A LOT in Windows and *nix from a command line and do I use parameters A LOT. I think it would be ridiculous to have an 'ls' command available in windows if it doesn't behave exactly the same as in Unix.

Posted: Fri Apr 18, 2008 8:12 pm
by z180
I recommend cygwin.I did some work like recompiling linux packets
converted by the alien script.

Posted: Fri Apr 18, 2008 8:45 pm
by SdC
z180 wrote:I recommend cygwin.I did some work like recompiling linux packets
converted by the alien script.
exactly.

Posted: Fri Apr 18, 2008 10:22 pm
by raketenfred
I think that should be something you can install later, you can make your programms that can do this jobs with the names:

//C++:
#define command "xy"
int main(char* args[])//not sure!
{
system(command+args);//+args correct??!!
return 0;
}

mfg

rf

Posted: Fri Apr 18, 2008 11:28 pm
by Carlo Bramix
SdC wrote:
z180 wrote:I recommend cygwin.I did some work like recompiling linux packets
converted by the alien script.
exactly.
Or, alternatively, you can get mingw utils, unpack the archive somewhere and include them into your %PATH%.

Sincerely,

Carlo Bramini

Posted: Sat Apr 19, 2008 9:00 pm
by cppm
basically, it's a solved problem :wink:

and Ros isn't in the business of duplicating other perfectly good open source solutions (one hopes) just Microsofts closed source solutions - in this case: the dir, copy, delete commands etc

Posted: Mon Apr 21, 2008 5:55 pm
by etko
What about 4DOS NT equivalent 4NT (I guess)? It had some useful feats.

Re: commands

Posted: Wed Jul 02, 2008 6:53 pm
by nitrofurano
a question: what is similar to dos command this linux one?

Code: Select all

cat text.txt | grep something > result.txt

Re: commands

Posted: Thu Jul 03, 2008 1:22 pm
by Haos
MS DOS? None i can remember

If you mean NT command shell, then:

Code: Select all

find "something" [patch]text.txt > result.txt