General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-03-2011, 08:36 PM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Rep:
|
du and rm for DOS/Windows,
Hi:
Where could I get du for the MS-DOS operating system? Thanks.
|
|
|
04-03-2011, 08:55 PM
|
#2
|
Member
Registered: Feb 2004
Location: Sydney - Australia
Distribution: Ubuntu, OpenSUSE, Mythbuntu, Embedded Linux
Posts: 46
Rep:
|
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.
|
|
|
04-03-2011, 09:22 PM
|
#3
|
Member
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185
Rep:
|
.................
Last edited by Mr. Bill; 04-04-2011 at 07:14 PM.
Reason: mistook op's question.....
|
|
|
04-04-2011, 12:05 AM
|
#4
|
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279
|
Quote:
Originally Posted by Mr. Bill
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.
|
|
|
04-04-2011, 12:08 AM
|
#5
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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.
|
|
|
04-04-2011, 12:16 AM
|
#6
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
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.
|
|
|
04-04-2011, 05:16 AM
|
#7
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,307
Rep:
|
An alternative to Cygwin would be the coreutils package from GnuWin32:
http://gnuwin32.sourceforge.net/packages/coreutils.htm
|
|
|
04-04-2011, 07:09 PM
|
#8
|
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442
Original Poster
Rep:
|
Thanks a lot, brianL.
|
|
|
04-04-2011, 10:49 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Moved: This thread is more suitable in <GENERAL> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
All times are GMT -5. The time now is 10:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|