Skip to main content
Question

TRIM Force Script


JKingsnorth
Forum|alt.badge.img+7

Has anyone wrote a script that enables TRIM Force for 3rd Party SSD's using sudo trimforce enable?

3 replies

Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • June 20, 2016

sudo yes | trimforce enable


russeller
Forum|alt.badge.img+15
  • Valued Contributor
  • 215 replies
  • June 23, 2016

TIL about the yes command

YES(1)                    BSD General Commands Manual                   YES(1)

NAME
     yes -- be repetitively affirmative

SYNOPSIS
     yes [expletive]

DESCRIPTION
     yes outputs expletive, or, by default, ``y'', forever.

HISTORY
     The yes command appeared in 4.0BSD.

4th Berkeley Distribution        June 6, 1993        4th Berkeley Distribution

Forum|alt.badge.img+8

That's a pretty awesome use of the yes command. Would have never thought about it (I would have gone the expect way…) :-D


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings