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
Post Reply
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 / ?

Post by 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 20
Level 20
Posts: 11110
Joined: Thu Apr 07, 2011 8:15 pm

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

Post by 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: 3812
Joined: Tue Jul 07, 2009 7:14 pm
Location: SE Florida, USA

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

Post by 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 13
Level 13
Posts: 4657
Joined: Tue Sep 03, 2013 7:45 pm

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

Post by 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 -
You were in the left-hand lane and you were signalling left and I more or less assumed you were going to turn left.

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

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

Post by 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.3 Sylvia
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 / ?

Post by RamBurner » Wed Oct 14, 2015 12:31 pm

Thank you for the help. :mrgreen:

Post Reply

Return to “Newbie Questions”