LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 04-03-2011, 08:36 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
du and rm for DOS/Windows,


Hi:

Where could I get du for the MS-DOS operating system? Thanks.
 
Old 04-03-2011, 08:55 PM   #2
WildPossum
Member
 
Registered: Feb 2004
Location: Sydney - Australia
Distribution: Ubuntu, OpenSUSE, Mythbuntu, Embedded Linux
Posts: 46

Rep: Reputation: 18
Assuming your got a MSDOS/Windows partition or drive already mounted under Linux,
you simply execute 'du /windows' to get what you want.

If you haven't then mount the partition / drive using 'sudo' with something like:
'sudo mount -t vfat /dev/windows /media/disk1' where /dev/windows is the drive & partition
on which windows exist (i.e.: /dev/hda0) and where disk1 is a directory you have under the
/media directory under linux. If not do 'sudo mkdir /media/disk1' will do that.

If that is not what your asking then you will have to be more specific.

Cheers.
 
Old 04-03-2011, 09:22 PM   #3
Mr. Bill
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
.................

Last edited by Mr. Bill; 04-04-2011 at 07:14 PM. Reason: mistook op's question.....
 
Old 04-04-2011, 12:05 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by Mr. Bill View Post
The DU command for MS-DOS is DIR. This will show the files and their sizes on the boot drive. DIR A: will give the contents of a floppy disk. DIR C:\WINDOWS will show the files in the Windows directory, etc. HELP DIR is the same as MAN DU.

The RM command for MS-DOS is DEL. DEL C:\. will erase the entire drive.
The du command is disc usage not list, so that's not correct.

del only deletes files AFAIK, deltree is needed to delete directories.

The easiest way to get linux utilities onto a DOS or windows system is to use cygwin.
 
Old 04-04-2011, 12:08 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Sorry for not having been more specific. I once downloaded, from the web, a version of less that could be run under the MS-DOS operating system. This being the case, I assume there must be plenty of other linux utilities that can be run under DOS somewhere in the web. But I do not know any such site. Do you, guys, know one?

Notice I do not mean Windo$s but plain DOS.
 
Old 04-04-2011, 12:16 AM   #6
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Sorry for the double post but I had just about to click 'send' when yours arrived. I see you've catch the meaning of my post. Yes, I have heard about cygwin. Perhaps, this is the solution I'll adopt. Thank you very much.
 
Old 04-04-2011, 05:16 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Blog Entries: 61

Rep: Reputation: Disabled
An alternative to Cygwin would be the coreutils package from GnuWin32:

http://gnuwin32.sourceforge.net/packages/coreutils.htm
 
Old 04-04-2011, 07:09 PM   #8
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks a lot, brianL.
 
Old 04-04-2011, 10:49 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <GENERAL> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Old DOS/Windows Guy darren1959 LinuxQuestions.org Member Intro 1 11-26-2008 05:53 PM
How to run DOS/Windows executable? asharsidd Linux - Newbie 4 10-31-2007 12:14 AM
Windows DOS games Four Linux - Newbie 3 09-28-2005 02:26 AM
* in windows/dos is what in linux? LouisTheDamned Linux - Newbie 1 03-26-2005 02:03 AM
Running DOS software in Windows ChrisDiG Linux - Software 2 11-09-2003 10:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration