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 #286772 Post edited:
almost 2 years ago
Comment Post #286772 @#56802 It works because `ls` defaults to `-1` behavior when the output is not a terminal. You can pass `-1` explicitly if you like; it won't hurt. This is also typical behavior of many \*nix commands that produce column-oriented output when run from a terminal: if run in a context where standard ...
(more)
almost 2 years ago
Edit Post #286772 Post edited:
almost 2 years ago
Edit Post #286772 Post edited:
almost 2 years ago
Edit Post #286772 Initial revision almost 2 years ago
Answer A: How to get number of files in directory
There are several ways that I can think of, depending on how correct you need the answer to be, particularly in exotic situations, and exactly what you want to count. If you know that you don't have any exotic file names in the directory, then a relatively trivial `ls -A | wc -l` will probably do ...
(more)
almost 2 years ago
Comment Post #286725 This might sound like nitpicking, but it's actually not. *Which "system clipboard" are you referring to?* For example, on Linux there's X11's two separate copy buffers and on the console something like GPM's copy functionality; Wayland probably offers something similar; and other \*nixes may do thing...
(more)
almost 2 years ago
Comment Post #286170 It's not a daemon, but I suspect most Linux wireless network UIs these days are simply front-ends to Network Manager, in which case perhaps something like `nmcli device wifi list --rescan` and `nmcli device wifi connect ...` might prove useful. See nmcli(1).
(more)
about 2 years ago
Comment Post #285962 The domain name `mydomain.com` actually belongs to someone, so it's a poor choice for anonymization. RFC 2606 specifically reserves some easily-recognizable domain names, including `example.com`, for use for examples and documentation; those should be preferred. (There's also, for example, `home.arpa...
(more)
about 2 years ago
Edit Post #285962 Post edited:
RFC 2606 specifically reserves `example.com` and others for examples; `mydomain.com` actually belongs to someone
about 2 years ago
Edit Post #285740 Initial revision over 2 years ago
Question VPN tunnel for outgoing connections but still allowing incoming bidirectional connections, using Wireguard or OpenVPN on Linux
For a particular use case, I need to be able to set up a Linux host (specifically Debian) to use a VPN tunnel for routing outgoing connections, but still allow incoming connections outside of that VPN tunnel and for the traffic relating to those to be routed outside of the VPN. More concretely, it...
(more)
over 2 years ago
Comment Post #285332 @#54837 I'm glad that it worked for you. If you want to indicate this more clearly to others, you can use the "react" function just below the voting arrows and select a "works for me" reaction.
(more)
over 2 years ago
Edit Post #285332 Initial revision over 2 years ago
Answer A: Why is libvkd3d1 not upgrading on my system? (lubuntu 20.04 LTS)
In Debian derivatives (of which Ubuntu is one), and more generally those distributions that use the Debian `apt` package manager tool suite, for packages to be "kept back" during an upgrade means that upgrading those packages would require some change that the requested type of upgrade is prevented f...
(more)
over 2 years ago
Edit Post #285301 Initial revision over 2 years ago
Answer A: A shell script that can run under different shells
I'm not familiar with zsh, but it seems to me that your problem here is that the syntax for `for` loops is different in bash and zsh, which throws bash off as it tries to interpret your script, finds a keyword it knows but the rest of the statement doesn't match what it expects. The solution would...
(more)
over 2 years ago
Comment Post #285150 I agree; there have been several issues raised in response to this suggestion that definitely do bear consideration, not least regarding a sense of community cohesion.
(more)
over 2 years ago
Comment Post #285150 Splitting into Windows and Linux categories (whatever those might be called) would introduce other issues; for example, where would one ask questions about how to (as a hypothetical example) physically hook up a power supply, which has nothing whatsoever to do with the operating system or other softw...
(more)
over 2 years ago
Comment Post #285187 This is most definitely a valid argument that bears consideration. Thank you for raising it.
(more)
over 2 years ago
Comment Post #285144 See also https://powerusers.codidact.com/posts/285123
(more)
over 2 years ago
Edit Post #285150 Initial revision over 2 years ago
Answer A: Should we merge with Power Users?
I'm posting the same answer on both sites, because the questions are basically the same. Personally, I am in favor of merging Linux Systems Codidact and Power Users Codidact, ideally by transferring the content from Linux Systems to Power Users. The scope of Linux Systems is pretty close to a s...
(more)
over 2 years ago
Comment Post #285117 I don't have any OS X system to check on, but it [looks like](https://docs.brew.sh/Manpage) `brew leaves` will "List installed formulae that are not dependencies of another installed formula" whereas `brew list` will "List all installed formulae and casks". I'm not sure if the exclusion of casks (app...
(more)
over 2 years ago
Comment Post #284956 @#8046 I wouldn't rule it out without at least checking. The fact that you're getting compilation errors that point toward files from `readline` at the very least strongly suggests that there's an issue there; it doesn't guarantee that that's the problem (some types of errors in the source code can m...
(more)
over 2 years ago
Comment Post #284956 I get the feeling that this relates to readline, perhaps GNU readline, more so than Ruby, really. I suggest to check the installation documentation for mentions of readline version requirements, then look in your /usr/local/opt/readline to see if you can determine what version is actually on your sys...
(more)
over 2 years ago
Comment Post #284956 I don't think that applies, at least not directly. This looks to me to be related to readline; that Github issue is for building with an OpenSSL version that hasn't been updated since 2019 (so almost two years now).
(more)
over 2 years ago
Edit Post #284959 Initial revision over 2 years ago
Answer A: Who should the temporary moderators be?
I would like to also nominate Quasímodo‭ Although the community doesn't have a lot of content yet, Quasímodo has contributed generally well-received content on several subject matters (both as questions and as answers) so appears to have subject matter expertise; has been active in commenting a...
(more)
over 2 years ago
Comment Post #284799 In general, unlike in Microsoft environments, the file name extension is largely meaningless on \*nix systems. It's better to provide the output of something like `file -b`.
(more)
over 2 years ago
Edit Post #284740 Initial revision over 2 years ago
Answer A: Who should the temporary moderators be?
Especially considering the limited apparent interest thus far, I'll throw my hat into the ring and see what happens. Canina I have previous moderator experience from elsewhere (am currently a moderator on Writing, Scientific Speculation and since just now also on Power Users Codidact; feel free...
(more)
over 2 years ago
Comment Post #284642 @#53919 `showkey` on Debian Bullseye (showing its version as `(console-tools) 0.2.3`) has three modes; `--scancodes`, `--keycodes` (default) and `--keymap`. I'm not sure what you're running, but judging by the man page, it's been like that for a long time.
(more)
over 2 years ago
Suggested Edit Post #282408 Suggested edit:
Include text from photo instead of photo as image
(more)
helpful over 2 years ago
Comment Post #284642 At least when I try (using `showkey`), it seems that the key down and key release events are very much distinct. I haven't tried using it as a modifier key, though; I already use that key for other purposes which would be incompatible with such use.
(more)
over 2 years ago
Edit Post #284669 Post edited:
over 2 years ago
Edit Post #284669 Initial revision over 2 years ago
Answer A: How can you create a separate home partition using LVM?
I don't use Fedora myself, but from the documentation, it looks like it doesn't use LVM unless you explicitly set that up during installation, but rather Btrfs by default. How your system is actually set up could however very well depend on what the defaults were for the distribution version you init...
(more)
over 2 years ago
Comment Post #284390 This works fine. I inverted the logic, though, to avoid having to put pretty much the entire main body of the loop inside an `if` statement, adding `test -z "${processed[$1]}" || { shift; continue; }` right near the top of the loop. (A caution to anyone adapting this for their own use: don't forget t...
(more)
over 2 years ago
Comment Post #284389 The middle example works fine. I inverted the logic, though, to avoid having to put pretty much the entire main body of the loop inside an `if` statement, adding `test -z "${processed[$1]}" || { shift; continue; }` right near the top of the loop. (A caution to anyone adapting this for their own use: ...
(more)
over 2 years ago
Edit Post #284594 Initial revision over 2 years ago
Answer A: Make Less use a normal view instead of hexdump view
As I noted in a comment thread, I don't get the same behavior as you do (nor do I recall ever seeing it on any system), which points toward something about your setup. Apparently in response to the question about your /.bashrc, you showed that you run this from a freshly started shell (`bash --norc`)...
(more)
over 2 years ago
Comment Post #284583 That's not what it does to me; with less 551, I get the expected semi-binary view rather than a hexdump-style view. A few things of note: That new `bash` session might not itself read the shell initialization files, but it's going to inherit the environment from the spawning shell. That could i...
(more)
over 2 years ago
Edit Post #284387 Post edited:
over 2 years ago
Edit Post #284387 Initial revision over 2 years ago
Question In a bash shell script, how to filter the command line argument list to unique entries only, for processing each?
I have a handful of shell scripts that accept any number of command line arguments, then do some relatively expensive processing based on each command line argument in turn. The general format for these goes along the lines of #!/bin/bash # preliminary set-up goes here # main loo...
(more)
over 2 years ago
Comment Post #284250 @#36363 I see no evidence of nesting in the pseudocode in this question. Indentation, yes, but not nesting.
(more)
over 2 years ago
Comment Post #284250 More generally, point 2 is about the shell, not about sed, so any other tool that takes a similar expression as a command line argument would require similar quoting (or other handling) of that expression. It seems to me that this question simply seeks a way to split a sed expression onto multiple li...
(more)
over 2 years ago
Comment Post #283940 As an alternative approach, if the system running the flasher program has network access, you can mount a file system over the network and just access the data that way, removing altogether the need to store the file on the flasher system. (Though consider how the flashing process will deal with, for...
(more)
over 2 years ago
Comment Post #283940 What other OSes sometimes call a "RAM disk" or a "RAM drive" is called a ramfs or RAM file system in Linux. Assuming that support is available in the running kernel, `sudo mount -t ramfs none /some/mountpoint` gives you one. (The `none` is just an artefact of how ramfs in particular works. The `mount...
(more)
over 2 years ago