What does -v mean in sudo fstrim -v / ?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
RamBurner
Level 3
Level 3
Posts: 107
Joined: Wed Nov 23, 2011 7:31 pm

What does -v mean in sudo fstrim -v / ?

Postby RamBurner » Mon Jun 08, 2015 9:06 am

What does -v mean in sudo fstrim -v / ?
I can't seem to find the answer. I know the ( - ) means regular file, but what does the ( v ) stand for?

User avatar
WharfRat
Level 19
Level 19
Posts: 9944
Joined: Thu Apr 07, 2011 8:15 pm

Re: What does -v mean in sudo fstrim -v / ?

Postby WharfRat » Mon Jun 08, 2015 9:14 am

RamBurner wrote:What does -v mean in sudo fstrim -v / ?
I can't seem to find the answer. I know the ( - ) means regular file, but what does the ( v ) stand for?

Code: Select all

man fstrim

has your answer :wink:
Image ImageImage

User avatar
Reorx
Level 11
Level 11
Posts: 3805
Joined: Tue Jul 07, 2009 7:14 pm
Location: SE Florida, USA

Re: What does -v mean in sudo fstrim -v / ?

Postby Reorx » Mon Jun 08, 2015 10:13 am

WharfRat wrote:
RamBurner wrote:What does -v mean in sudo fstrim -v / ?
I can't seem to find the answer. I know the ( - ) means regular file, but what does the ( v ) stand for?

Code: Select all

man fstrim

has your answer :wink:

^^^This!^^^ ...and from the man pages >>>

-v, --verbose
Verbose execution. When specified fstrim will output the number of bytes passed from the
filesystem down the block stack to the device for potential discard. This number is a maximum
discard amount from the storage device's perspective, because FITRIM ioctl called repeated will
keep sending the same sectors for discard repeatedly.
Image

Mute Ant
Level 12
Level 12
Posts: 4102
Joined: Tue Sep 03, 2013 7:45 pm

Re: What does -v mean in sudo fstrim -v / ?

Postby Mute Ant » Mon Jun 08, 2015 10:17 am

The hyphen is interpreted as prefixing a command option of some sort. If the option is null; just a hyphen on its own, it is expanded by the shell to /dev/stdin

Code: Select all

### Echo STDIN to the screen...press a few keys...Ctrl+C to exit.
cat /dev/stdin
cat -
Armageddon only happens once, you know. They don’t let you go around again until you get it right.

User avatar
Pjotr
Level 18
Level 18
Posts: 8846
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: What does -v mean in sudo fstrim -v / ?

Postby Pjotr » Mon Jun 08, 2015 10:43 am

As already pointed out, but in ordinary speech: -v simply forces fstrim to tell you, what it has been doing. :mrgreen:
Tip: 10 things to do after installing Linux Mint 18.2 Sonya
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
RamBurner
Level 3
Level 3
Posts: 107
Joined: Wed Nov 23, 2011 7:31 pm

Re: What does -v mean in sudo fstrim -v / ?

Postby RamBurner » Wed Oct 14, 2015 12:31 pm

Thank you for the help. :mrgreen:


Return to “Newbie Questions”