On 12/10/2014 02:54 PM, sys.syphus wrote:
I would like to avoid running out of space. is there a way to know
that I am getting close? i'd like to make a script that runs as part
of my bash prompt and lets me know when i am getting close. i know
there are several ways you can run out of space and I'd like to avoid
all of them.

Don't do that either. 8-)

(1) you'll grow to hate it.

(2) You know when you are doing things that take a lot of storage. You instinct for system fullness is already part of your brain-meat.

(3) The system isn't going to explode if it runs out of disk space. (old UNIX systems used to halt with system errors because running out of space prevented pipelines from being created, but that's ancient history).

(4) The only _real_ way to run out of space is to be a data hoarder, and no script in the world is going to help you if that's the case. Ha Ha....

You don't check your car's gas tank every time you put your foot on the brake, you don't want to check your free space every time your system finishes every tiny command you type.

Scripts like this are possible in bash, but consider that every "ls" or even just enter you type would be followed by a "df" and a "grep" or whatever in whatever window you are using at the time. etc.

IF you think you are going to run out of space, and you are using _any_ kind of window system, then start a system manager display for a while until you get the feel for how not out of space you really are.

Nothing gets ignored faster than a text element that essentially never changes, and once you get in the habbit of ignoring the text you won't notice when it actually has something to say.

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to