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.
401 questions
0 votes
1 answer
59 views
Fast question about gnu-libre kernel
This kernel is identical to Linux official kernel but they remove all proprietary binary firmware and there is not possibility to load it, this mean more safety and more os. https://linux-libre.fsfla....
1 vote
0 answers
73 views
Wrap long lines using GNU sed
The following expression is reasonably effective at wrapping long lines of text (for the purpose of dumping to my 128 characters wide terminal window and reading): s~(.{104,124}) ~\1\n~g This ...
7 votes
1 answer
393 views
ESC/escape character `\c[` in GNU sed substitution
The ESC character is 0x1B. In GNU sed, it can be used as 0x1b. It can also be used as \c[ ²; this, however, behaves inconsistently: sed "s/XXX/\c[/" # right-hand side, no problem sed &...
2 votes
2 answers
173 views
Update mmap mapping to be readonly without overwriting existing data
I'm making a custom ELF loader to learn how the dynamic loader works behind the scenes, and one of the program headers often found in them is PT_GNU_RELRO, which tells the loader to make that segment ...
2 votes
0 answers
132 views
Why is BusyBox find 10x slower than GNU find?
on a directory containing ~26 million files, GNU Find is 10 times faster than BusyBox find, why? /var/www # time find /var/www -regex .*\.\(php\|js\|json\|html\|htm\|css\) -not -regex \(.*/docroot/...
0 votes
1 answer
142 views
GNU assembler alternatives
I am trying to build my system from scratch, since I really like the idea of atomicity of each program in unix-like approach, I would like to preserve it as much as possible in my build. Since GNU ...
2 votes
1 answer
214 views
Locale: Unable to get correct date (for Sunday of this week)
I did the following yesterday night (before midnight of Sunday in Germany): Today's date $ LC_TIME="en.GB.UTF8" date --iso-8601 2025-01-12 Today's date (day of the week $ LC_TIME="en....
3 votes
0 answers
86 views
Colored output from fd piped into column not aligned correctly
When I run the command fd --color always --max-depth=1 | column the output is not properly aligned, but it is when --color is set to --color never For reference, fd --color never --max-depth=1 | ...
0 votes
1 answer
111 views
Is POWER9 Ready for End-User Usage in 2024? [closed]
I'm in the process of upgrading my desktop/server setup and am considering using POWER9 architecture. However, I'm a bit concerned about the level of support it receives from GNU/Linux distributions ...
1 vote
1 answer
737 views
use fzf for all readline / bash completions
Is it somehow possible to tweak Readline in a way that always uses an interactive fuzzy finder (fzf) for making selections in Bash completions? From the GNU Bash documentation, I understand that ...
4 votes
3 answers
213 views
Can sed process lines that I make in sed?
I want sed to split lines and then process those lines. E.g. sed 's/,/\n/g' | sed -n '/foo/p' Can that be done in one sed command in general so that I do not need shell piping? Example: echo oof,foo | ...
0 votes
0 answers
97 views
To copy using cp non-recursively if the '-a' option is already used
BSD cp: -a Archive mode. Same as -RpP options. Preserves structure and attributes of files but not directory structure. -P No symbolic links are followed. This is the ...
0 votes
0 answers
97 views
Trailing slash in GNU and BSD cp and find commands [duplicate]
What might be a reason that BSD cp and find don't "like" a trailing slash for directory names? | | cp | mv | |-----|--------------------------|...
2 votes
1 answer
551 views
linux sort float numbers starting with point
I would expect that the -g flag tells sort to treat the fields as floating point numbers, but: cat << EOF | sort -g -k1,2 0 0 0 1.0 0 .5 0 5.0 EOF gives 0 0 0 1.0 0 .5 0 5.0 Therefore the .5 ...
3 votes
1 answer
272 views
Convention of parameter naming - undocumented options
GNU has long pushed for a combination of short options (-h) and long options (--help), which goes a long way to clearing up the syntactical mess of commands like tar and dd, with their legacy syntax ...