Skip to main content
Question

TRIM Force Script

  • June 16, 2016
  • 3 replies
  • 12 views

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
  • June 20, 2016

sudo yes | trimforce enable


russeller
Forum|alt.badge.img+16
  • Valued Contributor
  • 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