I'm trying to run a program that requires glibc 2.7, but I'm running it on CentOS 5.5. Is there any way to do this? I can't upgrade to CentOS 6.
I'd like to write a simple script that alerts me if a log changes. For this I'm using grep to find the lines I'm interested in. Right now it works like this:
grep line /var/log/file | mail -s Log [email protected]
Problem is that this sends a mail even if no matching lines are found. The mail utility from GNU Mailutils seems to have no switch telling it to drop mails that have an empty body.
Is there a quick and easy way to do so?
In the manual for Gnu "ls," I see this:
--author
with -l, print the author of each file
Does anybody know what the “author” of a file means in this context?
This is (maybe?) not the file's owner, which is listed already with -l
… or is it? Perhaps this refers to a different type of filesystem than mine (ext4), that has a distinction between "author" and "owner?"
On my machine, it seems to uniformly duplicate the "owner" column, but I'm definitely curious about this one.
Perhaps this is just the worst combination of "noise" keywords ever, but I can't find anything relevant online (neither /usr/share/{man,info} nor StackExchange nor Google), but “author” is practically a noiseword :-(
I suppose, if all else fails, I can dig through the coreutils
sources…
Will restarting the system flush BIND (named) cache? I use GNU/Linux.
I need to get a list of human readable du output.
However, du
does not have a "sort by size" option, and piping to sort
doesn't work with the human readable flag.
For example, running:
du | sort -n -r
Outputs a sorted disk usage by size (descending):
du |sort -n -r
65108 .
61508 ./dir3
2056 ./dir4
1032 ./dir1
508 ./dir2
However, running it with the human readable flag, does not sort properly:
du -h | sort -n -r
508K ./dir2
64M .
61M ./dir3
2.1M ./dir4
1.1M ./dir1
Does anyone know of a way to sort du -h
by size?