Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Mac defrag (not)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="witeshark" data-source="post: 26389" data-attributes="member: 3865"><p><span style="font-size: 10px"><span style="color: darkred">I know Mac doesn't need defragging unless monumental files are being handled. But does anyone think this Linux quick CLI script would work from the Mac terminal?</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">mkdir newdir</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">cp -ar currentdir/* newdir/</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">mv currentdir/ olddir/</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">mv newdir/ currentdir/</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">rm -rf olddir/</span></span></p><p><span style="font-size: 10px"><span style="color: darkred">It doesn't look like a really clean true defrag, but maybe in some cases better then nothing?</span></span> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick out tongue :p" loading="lazy" data-shortname=":p" /></p></blockquote><p></p>
[QUOTE="witeshark, post: 26389, member: 3865"] [size=2][color=darkred]I know Mac doesn't need defragging unless monumental files are being handled. But does anyone think this Linux quick CLI script would work from the Mac terminal? mkdir newdir cp -ar currentdir/* newdir/ mv currentdir/ olddir/ mv newdir/ currentdir/ rm -rf olddir/ It doesn't look like a really clean true defrag, but maybe in some cases better then nothing?[/color][/size] :p [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Mac defrag (not)
Top