GNU is a 'nix operating system developed by the GNU project. GNU is normally used with the Linux kernel.

learn more… | top users | synonyms

18
votes
3answers
1k views

Why does the output of some Linux programs go to neither STDOUT nor STDERR?

Why does the output of some Linux programs go to neither STDOUT nor STDERR? Actually, I want to know how to reliably capture all program output, no matter what 'stream' it uses. The problem I have is ...
9
votes
1answer
2k views

Make GNU screen survive reboot

I am using GNU screen a lot. I find it very annoying that everytime the server has to be rebooted I lose all my sessions (even if I know in advance, I need to set-up everything again). I've searched ...
8
votes
4answers
598 views

Unix tools: what if a file is named minus something?

I'm always wondering: most GNU/Unix tools take options in the form "minus something", sometimes followed by an argument. What if you got a file named minus something? $ ls -f $ rm -f $ ls -f $ mv -f ...
8
votes
3answers
333 views

What should I make my computer do while I'm away from keyboard? [duplicate]

During the day, usually I'm away from my computer for 3-5 hours. I also sleep 6+ hours every night. I run Arch Linux x64 on my computer. Besides the usual things that do not require user ...
8
votes
2answers
9k views

How to Combine find and grep for a complex search? ( GNU/linux, find, grep )

I'm trying to do a text search in some files that share a similar directory structure, but are not in the same directory tree, in GNU/Linux. I have a web server with many sites that share the same ...
8
votes
2answers
1k views

Can I name GNU screen sessions?

I use multiple sessions for different things. One for work, one for school work and one each project I'm working on. It gets really hard to keep track of the sessions when screen -ls returns ...
8
votes
3answers
2k views

Getting information from an armored gpg public key file

When given a file with an armored public GnuPG key, i.e. a file (pubkey.gpg) that was created with: gpg -r 0xDEADBEEF --export --armored > pubkey.gpg What is the best way to get information such ...
7
votes
2answers
4k views

bash get home dir by username

I want to obtain home dir of any user with echo echo ~puchuu >> /home/puchuu But I cant use variable echo ~$USER >> ~puchuu echo `echo ~$USER` >> ~puchuu
7
votes
1answer
3k views

Can GNU sed (for Windows) handle Unicode? If so, is it a code-page/locale issue, or a switch?

I've been using GNU SED on and off for a couple of years now. It spins me out a bit sometimes, but it does a good job... for single-byte char sets! I now and then notice references to GNU SED being ...
6
votes
3answers
7k views

find: -exec vs xargs (aka Why does “find | xargs basename” break?)

I was trying to find all files of a certain type spread out in subdirectories, and for my purposes I only needed the filename. I tried stripping out the path component via basename, but it did't work ...
6
votes
5answers
551 views

What is the difference between GNU's “Free Software” and “Open Source Software”? [closed]

I've always referred to free and open source software simply as "Open Source". However, some people have approached me saying that these two "things" (or philosophies) actually aren't the same at all. ...
6
votes
2answers
3k views

Call but not download a page with wget

I was wondering if there was any argument that allowed me to use wget and "call" a page, but without downloading the page. The problem is that when you call wget on a page, it downloads it to the ...
5
votes
3answers
4k views

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 ...
5
votes
1answer
10k views

How to install GNU make in Windows 7?

I am trying to install GNU make-3.82 on Windows 7. I downloaded the make-3.82.tar.gz setup but it does not have any setup file. There is process given on GNU site. But when I reach to the folder in ...
5
votes
3answers
2k views

How do you install gnu MAKE without compiler

I'm a little new in this area. I have a virtual machine centos5.1 that doesn't come with make or any compiler... basically stripped down. It doesn't come with any install packages like yum, rpm or ...
4
votes
4answers
1k views

Best way to get 'linux command line tools' on Windows

I'd like to download the basic stuff like 'rm -rf'. I used to just download cygwin, but are binutils or some other alternative better (if all I need are the truely basic stuff ... I'm trying to think ...
4
votes
4answers
3k views

Gnu Tools for Windows

I was looking for Gnu Tools for Windows and came across two links: http://unxutils.sourceforge.net/ and http://gnuwin32.sourceforge.net/ Does anyone know what is the difference between them and ...
4
votes
2answers
393 views

