3 ms·
I see a few other comments trying to address this with a similar truncation shell command but then a few arguing replies about the redirection operator not work
by ycombiredd 3y ago
I see a few other comments trying to address this with a similar truncation shell command but then a few arguing replies about the redirection operator not working due to some syntax error. So here’s the trick there… preface the redirection operator with a null command, like so
:> somefile
Note the colon, which stands in for the command as a null operator.
An additional hint is that if the system is so starved you can’t run ls, again call
On the shell for help and use “echo *”, which will show a list of file names (without sizes) from which hopefully you can select a large file (or few) based on name alone. Colon-greater them into zero byte status and watch your system become useable enough to begin normal recovery efforts.
From an old Unix admin; I hope that helps someone.