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
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)
26 days ago
Edit Post #290903 Initial revision about 2 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)
about 2 months ago
Edit Post #290636 Initial revision 3 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)
3 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)
3 months 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)
5 months ago
Edit Post #290287 Initial revision 5 months 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)
5 months ago
Edit Post #290203 Initial revision 5 months 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)
5 months 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)
6 months ago
Edit Post #290113 Question reopened 6 months ago
Edit Post #290113 Question closed 6 months 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)
6 months 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)
6 months 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)
6 months ago
Edit Post #290013 Post edited:
6 months ago
Edit Post #290013 Post edited:
6 months ago
Edit Post #290013 Initial revision 6 months 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)
6 months ago
Edit Post #289952 Initial revision 6 months 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)
6 months 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)
7 months ago
Edit Post #289792 Question reopened 7 months ago
Edit Post #289718 Initial revision 7 months 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)
7 months ago
Edit Post #289523 Post edited:
8 months ago
Edit Post #289523 Initial revision 8 months 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)
8 months 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)
8 months ago
Edit Post #289069 Post edited:
Replace the message with an example less likely to be offensive
9 months ago
Edit Post #289045 Post edited:
9 months ago
Edit Post #289045 Post edited:
Can't believe I forgot the SOA and NS RRs
9 months ago
Edit Post #289045 Initial revision 9 months 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)
9 months 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)
10 months 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)
10 months ago
Edit Post #287334 Initial revision over 1 year ago
Answer A: Adding Python 3.11 to `$PATH`
There are two possible issues that I can see. First, as already brought up in a comment thread, it appears that the `export` command you added in your `.bashrc` is missing a final `"`. This should cause an error message to be printed when starting a shell, making it an easy error to spot. Secon...
(more)
over 1 year ago
Edit Post #282408 Post edited:
Include text from photo instead of photo as image
over 1 year ago
Edit Post #286257 Post edited:
over 1 year ago
Edit Post #286257 Post edited:
over 1 year ago
Comment Post #286999 While it doesn't solve your problem, I see that part of your frustration is with the fact that > while the build isn't finished my computer is under heavy load so I can barely navigate a browser. To help rectify this, have you tried running the original command using `nice` to reduce its priori...
(more)
over 1 year ago
Edit Post #286844 Post edited:
over 1 year ago
Edit Post #286772 Post edited:
over 1 year ago
Edit Post #286772 Post edited:
over 1 year ago
Edit Post #286772 Post edited:
over 1 year ago
Edit Post #286772 Post edited:
over 1 year ago
Comment Post #286772 @#8056 Good point; incorporated. Thank you.
(more)
over 1 year ago