GNU screen: change focus in split windows with mouse

Is there a way to enable proper mouse support in GNU screen so that I can switch the focus between split windows using my mouse? In other words, I'm looking for a mouse-driven alternative to typing ...
4
votes
1answer
5k views

How to setup MX Record?

I am trying to setup a mail server in my PC for my LAN network and I opted for Postfix but the configuration ask me to configure the MX Record, something about DNS configuration but I have no idea of ...
3
votes
4answers
1k views

Dividing with Gnu's bc

I'm just starting with Gnu's bc and I'm stuck at the very beginning (very discouraging...). I want to divide two numbers and get a float as result: $bc bc 1.06.94 Copyright 1991-1994, 1997, 1998, ...
3
votes
4answers
3k views

What is emacs? What makes it so popular? [closed]

What is EMACS ? I only know that it is some kind of text-editor, but what makes them it popular? How it different from the default text editor in windows which is notepad ? I read about it on ...
3
votes
1answer
385 views

sort by word length in Nth column

I've got a column file like this: 1 1 1 AKSDFJADFKASDJFAK 2 1 1 ADKLCJASDLKCJDLACKADCJLKDACJADS 3 1 2 AKLJDFHALKDJFHLKJSDKSDFHAKJFDHAKFHJAKFJ And I would like to sort the entries by the fourth ...
3
votes
3answers
245 views

linux tar -T - does not work on the fly

I found some problem with linux gnu tar. wheh I use option -T - (for file list from stdin) or -T named_pipe_file , this desn't work on the fly. for example, simple interactive script: while ...
3
votes
2answers
776 views

sed Command on BusyBox expects different syntax?

I hope I phrased the question correct. I have a script that makes use of 'sed' a lot. It works great on my ubuntu with the GNU 'sed'. But when I try to run it on BusyBox it fails. Is there a way to ...
3
votes
2answers
3k views

Does GNU/Linux counts processes and threads together when I limit their number?

I want to limit the number of processes per user on my machine, with /etc/security/limits.conf and the nproc value. I have read here that Linux dosen't distinguish between processes and threads? My ...
3
votes
4answers
2k views

GNU find with -exec rm removes matches, then complains they don't exist

I have a /domains directory in which I have entries such as theawesomesite.com 0.2.v.theawesomesite.com 0.3.v.theawesomesite.com And after testing 0.3, I'll set the main domain to alias the new ...
3
votes
3answers
3k views

How do I add color syntax highlighting to GNU emacs?

I have two versions of emacs available to me on a locked workstation: $ /usr/local/bin/emacs --version GNU Emacs 22.3.1 $ /usr/bin/emacs --version GNU Emacs 21.4.1 In both cases, my terminal type ...
3
votes
2answers
1k views

Are IceWeasel and IceCat just different rebrandings, or are they 'really' different?

As we know, Firefox' branding (name, logo etc.) is non-free copyrighted, so some Linux distributions package (more-)fully-free versions. However, I can't get a straight explanation on Wikipedia (here ...
3
votes
1answer
480 views

When does rm remove open files?

Particularly, I want to know what happens when I rm an open file and don't explicitly kill the process holding the file descriptor to that file. Will the file be removed when the system is shut down?
3
votes
1answer
66 views

How to do a multiline search in less?

In less, can you search using / for a pattern that contains a carriage return and newline? I know your pattern can end with a line using $ (from How do I include newlines in a search in less?), but I ...
3
votes
1answer
44 views

How to open a file whose name is given within another file in Emacs

For example, if my A.txt contains the following line: summary is at: /summary/is/at/summary.txt how can I open summary.txt without having to copy-paste the path, or write the whole path after C-x ...
3
votes
1answer
313 views

Is Debian Squeeze's tar still lacking a tar with xattr support?

Is it true? At least on my Ubuntu 12.x, the shipped GNU tar does not have the --xattrs option ...but why?? (and what are my alternatives, to backup files with xattr?)
3
votes
0answers
63 views

Installing GNU mailutils on windows

I'm using Windows 7, and would like to use the GNU mailutils, specifically mu and mu4e. Unfortunately, these are not available as Cygwin packages. Is there any way to use GNU mailutils on windows ...
2
votes
2answers
434 views

Difference between find -name with and w/o quotes?

I was going to file a bug to findutils on gnu.org when I saw a notice that asked me whether I knew the difference between these two commands: find -name *.c and find -name "*.c" I use find ...
2
votes
1answer
101 views

Installing GNU GPL softwares in office [closed]

I had installed WinMerge and Notepad++ in office computer. My Manager told that I am not supposed to install these softwares in office as it is illegal. What could be the reason? I was under the ...
2
votes
3answers
1k views

GNU License restrictions. Can I write and distribute/sell programms for Linux? [closed]

How does the GNU license work? I understand, that I am not allowed to do some modifications to Linux, then compile it, put it in CD and start selling or distributting without source code, right? But ...
2
votes
3answers
248 views

How short a time can time (the Linux program) measure?

I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of ...
2
votes
2answers
4k views

LANG and LANGUAGE environment variable in Debian based systems

It seems both the LANG and LANGUAGE environment variable are used by some programs to determine their user interface language. What are the exact semantics of these variables and where can I read ...
2
votes
2answers
36 views

How to list only ordinary files on UNIX

I'd like to list only ordinary files (not directories or symlinks) using ls from GNU tools. So far I have only some hackish greps. Is there an option or better way of doing that? Edit: I need more ...
2
votes
1answer
112 views

In Debian GNU/HURD, how to switch back to text terminal after I start X?

I've been running Debian GNU/Linux for several years. Recently I gave Hurd a try by running Debian GNU/Hurd on a physical machine. It works fine, and I can get X running without problem. The problem ...
2
votes
1answer
796 views

Transcode videos to webm with lossless compression

I am using GNU/Linux(Arch Linux), and i need to transcode some videos from .avi/.mov to .webm. I don't have the original file for most videos, only the "very compressed" .avi, and i can't loose any ...
2
votes
1answer
171 views

Can tar be forced to exit on the first error?

By default, for many kinds of errors tar prints a message to stderr and then continues on its way -- the errors it calls "recoverable" errors, typically errors that relate to a single file or archive ...
2
votes
1answer
952 views

How to install and use GNU unifont in cygwin on Windows7?

I'm using GNU unifont on FreeBSD and would like to have the same font available under Windows7 in a cygwin terminal. My attempts to install GNU unifont for general use (so it would be available in ...
2
votes
2answers
108 views

Why is sort.exe truncating large output on 32-bit Windows?

We have a data file from a client which is 1,443,777,659 bytes in size. Sorted output has lines missing and is only 1,269,801,985 bytes in size. Sample command: sort -k 1,10 -T . -s -i ...
2
votes
2answers
209 views

A good list of command line *nix like apps for windows?

I'm looking for a list of command line *nix like apps for windows. I suppose gnuwin32 is a good idea, and cygwin... Each give a good list. any other ideas? I know sometimes there are good programs ...
2
votes
1answer
158 views

Why doesn't “find -print0” work in Cygwin under Vista?

I'm writing a simple shell script: find datafiles/ -type f -print0 | xargs -0 md5sum > datafiles.md5 In Cygwin under Vista, it just sits there and nothing happens. It works fine on Linux. What ...
1
vote
1answer
67 views

What exactly does Cygwin do?

I understand that it "looks like" Linux by giving me forward slashes and providing a directory structure similar to Linux. I also know that a lot of apps have been ported to Cygwin, but if the source ...
1
vote
3answers
600 views

OpenSolaris and NTFS

Is there any way to mount NTFS partitions in OpenSolaris? This is the main issue preventing me from testing it out for more than a day. I need to be able to mount my external. I have vast experience ...
1
vote
3answers
132 views

Get man page for different implementation of same command?

On SunOS man grep gives me the man page for the SunOS grep but grep --version says it's grep (GNU grep) 2.5. How do I get the man page for GNU grep?
1
vote
1answer
40 views

What does GNU tar “--restrict” option actually restrict?

The manual of GNU tar only states that --restrict: --restrict disable use of some potentially harmful options Can anyone elaborate on what are these "harmful" options? I could not ...