Questions tagged [gnu]

38 questions
1418
votes
39 answers

How can I sort du -h output by size

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…
Tom Feiner
  • 17,578
  • 8
  • 30
  • 24
15
votes
6 answers

What is the OS X / BSD equivalent of the GNU "ps auxf" command?

In the GNU utils, ps auxf gives the process list with forest (tree). Is there a equivalent for this command at BSD / OS X systems?
vdboor
  • 3,800
  • 3
  • 31
  • 32
13
votes
2 answers

Using parallel to run script without input

I'm trying to run many instances of a script with GNU parallel, but the script takes no arguments. If I just execute 'parallel foo.sh' I get this: parallel: Warning: Input is read from the terminal. Only experts do this on purpose. Press CTRL-D to…
user1700840
  • 313
  • 1
  • 3
  • 7
13
votes
3 answers

Sending mail from command line if body not empty

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@domain.tld Problem is that this sends a mail…
cdecker
  • 411
  • 2
  • 5
  • 18
10
votes
1 answer

Will restarting the system flush BIND (named) cache?

Will restarting the system flush BIND (named) cache? I use GNU/Linux.
Akilan
  • 399
  • 1
  • 5
  • 11
9
votes
3 answers

Bypass openvpn for particular ip

My desktop machine runs Trisquel GNU/Linux 6.0 (which is basically a libre version of Ubuntu 12.04), and I use OpenVPN to connect to a commercial VPN provider for internet access. It currently routes all my traffic through the VPN, which is great,…
Lloyd Smart
  • 93
  • 1
  • 1
  • 4
6
votes
2 answers

glibc 2.7 on CentOS 5.5?

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.
CommunistPancake
  • 197
  • 1
  • 1
  • 6
5
votes
1 answer

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

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…
BRPocock
  • 198
  • 6
5
votes
1 answer

send interrupt to window in screen

How can I send a interrupt to a window within screen. I have screen running with several windows. Each of the windows have processes running within them. I wish to be able to send and interrupt to a specific window ie ctrl+c. I wish to do this…
robthewolf
  • 151
  • 7
5
votes
2 answers

Difference between UnxUtils and GNU CoreUtils

I am a Windows user who wants programs like grep and sed along with other utilities like ls, cut etc in my command prompt. I came across 2 packages which would accomplish this UnxUtils GNU Coreutils I would like to know what is the difference…
5
votes
2 answers

GNU watch - how do I make it read my environment (aliases, functions, etc)

This one has been bugging me for a while: I want to use the marvelous GNU watch command to run a few custom aliases and functions that are defined in my .bashrc, but it is never able to run anything except bash built-ins or binaries. watch -d…
Artem Russakovskii
  • 1,003
  • 3
  • 12
  • 25
4
votes
2 answers

how to list files that are NOT open using find command

I want to "list" all the files that are NOT open, within a certain directory using the GNU find command. Now, I am able to list the files that are open, but can't figure out a way to do the inverse of it. find /my/dir/* -exec lsof {} \; Any…
puffadder
  • 143
  • 1
  • 4
3
votes
1 answer

How to have multiple users access to chmod() the same file?

I have a system where multiple users are running an application that chmod the same file. I've tried using setacl to add both users as user owners of the file to do this, but it doesn't work. The application errors out because the chmod system…
Jacob Brown
  • 130
  • 1
  • 4
3
votes
1 answer

Bug in diff: wrong output for one-character files without newline

Consider this: echo -n a > /tmp/a echo -n b > /tmp/b diff -B /tmp/a /tmp/b Clearly, the two files are different, yet, diff seems to think that the files are identical. I've managed to reproduce this problem on Ubuntu 14.04 with diffutils 3.3, on…
Navin
  • 133
  • 5
3
votes
1 answer

What are main differences between Linux and FreeBSD system from sysadmin point of view?

What are main differences between Linux and FreeBSD system from sysadmin point of view ? What specifically and significantly differs Linux from BSD (memory/resources/users management, other administrative approach, configuration, file systems, etc.)…
1
2 3