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
3answers
242 views

find: regular expression in name

suppose I write: find . -regex "[0-9]{4}-[0-9]{2}-[0-9]{2}-(foo|bar).csv.gz" -printf "%f\n" This command looks to me like it should work. I have iterated through the various regextype options and ...
0
votes
0answers
32 views

Makefile get list of targets

I use the following code to get a makefile targets list which works OK for most cases, however when you use makefile like this you get only two targets and not all. cat Makefile command: ## Command ...
0
votes
0answers
9 views

How to make a proxy shared library that replaces some symbols and forwards the original ones, without preloading it?

I'm developing a library that acts as a proxy for a system-provided library. My proxy replaces some functions from the system library with its own version of them, and others are simply wrapped to ...
-1
votes
1answer
29 views

Setting Debian and Windows [duplicate]

I have Debian. I want to run Windows on the same hard drive, but in separate partitions. I don't want to start my computer "DualBoot" (DualBoot is causing problems for the computer). what should I do? ...
-2
votes
1answer
43 views

Launch Debian and Windows

I have Debian. I want to run Windows on the same hard drive, but in separate partitions. I don't want to start my computer "DualBoot" (DualBoot is causing problems for the computer). what should I do? ...
0
votes
1answer
13 views

Is it possible to authenticate a Server by using its public Key in Client?

Our existing mechanism, for password less authentication in GNU/Linux, is to create the ssh-keygen in the client and copy the public key of client to server and the server can be authenticated from ...
22
votes
3answers
3k views

Why is cp's option not to overwrite files called --no-clobber?

cp is a massively popular Linux tool maintained by the coreutils team of the GNU foundation. By default, files with the same name will be overwritten, if the user wants to change this behaviour they ...
0
votes
0answers
10 views

Storing and jumping to a location in a GNU info session

Can GNU info store the current cursor location in an entry so that it can be quickly recovered? I am looking for functionality similar to how Vim behaves with marks.
2
votes
2answers
76 views

“Command not found” passing argument from Makefile to shell script

I have a info.properties file where I have this MY_NAME property and I can use this property on my Makefile. I already tried but I can't use that property directly on myScript.sh file. So I'm trying ...
1
vote
1answer
39 views

Makefile - Set multiple variables on a single stage

I have this Makefile where I'm having some troubles on simply set some variables: my_stage: echo "FULL_NAME=$(FULL_NAME)" echo "MY_NAME=$(MY_NAME)" $(eval SOME_NAME=$(shell sh -c "...
-1
votes
1answer
41 views

How come GSRC's last release was in 2014, but gcc-9 is a package?

The GNU Source Release Collection, gsrc, had its latest release in 2014, see here or here. Yet, its package page suggests various new packages, like gcc-9. What gives? Is the gsrc itself accessing ...
1
vote
2answers
111 views

What is this POSIX echo \c?

While looking for the plain truth on echo I found this page: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html It's normally a HTML frame on this site https://pubs.opengroup.org/...
0
votes
0answers
22 views

Why do newer versions of GNU `ls` have different output in command substitution when dealing with newlines? [duplicate]

The folder "/tmp/folder" contains one file, whose filename consists only of a single newline. The output of ls -A /tmp/folder, even inside a non-interactive script, is: ''$'\n' Here are the ...
0
votes
1answer
85 views

Is GNU grep's -P option safe to use in production?

The man pages for grep on Ubuntu 18.04 and CentOS 8 have this to say about the -P option for grep: -P, --perl-regexp Interpret the pattern as a Perl-compatible regular expression (...
3
votes
3answers
741 views

new decade: how to utter something like `find /path/ -name 'file.20{19,20}*'` (but which works)

summary: A given system has lots text files with names ~= [type of file].[8-digit date]. To search these files, I like (and wanna keep) using this idiom: find /path/ -name 'file.nnnn*' -print | xargs ...
2
votes
1answer
57 views

bash array printf in gnu parallel

I am trying pass bash array variable, that contain two elements to GNU parallel script: echo ${opts[@]} ...
1
vote
2answers
85 views

Ubuntu partition booting into gnu grub after being encrypted with Veracrypt

I am dual booting windows 10 and Ubuntu 18.4 and it worked fine till now. Today I encrypted the Linux partition of my hdd using Veracrypt and since then the Ubuntu always boots into gnu grub version 2....
1
vote
1answer
43 views

Sum column values across multiple dataframes

Suppose I have 3 dataframes (independent .txt files): Acamar Begalb Caspri Acamar 0.1 0.0 6.3 Begalb 0.33 8.3 0.0 Caspri 1.4 0.617 2.4 ...
0
votes
0answers
28 views

Debian 10 Live remove gnu start-up beep

When I select the USB in the boot selection I get a really loud beep sound and I couldn't find how to remove it. I've tried looking for the ^G in menu.cfg but at least in my version I couldn't find ...
0
votes
1answer
34 views

GNU/Linux PureOS - How can I add more disk space to my distro?

I want to add more disk space to my computer. My disk partitions are shown below: How can I extend "Filesystem Partition 3 (105 GB Ext4)" to use the "Free Space (105 GB)", without losing any data?
1
vote
0answers
22 views

Count operation in GNU Datamash

I have a huge file with the structure similar to: A B 1980 A C 1985 A B 1979 A D 1990 A C 1981 The task is to count frequencies of elements in the first two columns and also return the minimum ...
0
votes
1answer
38 views

Linux Mint 19.2 Cinnamon 64-bit strange behavior with “info” command

I have a Linux Mint 19.2 Cinnamon 64-bit install running on ZFS root. I occasionally use the info command to look up things which I can't remember off-hand, for example, obscure details of C format ...
1
vote
1answer
31 views

How can I insert the contents of a shell command into my UNIX ed buffer?

I think I know how I can do this by writing to an external file, but I'm wondering if it's possible to directly insert the contents of a shell command into a UNIX ed buffer. I'm using GNU ed 1.15. ...
2
votes
1answer
89 views

How can I find out more about the history of GNU coreutils commands?

Can I somehow find out more about the history of the development process of the GNU coreutils commands? For example, have su and runuser (which provide kind of similar functions, yet were decided to ...
1
vote
0answers
45 views

Is it possible to ignore sub-directories and files when removing interactively using `rm -ri <dir>`?

Is it possible to ignore sub-directories and files when removing interactively using rm -ri <dir>? I want to interactively remove directories/files specified on the command-line, especially ...
1
vote
1answer
25 views

Persistent System on Memory-Stick

On our university we are used to have several GNU/Linux systems running as virtual machines for different courses. Because I personally do not like VMs for several reaseons, I have often 1-2 USB-...
0
votes
0answers
23 views

Posix locale unicode encodings; which is correct? [duplicate]

According to the GNU gettext manual, an example locale would be es_ES.UTF-8. Running locale -a on my Debian 9 system shows $ locale -a C C.UTF-8 en_GB.utf8 en_US.utf8 POSIX Notice the locale lists ...
0
votes
0answers
22 views

uuencode sending a dummy attachment along with the correct one!

I am using the uuencode to send an attachment in the mail. uuencode /path/sample.txt sample.txt |mail -s "Test uuencode" recepient@mail The command is working fine but however it's sending the ...
0
votes
2answers
39 views

Prevent bashscript argument being transferred to a child sourced script

I source a bashscript (Child) inside another bashscript (Parent), somewhere in the middle of Parent. The argument passed to Parent when executing it gets passed to the Child. How can I prevent this ...
2
votes
1answer
48 views

How do I use grep to search for the string “-1”

I'm using grep in bash to search for the string "-1" . I would usually search for "bar" like this ... glaucon@foo $ grep -irn "bar" ... which works fine but when I try to search for "-1" I get this ...
0
votes
1answer
42 views

Find: Substitute expression with a variable

$ find -name "Bik*" ./Biking ./Biking/Unsync/Biking.md.~6~ ./Biking/Rendered/Biking.gen.html ./Biking/Biking.md Now when I substitute expression with a variable as follows: $ a='-name "Bik*"' $ ...
0
votes
0answers
751 views

What's the equivalent to objcopy on macOS?

I would expect llvm-objcopy to be installed on macOS, since its counterpart llvm-objdump is installed toghether with other LLVM tools like clang. What is the llvm-objcopy-equivalent tool to use on ...
-1
votes
1answer
109 views

Why is mktemp -u considered “unsafe”?

I read the --help text for mktemp recently (the man page wasn't available) and came upon this: -u, --dry-run do not create anything; merely print a name (unsafe) Why is this "unsafe"? Is ...
15
votes
5answers
2k views

How to run a command 1 out of N times in Bash

I want a way to run a command randomly, say 1 out of 10 times. Is there a builtin or GNU coreutil to do this, ideally something like: chance 10 && do_stuff where do_stuff is only executed 1 ...
-2
votes
2answers
342 views

cp -a doesn't work to copy all files inside a directory

I desire to copy all files inside a directory which has only these files (all are regular files - there are no directories, symlinks, etc, inside that directory) to another pre-existing directory. The ...
8
votes
6answers
652 views

Find only those folders that contain a File with the same name as the Folder

I want to find all subfolders, that contains a markdown file with the same name (and extension .md). For example: I want to Find following subfolders: Apple/Banana/Orange #Apple/Banana/Orange/...
1
vote
2answers
79 views

Delete file based on condition

I have a directory of files with names similar to: AA_1-000_S001_L001_R1_001.fastq.gz I would like to delete all files in a specified range, say: S002 to S010 in their names. Is there an easy way to ...
0
votes
0answers
75 views

Operating systems other than GNU (GNU distributions) that use Linux as a kernel [duplicate]

What are some other operating systems (Non-GNU) that use Linux as a kernel?
0
votes
0answers
26 views

How to specify in kernel so that kernel doesn't use a range of physical address?

I am building kernel and I see that that in the system map there are certain addresses where Text Code is available. I don't want a range of physical address to be used by kernel. I want to do this ...
4
votes
1answer
559 views

sed '5i\n\n\n' myfile inserts first \n as a literal n, and the other two \n\n as new lines, is it possible to insert all 3 new lines? [duplicate]

I'm writing a Bash script and when inserting lines to a file using GNU sed, the first new line is inserted as a literal n, while the rest is inserted as new lines. The command is this: sed '5i\n\n\n' ...
4
votes
1answer
197 views

Why xargs uses -t to enable verbose mode?

Most programs use -v to enable verbose mode. Why does the GNU xargs use -t to enable verbosity?
4
votes
1answer
90 views

Difference in output of GNU and BSD zgrep

I am using zgrep to search a pattern and print N lines after the matched line from multiple .gz files. In BSD zgrep I see a separator -- after each file: zgrep (BSD grep) 2.5.1-FreeBSD $ zgrep "...
4
votes
1answer
66 views

Why does ls sort results the way it does? [duplicate]

I'm just wondering why ls output is sorted the way it is: $ mkdir SortTest<br> $ cd SortTest<br> $ for a in {1..34}; do touch filename_$a.txt; done $ ls -l -rw-r--r-- 1 user user 0 Jun 28 ...
-1
votes
2answers
81 views

Are 'kernel-modules' and 'GNU C Library' the same?

I am newbie in Linux and I am trying to understand the basics of the Linux OS structure. So: Are the 'linux-kernel-modules' listed in the output from 'lsmod' and 'GNU C Library' (about 2000 ...
-1
votes
1answer
104 views

Dual Boot Problem

My laptop has Windows 10 installed, I bought a SSD and installed Ubuntu on it. I want to start Ubuntu when the external SSD is plugged in and start Windows 10 otherwise. I tried changing the boot ...
0
votes
1answer
92 views

Why doesn't GNU `su` respect end of options?

When I run user@hostname:~$ su -- root -z I get bash: -z: invalid option Usage: bash [GNU long option] [option] ... ... The above is the behavior I expect. When I run user@hostname:~$ su -l -- ...
0
votes
1answer
84 views

GNU datamash transpose example doesn't seem to work correctly

I am trying to replicate the example of using teh GNU datamash utility to transpose a file. I get a different output though. Not sure what's happening. Instructions: https://www.gnu.org/software/...
1
vote
1answer
83 views

Understanding bash outputs when backgrounded jobs are not found

When I enter the command: a&b I receive the output: [1] 15872 b: command not found a: command not found When I enter the command: a & c My terminal's output is: [2] 15964 c: command not ...
3
votes
0answers
57 views

How can I debug or trace sorting for “LC_COLLATE=en_US.UTF-8 ls -l”?

(Unexpected sort order in en_US.UTF-8 locale explains the basics of UTF sorting) Consider this test scenarion: # touch abc{.{g,t,t.t},@.s,-{s-w,t.c}} # LC_COLLATE="en_US.UTF-8" ls -l test total 0 -...
0
votes
1answer
231 views

how to make my sed command work in GNU works in BSD

I have a block content in my ~/.ssh/config. begin with a line '# BEGIN AUTO GENERATED CONTENT' and end with a line '# END AUTO GENERATED CONTENT' I have a command replacing content between this two ...

1
2 3 4 5 6