Most active questions

3 votes
3 answers
871 views

The following script is supposed to check $1 and see if it is a specific value. It only works when one Bash [[... =~ ...]] regex check is passed in an if statement. The error is: When more than one ...
EmberNeurosis's user avatar
0 votes
1 answer
741 views

FAT isn't meant to record file access time, but the FAT filesystem I have in a VeraCrypt container file does. Why is this? This was before I opened the file /run/media/veracrypt1/test: ~ $ stat /run/...
EmmaV's user avatar
  • 4,433
7 votes
4 answers
461 views

find takes an (optional) list of (what the man page calls) "starting points", i.e. directories, followed by an expression. Is there a way to cleanly separate both types of arguments so that ...
Florian Brucker's user avatar
7 votes
2 answers
418 views

man crontab reads: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified ...
decision-making-mike's user avatar
4 votes
3 answers
293 views

There is a headless machine, with Debian as its OS: $ cat /etc/issue Debian GNU/Linux 11 \n \l $ uname -a Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux What I wish to ...
Daniel's user avatar
  • 418
5 votes
1 answer
238 views

On my Arch system, failed attempts to run sudo cause a line like this to be added to the logs (note the USER=root): Nov 20 14:59:31 oregano sudo[191472]: bob : user NOT in sudoers ; TTY=pts/26 ; ...
terdon's user avatar
  • 253k
4 votes
1 answer
176 views

Suppose we have a script named test_sort in our $PATH with the following contents: #!/bin/bash function echo_text () { printf -- "%s\n" "$fc$oc$fs$lc" printf -- "%s\n&...
Melab's user avatar
  • 4,458
4 votes
1 answer
179 views

In my environment I have: a Jenkins build server that I can ssh into using private/public keys. I can use sshfs to mount its file system on my local pc (running WSL on Windows 11, ugh but I can't ...
noughtnaut's user avatar
0 votes
2 answers
57 views

Logical way would be to use an 's/[\[\]]/_/g' regexp replace, however it does not work as intended to. It replaces a chain of [ and ] with a single _. $ echo 'x[]x'|sed -E -e 's/[\[\]]/_/g' x_x $ echo ...
peterh's user avatar
  • 10.5k
2 votes
1 answer
197 views

Just in theory: is it possible to replace the domain string in the compiled binary file with an IP address by editing a binary file in place with sed? (IP address belongs to a different domain, but ...
fxgreen's user avatar
  • 143
2 votes
3 answers
64 views

I've tried using sed for this. I've tried putting the lines of interest in variables as well. I have two examples I want to achieve for now. Lets say I have thousands of urls in a file called links....
shrykullgod's user avatar
1 vote
2 answers
139 views

It's often that when I am in a subject involving many processes of two or three kinds, I'm noticing that: one terminal I've opened is dedicated for my subject of kind #1, while another is opened to ...
Marc Le Bihan's user avatar
0 votes
2 answers
131 views

So, I was playing around with this answer, when I found that neither printf_stdin () { read input printf "$input" } sed "/lorem ipsum foobar/ { s/'/'\"'\"'/g s/\...
Grass's user avatar
  • 145
3 votes
1 answer
92 views

$ wine cmd /c 'echo "hello world"' \"hello world\" Where do the backslashes come from? The command behaves differently in an interactive session: $ wine cmd Microsoft Windows 6.1....
finefoot's user avatar
  • 3,586
1 vote
1 answer
103 views

I have a VPS running Arch (Kernel 6.17.6-arch1-1). A pacman -Syu upgrade on 2025-11-12 failed with warnings and errors about systemd. In /var/log/pacman.log, I found the error messages: […] [2025-11-...
FungusDelight's user avatar

15 30 50 per page
1
2 3 4 5 6