SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / server / Questions

Questions[gnu](server)

Martin Hope
CommunistPancake
Asked: 2012-03-22 17:07:03 +0800 CST

glibc 2.7 on CentOS 5.5?

  • 6

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.

centos redhat gnu glibc
  • 2 Answers
  • 15372 Views
Martin Hope
cdecker
Asked: 2012-01-15 16:39:59 +0800 CST

Sending mail from command line if body not empty

  • 12

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?

email bash cron command-line-interface gnu
  • 3 Answers
  • 14308 Views
Martin Hope
BRPocock
Asked: 2011-12-16 08:38:19 +0800 CST

Who is the "author" of a file (Gnu "ls" manual)

  • 5

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…

file-permissions ls gnu coreutils
  • 1 Answers
  • 319 Views
Martin Hope
Akilan
Asked: 2011-09-01 04:19:51 +0800 CST

Will restarting the system flush BIND (named) cache?

  • 10

Will restarting the system flush BIND (named) cache? I use GNU/Linux.

linux domain-name-system bind gnu
  • 1 Answers
  • 7745 Views
Martin Hope
Tom Feiner
Asked: 2009-02-26 05:42:42 +0800 CST

How can I sort du -h output by size

  • 1346

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?

linux bash du gnu
  • 30 Answers
  • 1001294 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve