Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for Canina‭

Type On... Excerpt Status Date
Edit Post #292117 Initial revision 6 months ago
Answer A: Forbid concurrent runs of a process
This can be done using the `flock` utility. The most useful mode for preventing multiple invocations of a same process is likely to be `-en` (exclusive lock, no wait). You need a file or directory (yes, a directory works!) on which to lock which is shared across instances that must not run simulta...
(more)
6 months ago
Edit Post #292091 Initial revision 6 months ago
Answer A: Terminal: Continuously check mail, but not too often
`watch` will let you do what you want, yes. This can be easily demonstrated by running `watch` with a brief-running command and a delay, such as: $ watch -n2 'date; sleep 5' and observing that the printed time increments in approximately 7-second steps (the two seconds between `watch` execu...
(more)
6 months ago
Edit Post #291774 Initial revision 7 months ago
Answer A: How to open documentation in qch format in Debian based systems?
A web search turned up the Qt online documentation, which suggests using Qt Assistant to organize and read help files packaged as \.qch files. That looks to be packaged by Debian as assistant-qt6. Alternatively, cppreference-doc-en-qch depends on qttools5-dev-tools which in turn pulls in qt5-assis...
(more)
7 months ago
Edit Post #291771 Initial revision 7 months ago
Answer A: Adding mount points to an existing partition that already has one
Yes, bind mounts or possibly rbind mounts is most likely what you want here. You need a rbind mount if you want the contents of file systems mounted below the specified mount point to be accessible in the new location as well; you need a bind mount if you don't want or need that. Given the situati...
(more)
7 months ago
Edit Post #291680 Post edited:
7 months ago
Edit Post #291680 Post edited:
7 months ago
Edit Post #291680 Initial revision 7 months ago
Answer A: Do domain-specific how-to's fit well within Q&A?
My immediate reaction would be that yes, it can definitely fit in the general Q&A category. And there is no rule against self-answers to questions. However, please do take a bit of care with how the respective posts are written. Mainly, the question needs to be self-contained, and it should allow ...
(more)
7 months ago
Comment Post #291145 You can also put the input file direction first, if that makes the overall command easier for you to parse. So you can write </dev/random fooprog instead of fooprog </dev/random if you want. The observable effect is the same: `fooprog` will execute with its standard input set up t...
(more)
10 months ago
Edit Post #290903 Initial revision 11 months ago
Answer A: Find out which process is using a port
Use `netstat -lp`. Typically in such a scenario you will likely be mostly interested in IP sockets, in which case you can also add `-A inet,inet6`. To get numerical port numbers, add `-n` as well. (See the man page for details.) Look at the "local address" field to find the port binding in ques...
(more)
11 months ago
Edit Post #290636 Initial revision 12 months ago
Answer A: Can rsync handle moves and renames?
I'm quite certain that rsync is not able to deduce that /path/to/src/foldera/filew on one side of the transfer is identical to /path/to/src/folderc/filew on the other side of the transfer. Therefore, rsync won't be able to handle such a move efficiently. To stock rsync, it will appear as one file ...
(more)
12 months ago
Comment Post #290588 This isn't an answer specific to pacman, but if you're using bash, you can use command repetition with a prefix (or suffix). For example: $ ls /root ls: cannot open directory '/root': Permission denied $ sudo !! sudo ls /root [sudo] password for <user>: <list of fi...
(more)
about 1 year ago
Comment Post #290287 @#53054 Done. However, please keep in mind that if an edit would invalidate existing answers, it is generally better to post a new question incorporating what you have learned and highlighting how the new is different, than to edit an original question in such a way that existing answers no longer ap...
(more)
about 1 year ago
Edit Post #290287 Initial revision about 1 year ago
Answer A: How to extract string from file, run filter, and replace in file with new value?
> - iterate through all `chapter-.xhtml` files in a directory Assuming bash, and assuming that at least one such file exists in the current directory (otherwise adjust the path and/or `shopt -s nullglob`), you can use a simple `for` loop to do this. for filename in chapter-.xhtml; do ...
(more)
about 1 year ago
Edit Post #290203 Initial revision about 1 year ago
Answer A: How to change resolution of virtual terminal?
I think that you have two options. The literal answer would be to pass `video=` to the kernel. For example, you could pass `video=720x400` to run the framebuffer at a 720x400 resolution, assuming that the specified resolution is supported by your hardware. See modedb default video mode support and...
(more)
about 1 year ago
Comment Post #290113 @#61308 I would honestly not consider it a "small detail" whether you are interested in answers for, say, FreeBSD, Windows Subsystem for Linux, Mac OS X, Linux, or Illumos, to name just a few possibilities; especially for a question where answers are likely to touch on deep aspects of the workings of...
(more)
about 1 year ago
Edit Post #290113 Question reopened about 1 year ago
Edit Post #290113 Question closed about 1 year ago
Comment Post #289952 @#65961 That *should* be just the first time, yes; the first time they are accepted, the SSH client should save the new host keys so that they are known on the next connection.
(more)
about 1 year ago
Comment Post #290113 What operating system(s) are you interested in answers for? I'm closing the question for the moment, but if you clarify this, I suspect it will be answerable. Feel free to flag for reopening after editing.
(more)
about 1 year ago
Comment Post #290013 @#65946 That's odd; I tried my example in a Trixie VM and got the same results that I showed in my answer. Well, whatever works for you. Hopefully this will be useful for someone else.
(more)
over 1 year ago
Edit Post #290013 Post edited:
over 1 year ago
Edit Post #290013 Post edited:
over 1 year ago
Edit Post #290013 Initial revision over 1 year ago
Answer A: Rename multiple files which have a variable suffix
You can use rename for this. Many distributions package it; for example, it's apt-get install rename in Debian. In normal usage, it is used to apply an arbitrary regular expression substitution expression to the name of each file named on the command line, allowing you to do complex renamings rela...
(more)
over 1 year ago
Edit Post #289952 Initial revision over 1 year ago
Answer A: How to bypass SSH destination host key fingerprint check?
I'm going to assume that you're using OpenSSH, since that is probably the most common SSH implementation on present-day \nix systems. The easiest is probably to use `ssh-keygen -R` to delete all known host keys for a given host name. So if you have just reprovisioned `vps1.example.com` and it ther...
(more)
over 1 year ago
Comment Post #289799 When all else fails, there's always the brute force way. I don't have abook installed, but based on the man page you linked it doesn't look like it supports an output format that will natively do what you want. However, based *only* on your one example, might this do the trick? `$ abook --mutt-...
(more)
over 1 year ago
Edit Post #289792 Question reopened over 1 year ago
Edit Post #289718 Initial revision over 1 year ago
Answer A: How to see all header fields of an email in mutt?
When viewing a message, press `h`. To return to the normal view, press `h` again. With typical viewer key bindings, `h` is bound to the `display-toggle-weed` function, which controls whether all headers are displayed or whether headers are "weeded". (Under the hood, it toggles the `$weed` boolean ...
(more)
over 1 year ago
Edit Post #289523 Post edited:
over 1 year ago
Edit Post #289523 Initial revision over 1 year ago
Answer A: Run a command *later*
The traditional way on a \nix system to run a one-time command at some specified future time is `at`. $ at 'now + 10 minutes' at Wed Aug 23 19:00:00 2023 at> date >> /current-time at> ^D job NNN at Wed Aug 23 19:00:00 2023 $ You can also specify a particular time, w...
(more)
over 1 year ago
Comment Post #289442 There might be some edge case where you need to use `sudo` for `ip addr show`, but generally, that's an unprivileged command. So there should be no need for `sudo` in this case.
(more)
over 1 year ago
Edit Post #289069 Post edited:
Replace the message with an example less likely to be offensive
over 1 year ago
Edit Post #289045 Post edited:
over 1 year ago
Edit Post #289045 Post edited:
Can't believe I forgot the SOA and NS RRs
over 1 year ago
Edit Post #289045 Initial revision over 1 year ago
Answer A: How do I set up my own DNS on my LAN, with delegation of public domains?
What you describe is a typical mixed authoritative/recursive resolver setup. Such a DNS server setup will respond from its own data about zones for which it has explicit configuration, and will perform recursive resolution for any other names on behalf of clients. Exactly how to set it up depends ...
(more)
over 1 year ago
Comment Post #288929 I'm not up to writing an actual answer, and if someone wants to take this and turn it into an answer before I have a chance to then that's fine by me; but actually using the MAC address directly to generate an IPv6 address, as that page seems to do, has been broadly discouraged for a good while. S...
(more)
over 1 year ago
Comment Post #288311 I believe it can have, at least in some circumstances. With the GNU coreutils 8.32 `ls` and GNU findutils 4.8.0 `find` on Debian 11/Bullseye, observe: $ cd $(mktemp -d) $ touch abc$'\n'def $ /bin/ls -N abc?def $ /bin/ls 'abc'$'\n''def' $ find . -type f -print ...
(more)
over 1 year ago