Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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

GNU sort command does not sort words of different lengths with common prefixes correctly when using field delimiter

The GNU sort command is not sorting words of different lengths with common prefixes correctly for me, but only when using a field delimiter to sort on one of multiple fields. Here is the correct, ...
Ben McIlwain's user avatar
1 vote
1 answer
31 views

nano command execution stuck

In nano v8.0 there's an option to send selection to X clipboard in the nanorc: "{execute}|xsel -ib{enter}{undo}" which does perfectly. I tried using xclip utility instead: "{execute}|...
Multifix's user avatar
  • 125
0 votes
1 answer
29 views

Error loading shared libraries: libboost_system.so.1.55.0: cannot open shared object file: No such file or directory

I want to transfer a software written in 2016 that is actively running on Raspberry 2 to Raspberry 5. In this migration process, I copied all the files to RP5. However, when I run it on RP5, my other ...
Emir's user avatar
  • 1
0 votes
1 answer
60 views

Find - xargs, for every line open a new shell and execute a command and wait for user to exit that shell

Following works Task: List all folders that contain file of iname *AlbumArt* that also contain iname *cover*.jpg, and for each of those folder list all jpg files with size find . -type f -iname '*...
Porcupine's user avatar
  • 2,056
10 votes
1 answer
2k views

Why does `nice` with a negative argument (e.g. `nice -15`) increment niceness?

My nice is from GNU coreutils 9.1. I observed that nice -15 is equivalent to nice -n 15: nice # prints 0 for me, the base niceness is 0 nice -n 15 nice # prints 15, this is ...
Kamil Maciorowski's user avatar
0 votes
0 answers
19 views

wget -I='/my/subpath,/my/subpath/*' (/my/subpath/) is excluded/not-included. Decided NOT to load it

I am trying to index some pages, corresponding to a Documentation. For that I wanted to wget --no-parent -r -l 5 https://developer.mozilla.org/en-US/docs/Web/JavaScript/ But as the request will be ...
freddie_ventura's user avatar
0 votes
1 answer
51 views

Why does GNU tar's --dereference option not cause it to dereference symlinks?

I thought I knew how GNU tar -h (aka --dereference) worked, but now I am confused. Consider: $ tree dir/ dir/ ├── file └── link -> file 1 directory, 2 files If I add -h to my tar command, shouldn'...
Brad Spencer's user avatar
0 votes
1 answer
98 views

Who is the original author of GNU ld?

Author information can be difficult to find for projects whose histories go back long before their git repositories. According to Wikipedia, Richard Stallman wrote gcc, and Dean Elsner wrote GNU as. ...
clarkep's user avatar
  • 109
0 votes
2 answers
188 views

Can Linux be distributed with UNIX systems other than GNU?

If I made a Linux distribution, could I add Busybox or another UNIX system other than GNU? Or are Linux and GNU entirely dependent on each other?
AcinonX's user avatar
  • 111
-4 votes
1 answer
133 views

Can OS work without kernel?

I am interested in history of creating a GNU/Linux and how did these two operating systems unified. So, there was GNU, and it needed a kernel. They were developing their own kernel called "GNU ...
Rodion Iskhakov's user avatar
0 votes
1 answer
90 views

Why a user has sound working in Debian 11 and other not?

In Debian 11 I have two users in a laptop Lenovo Ideapad S145. One user has the sound working very well -- I don't know if it is a valid info but the user is in sudoers group. The other one gets Dummy ...
Caco's user avatar
  • 127
0 votes
0 answers
58 views

Seeking Solutions for Rapid Battery Drain in RHEL Dual Boot Setup: Need Advice on Battery-Efficient Linux Distros

I recently purchased a new laptop and decided to set up a dual boot with RHEL. Having used Fedora for over 1.5 years and enjoying the experience, I thought of giving RHEL a try. However, upon starting ...
Neptune's user avatar
  • 153
21 votes
4 answers
5k views

What are Non-GNU versions of terminal commands?

I thought GNU was the (only) supplier of essential tools whose open-source code powers Linux distributions. However while browsing unix.se, I saw some questions that explicitly state they are dealing ...
eyhy84394's user avatar
  • 235
0 votes
1 answer
38 views

nano unhighlight string if a quote is escaped

I'm trying to unhighlight string if one of the quotes is escaped. sh.nanorc regex is as follows: color brightyellow ""(\\.|[^"])*"" I'm having success with the closing quote ...
Multifix's user avatar
  • 125
0 votes
1 answer
31 views

How to change the private key passphrase in lsh?

info lsh manual covers how to create a keypair and protect the private key with a passphrase. The manual does not tell how to change the passphrase or how to decode the private key, which is stored as ...
Roman Riabenko's user avatar
0 votes
1 answer
1k views

riscv64-unknown-elf-gdb not found after installing gcc-riscv64-linux-gnu Debian

I am trying to debug xv6 using gdb. My system is Debian 11. I had already run the following command: sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu ...
VanceR's user avatar
  • 1
0 votes
3 answers
126 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
72 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,692
0 votes
1 answer
63 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
  • 103
7 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
  • 487
0 votes
1 answer
91 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.: [email protected] If no ...
karolba's user avatar
  • 226
0 votes
1 answer
42 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
53 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
698 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
107 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 ...
therealneil's user avatar
1 vote
1 answer
118 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
820 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
1 vote
0 answers
34 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
2 answers
425 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
  • 2,056
1 vote
0 answers
2k 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
279 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
113 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
  • 2,056
0 votes
2 answers
140 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
144 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
47 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
245 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
2k 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
  • 334
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
1k 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
91 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,791
8 votes
1 answer
2k 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 ...
Chris Davies's user avatar
1 vote
2 answers
1k 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
361 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
290 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
3k 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
835 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
  • 531
-1 votes
1 answer
6k 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
44 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 ...
Julius Hamilton's user avatar
0 votes
1 answer
204 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
153 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

1
2 3 4 5
8