As of May 31, 2023, we have updated our Code of Conduct.

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
0 votes
3 answers
72 views

Does GNU runs exclusively in linux user space?

I understand that Android runs in user space (and then, due to the Linux exception on the GPL for user space, does not have to comply with the GPL). I am wondering (for no particular reason) if GNU (...
tinyfiledialogs's user avatar
0 votes
1 answer
31 views

find -or not printing all results

Directory containing these files: irrelevant irrelevant.doc dok1.txt dok2.text dok3.txt dok4.text I need to find all *txt and *text files and do some transformations on them. find command and ...
Krackout's user avatar
  • 2,460
0 votes
1 answer
50 views

Print line changes (with '\r') on new lines instead of updating the line

As per my understanding, many programs animate their command line output (stdout or stderr) with the \r return carriage. For example, apt-get update will update the package download percentage, or ...
Markinson's user avatar
  • 101
6 votes
1 answer
1k views

Has grep --quiet a bug with its exit status?

I have some SLES 12 SP5 machines with grep version 2.16 and on a single machine I'm heavily using scripts which contained the following grep --quiet condition: # $pid_list contains the result of ...
mgutt's user avatar
  • 347
-1 votes
1 answer
37 views

Why can GNU cal (the CLI calendar utility) send email messages?

The GNU cal utility has an option to send an email message to someone with its output: --mail[=address] Send Gcal’s output via mail program to the given address, e.g.: --mail=esken@gmx.net If no ...
karolba's user avatar
  • 206
0 votes
1 answer
37 views

find with multiple exec-statements where some exec-statements per found inode appear to be executed >1 times

The following command mkdir -p /tmp/test/foo /tmp/test/bar && \ find /tmp/test/ -mindepth 1 -type d \ -exec echo Deleting "{}" \; \ -exec rm -rv "{}" \; I'd expect to ...
daten's user avatar
  • 23
0 votes
0 answers
38 views

Do I need to open-source my operating system if I used grub as my bootloader in my ISO

Ok, so I was following the bare bones tutorial on how to create an OS and then I saw a warning when adding grub to the ISO that I have GPLed software in my program (OS). According to the GPL, I need ...
Bojidar Vladimirov's user avatar
1 vote
0 answers
155 views

Error in Ubuntu Dual Boot Partitions: import_mok_state failed

I installed Ubuntu 22.04.1 as dual boot along Windows 10 following this tutorial using a USB. But after restart Ubuntu wouldn't load. I tried this 4 times. Then, I deleted the dual booted ...
Izzy's user avatar
  • 11
0 votes
1 answer
39 views

GNU screen: How to rename current window via shell commands?

I have an interactive shell (assume dash) running under a GNU screen session. Is it possible to rename the "current" window via commands issued to the interactive shell? If so, then how? By ...
rubicks's user avatar
  • 764
1 vote
1 answer
66 views

Unknown device in Debian GNU/Linux

What is XT device /dev/xda in Debian GNU/Linux? Could it have something to do with the IBM Personal Computer XT? I saw it here and nowhere else. Thank you for your help.
common.user's user avatar
0 votes
1 answer
295 views

GNU Stow: ERROR: Slashes are not permitted in package names

Got the error stow: ERROR: slashes are not permited in package names when using stow --simulate -v --target=/path/to/target/tree /path/to/source/tree What wrong I'm doing??
Tarik Waleed's user avatar
0 votes
0 answers
65 views

Install directory for GNU Guix programs

I am trying to package a simple Hello World program for GNU Guix which I wrote myself, but I am unsure where to install the program when running make install. Currently, when running guix build, I am ...
Pizzapim's user avatar
1 vote
0 answers
30 views

How to `cp` with `--no-target-directory` on mac? [duplicate]

I want to use the default cp on my mac to copy a folder to another destination. I want it to overwrite the target. But if the target folder exists, cp copies the source into the target instead of ...
Matt Groth's user avatar
0 votes
0 answers
31 views

How can I read the info manual of GNU make with GNU emacs instead of GNU info?

When I type info make the info manual of GNU Make shows up. I prefer to read it inside emacs so normally I open emacs, enter M-x info and search for the manual I want to read. However, the manual of ...
M0M0's user avatar
  • 101
0 votes
2 answers
181 views

Extract all links (including multiple links per line) in markdown file

Sample markdown file: cat index.md # Abstract - To achieve [Work Life Balance](./WorkLifeBalance/WorkLifeBalance.md), first understand what it means and what are the requirements. - Develop right **[...
Porcupine's user avatar
  • 1,590
1 vote
0 answers
788 views

error: *** A compiler with support for C++11 language features is required

I want to Build GCC 11 from source on Ubuntu 20.04. I had some problems in making package for ROS and hence I decide to update my GNU. my gcc and g++ versions are 11.1.0 when I extract the downloaded ...
Pouyan's user avatar
  • 13
0 votes
2 answers
155 views

In AIX, how to avoid overwrite a file with cp?

We need to periodically archive some big files older than 2 days to a NAS while keeping their directory tree structure. Those files are kept for 7 days in the source directory. At first we used find ...
vegatripy's user avatar
  • 163
0 votes
2 answers
87 views

Append a character at the beginning of next line matching the pattern throughtout the file

Test file: cat Test.txt #EXTM3U #EXTINF:100 a.flac #EXTINF:20 b.flac Expected Result cat Test.txt #EXTM3U #EXTINF:100 #a.flac #EXTINF:20 #b.flac Experiment 1 sed -e '/^#EXTINF/a #' Test.txt #...
Porcupine's user avatar
  • 1,590
0 votes
2 answers
99 views

sed or other equivalent for grep with vfF

RHEL6.10 , gnu grep 2.2 grep -vfF stem.txt source.txt > filteredoutput.txt stem.txt has unique 13 digit numbers. source.txt is fixed length (400) data file where the 13 digit field value starts at ...
Brian's user avatar
  • 103
1 vote
1 answer
105 views

How to get the matched expression in GNU Recutils?

In the GNU Recutils manual, it is written that The longest possible match is returned; this applies to the regular expression as a whole and (subject to this constraint) to sub-expressions within ...
user avatar
0 votes
1 answer
40 views

How to escape an apostrophe in recsel?

Let's consider the following recfile Name: John Text: It's me! Name: Jane Text: Hello The following command works perfectly to select the second record recsel -e "Text = 'Hello'" test.rec ...
user avatar
-1 votes
1 answer
156 views

How do I change the command of delete key of nemo file manager?

I use debian with cinnamon (desktop environment). If I want to delete file on nemo file manager I have to select file with mouse then I have to press delete key to delete file. I would like to change ...
user14795102's user avatar
2 votes
4 answers
1k views

cmp command return value?

I am using the cmp command on Ubuntu and I would like some clarification on its return value. The manual ($ man cmp) says nothing about the return value, but suggests looking into the GNU ...
kebs's user avatar
  • 304
22 votes
3 answers
4k views

Why should I care about POSIX if I'm writing bash scripts? [closed]

Looking for suggestions/edits I can make to this question to get it reopened. A lot of these answers seem objective to me and they are the type of answers I'm looking for. I've read four articles ...
Daniel Kaplan's user avatar
0 votes
3 answers
791 views

ls -d command only returns `.` eg, and no child directories

I have standard ls installed, I also have lsd installed, which is a nerd-font drop-in replacement for ls. I mention this because the error may have something to do with the alias. For testing right ...
Andy T's user avatar
  • 125
1 vote
1 answer
48 views

Why do I need to specify `-o auto` for join's `-e` option to work?

With the following two simple files: a.txt 1 a 2 b 5 c b.txt 2 x 4 y 5 z The following command does not behave like expected: $ join -a 1 -a 2 -e 0 a.txt b.txt 1 a 2 b x 4 y 5 c z I would expect ...
iago-lito's user avatar
  • 2,551
8 votes
1 answer
966 views

Why does "find -delete" imply "-depth"?

The man page for GNU find clearly warns that using -delete implies -depth. However, I cannot find any explanation for this requirement: -delete Delete files; true if removal succeeded. If the ...
roaima's user avatar
  • 104k
1 vote
2 answers
473 views

Understanding how GNU sed range addresses work

I am reading about range addresses in GNU sed. But I don't understand how does that exactly work, I have tried to run sed --debug but the output is too verbose to understand. Let's assume that I have ...
Amazigh_05's user avatar
3 votes
4 answers
352 views

Using GNU sed to extract header names between two pattern lines possibly separated by blank lines

I have the following file: ------ Introduction ---------- Optio eum enim ut. Et quia molestias eos. Doloribus laborum quia quae. Magnam cupiditate quis consectetur. ----- Chapter1: Foo ----- Odit ...
Amazigh_05's user avatar
1 vote
1 answer
168 views

How to change the pager for info command

On GNU/Linux is it possible to change the default pager for info command? I would like to use less as the pager (similar to man pages). I have customized less to use colors to make navigation of man ...
Amazigh_05's user avatar
2 votes
1 answer
2k views

Is there a defragmentation utility for ExFAT available in GNU/Linux world?

I came across a SSD which have a very significant performance drop (about 20 times). As there is an ExFAT filesystem used, I suspect it might be due to fragmentation. Is there a tool available in the ...
d.c.'s user avatar
  • 887
0 votes
1 answer
535 views

Enable GNU Fortran 7.xy on CentOS 7.9: scl command not found

I'm trying to enable GNU Fortran ver 7.xy on a CentOS 7.9 image in a Singularity container. According to various sources on the internet I need to install the following packages with yum: yum install ...
mabalenk's user avatar
  • 511
-1 votes
1 answer
4k views

sed bad flag in substitute command: 'n' [duplicate]

When I run this command for file in $sourceDir do sed -i s/$origText/$newText/g $file done it gives me this error: bad flag in substitute command: 'n'
Samuel Rag's user avatar
0 votes
0 answers
32 views

How do I dump text from the GNU info reader?

I would like to dump the text from a page of a tool's info documentation to a text file and read and edit it subsequently in Vim. Does the GNU info reader permit dumping of its text, or is there an ...
hmltn's user avatar
  • 133
0 votes
1 answer
138 views

Marking multiple lines in ed

I've opened ed and inserted the following text: This text Is a Test However, when I attempt to mark lines 1-3 using the following command: 1,3ki And print them with 'ip It only prints the last ...
GooseDeveloper's user avatar
-2 votes
1 answer
132 views

Why all versions of Android until now contains almost no GNU softwares?

A GNU/Linux OS contain almost all GNU software (nano, tar, bash, make, etc.). But how does Android? It even does not have a terminal by default for mobile. Google has replaced most of them by non-free ...
Chen-Y0y0's user avatar
8 votes
2 answers
848 views

Print contents of a file only after last occurrence of a token?

I have long-running programs that can restart their internal state. I want to see the log file entries only for the most recent state (to load into vim's quickfix). How can I show all lines after the ...
idbrii's user avatar
  • 221
0 votes
1 answer
77 views

What encryption algorithm does GNU recutils use?

Recutils offers a way to encrypt specified fields in a record, whilst leaving the rest in clear text. -- GNU Recutils Manual What encryption algorithm does it use by default?
user avatar
0 votes
1 answer
315 views

How would I go about compiling GNUzilla/Icecat from source in support for my specific ARM CPU?

I recently picked up the Pine H64 which has the Allwinner “H6” Quad-Core ARM Cortex A53 64-Bit Processor. How would I go about compiling Icecat in support for this on Manjaro ARM?
Arm User's user avatar
1 vote
0 answers
153 views

Getting so libs strings and sort in GNU/Linux bash

i am trying to get in order the strings from the system base libraries First the commands i use for this : «reset» is a command for clean the screen «strings is a command for gather information from /...
Inukaze's user avatar
  • 49
3 votes
2 answers
1k views

Mapfile not removing trailing newline

Sample Data: Tab separated tsv file a.1.58 fadado/CSV https://github.com/fadado/CSV a.1.63 jehiah/json2csv https://github.com/jehiah/json2csv a.1.80 stedolan/jq https://github.com/stedolan/jq/...
Porcupine's user avatar
  • 1,590
2 votes
1 answer
827 views

How to use the shred command the right way?

I got to know about shred yesterday. I want to know the proper way of removing files with it. Should I first shred the file and then use rm to remove it? $shred <file> $rm <file> Or ...
Wade Wayne's user avatar
1 vote
0 answers
29 views

Stripping and Renaming parent directory for each line output in tar -T -? [duplicate]

I have an list of directory output from the following command that I want to tar: find ./temp -type f -name '*' ./temp/main/randomfile.txt ./temp/main/dir_a/random.txt ./temp/main/dir_b/random.txt ./...
vcoder_12's user avatar
4 votes
1 answer
550 views

How does cmp -l show differences?

I'm using cmp (GNU diffutils) 3.7 and I'm confused by the output of cmp -l/--verbose ("output byte numbers and differing byte values"). I have two files that are almost identical except for ...
k314159's user avatar
  • 383
4 votes
4 answers
982 views

Regex match shell variable as a pattern (case insensitively)

A snippet of a typical tsv file I have used 10 Interstellar Main Theme Extended UDVtMYqUAyw 11 Journey XvG78AmBLc4 12 Jurassic Park Music & Ambience Amazing Soundscapes and Music ...
Porcupine's user avatar
  • 1,590
0 votes
2 answers
164 views

Are dynamic linkers interchangeable?

Are dynamic linkers interchangeable? Let's say I compile a program, for example with gcc, linking in various dynamic libraries, with the program to be used at runtime with the gnu linker for resolving ...
Daniel's user avatar
  • 113
0 votes
5 answers
5k views

Grep and Cut command in linux

I have a csv file with loads of data. I wish to cut the 9th column for values >=1 and then use grep to display full rows that match. Sample format: ABC,XYZ,RTY,CREAM,FRANCE,170019,ST REMY CREME,...
Sandeep Suri's user avatar
-1 votes
3 answers
360 views

Why Ubuntu is considered as GNU/Linux?

I am wondering why Ubuntu is being called distro of "GNU/Linux" even though it offers proprietary graphic drivers (and some other things) which are not part of GNU GPL license.
N3tskyy's user avatar
  • 11
2 votes
3 answers
676 views

Match curly brace with new line

Trying to match a string + line break + left curly brace using sed. sub feature_get_web_php_mode { my ($d) = @_; my $server = &find_domain_server($d); to become this sub feature_get_web_php_mode {...
MgtWizards's user avatar
1 vote
1 answer
244 views

mktemp creates file in pwd rather than in /tmp

Previously mktemp used to create files in /tmp. Today I noticed that mktemp is creating file in $PWD rather than in /tmp? Did I change something inadvertently? Any suggestions to fix this? Note: I ...
Porcupine's user avatar
  • 1,590

1
2 3 4 5
8