mcd(1)
β¨ mcd(1) β¨
general commands manual, but make it cute β okay bestie, this is the mcd page from the mtools manual, and we're gonna get you fluent in it, no cap. π
π¨ NOTE OF WARNING π¨
Real talk first, because this matters: this manpage has been automatically generated from mtools's texinfo documentation, and it may not be entirely accurate or complete. π The details on how to go look at the actual texinfo doc are at the end of this page β go check those, fr fr.
πΈ NAME πΈ
mcd β change MSDOS directory. That's it, that's the whole vibe. π¦
π DESCRIPTION π
So the mcd command is the one you use to change the mtools working directory on the MS-DOS disk. The syntax goes like this:
mcd [msdosdirectory]
With no arguments at all? It just reports the current device and working directory back to you. Like a little status update. π«Ά But if you do give it something, mcd changes the current device and the current working directory, relative to an MS-DOS file system.
The environmental variable MCWD can be used to locate the file where the device and current working directory info is stored. The default is $HOME/.mcwd. π
β οΈ But listen β the information in that file is ignored if the file is more than 6 hours old. Six. Hours. So if your .mcwd is giving expired-milk energy, it gets skipped. π
mcd returns 0 on success or 1 on failure. Simple as that.
And here's the slay: unlike the MS-DOS versions of CD, mcd can actually be used to change to another device. Main character energy. β¨ It may be wise to remove old .mcwd files at logout, though β just saying. π§
π SEE ALSO π
- Mtools' texinfo doc π β go read the real thing, bestie.
π VIEWING THE TEXI DOC π
Okay so, this manpage has been automatically generated from mtools's texinfo documentation. But the process is only approximative, and some items β like crossreferences, footnotes and indices β are just lost in this translation process. π And honestly? Those items have no appropriate representation in the manpage format anyway. On top of that, not all information has been translated into the manpage version at all. So I strongly advise you to use the original texinfo doc. The instructions on how to view the texinfo doc are at the end of this manpage. π«Ά
- To generate a printable copy from the texinfo doc, run the following commands:
./configure; make dvi; dvips mtools.dvi
- To generate a html copy, run:
./configure; make html
A premade html can be found at http://www.gnu.org/software/mtools/manual/mtools.html π
- To generate an info copy (browsable using emacs' info mode), run:
./configure; make info
And a lil aesthetic note: the texinfo doc looks most pretty when printed or as html. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info. π So if you want the pretty version, you know where to go. π
Okay that's the whole page, bestie!! This was mcd from the mtools-4.0.49 manual, dated 14Jun25 β love that for us, go change some directories, you absolute icon. πβ¨π¦π
π¦ where this page comes from
- alpine 3.23: mtools-doc 4.0.49-r0 Β· GPL-3.0-or-later
- alpine 3.24: mtools-doc 4.0.49-r0 Β· GPL-3.0-or-later
- fedora 43: mtools 4.0.49-2.fc43 Β· GPL-3.0-or-later
- fedora 44: mtools 4.0.49-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: mtools 4.0.49
- nixpkgs unstable: mtools 4.0.49
- ubuntu resolute: mtools 4.0.49-1 Β· GPL-3.0-only
- ubuntu stonking: mtools 4.0.49-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms