Questions tagged [gnu]

GNU Project is a free software, mass collaboration project. The founding goal of the project was, in the words of its initial announcement, to develop "a sufficient body of free software [...] to get along without any software that is not free.

Filter by
Sorted by
Tagged with
4
votes
1answer
376 views

How can I add core GNU commands to a pre-existing AIX system?

In another thread (What's the easiest way to sort a list like this) someone asked if we had "GNU ls" on the system because it would provide a solution. We do NOT have GNU ls installed but it got ...
1
vote
1answer
294 views

bsdtar: How to avoid overwriting existing file info?

bsdtar has a -k (Do not overwrite existing files) option, which avoids changing the contents of any existing files, but it still overwrites the file info (e.g. permissions) with what is in the archive....
2
votes
1answer
830 views

With bsdtar “--exclude”, how to only exclude subdirectories?

In GNU tar (i.e. gtar), the --exclude option with a glob only matches the subdirectories, but not the directory itself. For example, --exclude test-tar/a/b/* would exclude anything inside of b, but ...
34
votes
1answer
15k views

gpg —list-keys command outputs uid [ unknown ] after importing private key onto a clean install

I did a clean install of Arch Linux and imported my backed up gpg private key. As a sanity check I ran: gpg —list-keys Everything showed up as normal except for the uid which now reads: uid [ ...
1
vote
2answers
310 views

Use parallel to split many directories into subdirectories or parallelize this task

I want to parallelize spliting of many directories into subdirectories using parallel or using another tool or method. E.g. I have 1 000 000 directories with content, but it's too much for one ...
1
vote
0answers
2k views

What is the difference between dd_rescue and ddrescue, when to prefer which one?

There are two similar tools for a dd on bad hardware: Kurt Garloff's dd_rescue GNU ddrescue What is the difference between dd_rescue and ddrescue, when to prefer which one?
2
votes
1answer
324 views

Use parallel to split many directories into subdirectories

I want to use parallel to split many directories into subdirectories. E.g. I have 1 000 000 directories with content, but it's too much for one directory, so I want to create 10 dirs in the main dir ...
4
votes
2answers
6k views

What is maximum number of files you can store in a tar archive under Solaris 11?

I need to store a large number of files (> 100,000) in a tar archive and have run into the error: /bin/sh: /bin/tar: cannot execute [Arg list too long]. Are there limits with UNIX Solaris tar or GNU ...
2
votes
1answer
138 views

How to make appends to files fail if the file does not exist already?

For example echo Something >> SomeFile I want this append to work only if SomeFile exists already. Right now I am using the following: if [ -e SomeFile ]; then echo Something >>...
1
vote
1answer
50 views

Recursively replace all links with actual files (gnu)

In order to run Code dx on Linux files, I need to replace all links with the actual files. Haven't worked in Linux in years and am getting confused by terminology. Been searching for answers for two ...
7
votes
2answers
6k views

BSD sed vs. GNU sed, and -i

Unix iMac shell terminal sed -i 's/original/new/g' maths.tx Message returned: sed: -i may not be used with stdin
-4
votes
1answer
74 views

What are the GNU programs that I need with Linux if I only edit files? [closed]

What are the minimum number of programs that someone can use to edit files with the Linux kernel? I mean reading a file from some storage device, changing it, and storing it. Maybe by specifying the ...
5
votes
2answers
2k views

How can I run GNU parallel in record per job, with 1 process per core

What I'm really trying to do is run X number of jobs, with X amount in parallel for testing an API race condition. I've come up with this echo {1..10} | xargs -n1 | parallel -m 'echo "{}"'; which ...
10
votes
1answer
1k views

Bash - date, working around the 2038 bug on 32bit LINUX system

I wrote a little bash script that made me stumble across the "Year 2038 Bug". I did not know about this problem before and I just dare on posting the --debug output I got from date when my script ...
17
votes
6answers
12k views

Drive name? What is the correct term for the “sda” part of “/dev/sda”?

fdisk(8) says: The device is usually /dev/sda, /dev/sdb or so. A device name refers to the entire disk. Old systems without libata (a library used inside the Linux kernel to support ATA host ...
16
votes
2answers
20k views

Why both `make clean` and `make mrproper` are used?

It is written in the linux kernel Makefile that clean - Remove most generated files but keep the config and enough build support to build external modules mrproper - Remove all generated files ...
0
votes
1answer
102 views

Error compiling gettext

I get this error msg trying to compile gettext with Linux kernel 2.4 libtool: compile: gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -...
5
votes
1answer
815 views

GNU Sed version history (changelog) - how can you determine which feature was introduced in what version?

I found the following changelogs, but all of them list change / new features in terms of date rather than version number: 2014-09-06 - present: https://fossies.org/linux/sed/ChangeLog 2005-05-18 - ...
1
vote
1answer
784 views

GNU Parallel to process multiple files in parallel in Unix with bash

I have a bash script I am using to iterate over a list of files and search for regex matches. Here is a snippet from my current code: for file in $Files_To_Parse; do (cat $file) | grep -ioE "($...
0
votes
2answers
160 views

Pass month name dynamically in AWK (GNU) with control statement

Hi I'm trying out below command to match month and day (of 6 days ago, which is Jun 29) to search a directory using AWK, but the result is always '0' instead it is supposed to be around 1800. ls -ltr ...
2
votes
1answer
729 views

GNU linker producing useless spacing between sections in ELF file

My intent is to place the text section at a specific location in memory (0x00100000). SECTIONS { . = 0x00100000; .text : { *(.text*) } } Although the linker does do ...
1
vote
3answers
1k views

How can I calculate and format a date duration using GNU tools, not a result date?

All of the tons of articles I have found so far all seemed to be focused on obtaining a resulting date, which is still useful, but not what I want in this case. Example link: Unix & Linux SE - ...
11
votes
1answer
543 views

Confusion about changing meaning of arguments and options, is there an official standard definition?

I came across a confusing variation in the understanding what options and arguments are with regard to the syntax of commands. For instance, I encountered definitions like: command -a -b -c d e f ...
0
votes
1answer
59 views

How to move newly generated file to particular location in tarfile

I have a C file created : ( cat <<'End' ifdef ... else ... endif EOF) > $CFILE and I want to move this new created c file to particular location in Tar file already generated. tar -...
8
votes
1answer
2k views

Why does Gnu sort sort differently on my OSX machine and Linux machine?

I have a OSX machine where sort runs GNU sort from coreutils 8.26 (installed from Homebrew), and a Linux machine where sort runs GNU sort from coreutils 8.25. On the Mac: mac$ echo -e "{1\n2" | sort ...
1
vote
1answer
1k views

`find -type l` matches file while `-type l -o -type f` does not, but only with explicit `-print` [duplicate]

I'm using GNU's find. I've simplified my problem to this shell session: $ mkdir t $ cd t $ touch a $ ln -s a b $ find -type l ./b $ find -type l -o -type f ./a ./b $ find -type l -print ./b $ find -...
0
votes
2answers
3k views

Offline Install of g++ for Debian

I have an offline Debian machine onto which I need to install g++, gdb, etc. (I believe it's the "build essentials" package.) I do not have access to an online Debian machine from which to get ...
0
votes
1answer
982 views

Is SED trying to pull a fast one on moi(backreference problem)?

I'm trying to pull out the third subexpression from this line: #EXTRA_GROUPS="dialout cdrom floppy audio video plugdev users" (yep, the adduser.conf file, for those of you who are curious) with: ...
3
votes
1answer
2k views

What's the difference between “--color=auto” and “--color=tty”?

I'm using ls from GNU core utilities. The manual page only mentions none, auto and always, but I find that tty also works. This option doesn't seem to be used widely, but still it was mentioned here ...
2
votes
1answer
663 views

Perform action upon chassis intrustion detection

Given: a server running GNU/Linux, and a chassis intrusion detection switch on that server, and a BIOS (or UEFI) in that server, that tracks the intrusion detection status such that the status can be ...
3
votes
3answers
333 views

Using sed command arguments to be compatible with both GNU & BSD Unix (in-place editing)

I have a shell script that I currently use for some build related stuff for a mobile application. Due to the the subtle differences between BSD & GNU one of build scripts originally written on a ...
6
votes
3answers
3k views

Obtain WHOIS data field(s) without parsing?

Using the command line tools available in a common GNU/Linux distro (e.g. Fedora/Debian/Ubuntu/etc), is there a general way to get the value of some specific WHOIS field (e.g. the registrant's ...
0
votes
1answer
696 views

GNU grub error when i start my system after i edited partitions

I attempted to increase c-drive memory by using a partition tool,earlier i had my system dual boot(window8.1 and ubuntu 15)now after doing the partition using partition tool when i start my computer ...
0
votes
2answers
76 views

RegEx match + additional line removal

So I am pretty new to what I currently refer to as "advanced" RegEx, please pardon me, it's probably really easy for you guys but I need to be pointed in the right direction because right now I am ...
2
votes
2answers
2k views

Reading from keychain failed with error: 'No keychain service available'

System: Host: MyComputer Kernel: 4.8.14-gnu-1 x86_64 (64 bit) Desktop: LXQt Distro: Parabola GNU/Linux-libre My owncloud client does not start automatically. I know, nextcloud is what ...
90
votes
5answers
8k views

Do progress reports/logging information belong on stderr or stdout?

Is there an official POSIX, GNU, or other guideline on where progress reports and logging information (things like "Doing foo; foo done") should be printed? Personally, I tend to write them to stderr ...
16
votes
3answers
3k views

Is it possible to change the kernel in a UNIX/Linux system?

I wanted to know if it is possible to change kernels, for example, replacing Fedora's Linux kernel to that of FreeBSD's. Now, there already existed the Debian GNU/kFreeBSD. Is it possible for me to ...
1
vote
1answer
17k views

make: *** [all] Error 2 while make

Trying to Build and Install the Apache Thrift compiler and libraries - ./configure && make But then I get make error which I don't seem to understand where it fails... thrift 0.9.3 ...
1
vote
2answers
365 views

Whitespace delimited table to CSV with standard text processing tools

I have the following data table: ssh 22/tcp 0.182286 # Secure Shell Login linuxconf 98/tcp 0.000088 tacnews 98/udp 0.000560 # TAC News from which I wish to generate a CSV ...
1
vote
2answers
491 views

Widespread support for find with “-exec … +”? [closed]

Judging from the GNU findutils change log it had to be in GNU's find for at least a decade (also longer than that it was part of POSIX) so can it be safely assumed to be supported everywhere now? ...
2
votes
3answers
2k views

Batch rename folders with a single bash command

I have folders setup like this: /path/to/directory/SLUG_1/SLUG_1 - SLUG_2 - SLUG_3 SLUG_2 is a year, and it may have a letter after the year, like "1994" or "2003a". I would like to rename those ...
7
votes
2answers
729 views

Are there standard versions of `sed` on which `-E` is unsupported?

On BSD sed, -E is the "extended regex" flag. On GNU sed, the documentation states that -r is the extended regex flag, but the -E switch works as well (though undocumented in my research). I recall ...
-2
votes
1answer
338 views

Where is the GNU checksum file format defined?

Where is the GNU checksum file format defined? I don't see any mention of the checksum file format at the GNU documentation website
1
vote
2answers
124 views

How to invoke BSD / Gnu Specific Man

I have both gnu utilities (via brew) as well as mac default command line tools installed on my Mac. How do I specify to man utility that I want to invoke gnu specific tar bsd tar There are my tar ...
7
votes
2answers
4k views

How do I install an older version of GNU make using apt on Ubuntu 16.04?

The installed version is 4.1 and need to downgrade to 3.81. I searched apt for make 3.81, but I couldn't find it.
1
vote
1answer
1k views

Downgraded GNU make not working

Since downgrading GNU make from 4.1 to 3.81, make isn't working. This is the method used for the downgrade: In /usr/bin renamed make to make-4.1 Downloaded make 3.81 from gnu.org Extracted make-3.81....
1
vote
1answer
1k views

install gnu command

I have the command split installed. However I need the '--filter'argument, which is supported by gnu's split command. SO I need to install gnu split. How do I do that on my mac? I tried $ brew ...
4
votes
1answer
847 views

Can GNU/Linux software run on GNU/Hurd?

I am only familiar with the GNU/Linux system and I recently discovered the Hurd kernel, so the first question that came up in my mind was: is the software that I can find on a GNU/Linux system able to ...
15
votes
1answer
614 views

Why does `find . -type f` take longer than `find .`?

It seems like find would have to check whether a given path corresponds to a file or directory anyway in order to recursively walk the contents of directories. Here's some motivation and what I've ...
0
votes
1answer
2k views

How to “export” configuration variables and “source” them on embedded Linux?

A router runs firmware containing BusyBox and in addition to flash memory the device has secondary memory storage. That USB stick is mounted at both /media/Main and /opt: # mount | grep sda /dev/sda1 ...

1 2 3
4
5
7