Posts by Canina
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>...
That's my bash script. Actually, no, it isn't. Assuming for a second that the shebang line is #!/bin/sh (not #!bin/sh as you have it in the question), it's a sh shell script, not a bash shell ...
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 ha...
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 ...
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...
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...
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...
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 mod...
I'm having trouble visualizing exactly what your setup is like, but if I understand correctly, then: You have one client that you are connecting from You have one server that you are able to co...
I'm quite certain that rsync is not able to deduce that /path/to/src/folder_a/file_w on one side of the transfer is identical to /path/to/src/folder_c/file_w on the other side of the transfer. The...
On a Debian Buster system I use, the password for connecting to a VPN is stored in the GNOME Keyring. Therefore, whenever I want to connect to the VPN in question, I get prompted to unlock my keyri...
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 kno...
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 per...
You can't expect an attacker to abide by any particular rulebook. In fact, if they did, then the defenders' job would be so much easier. That's why attackers don't do it. Remember the adage: a de...
How does the list of packages differ from that in a fresh install? The easiest way, if you have the data for it, would probably be to parse the APT logs (particularly /var/log/apt/history.log*...
Categories should be used for broad categories of posts. For example, see how Writing separates the main Q&A from writing challenges, or how Cooking separates its Q&A from recipes, or how M...
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 ...
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 qu...
As a general rule of thumb, Debian is restrictive about installing during the initial installation what, according to the Debian Free Software Guidelines, is non-free software. That's why the inst...
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 a...
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 ex...
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 transferri...
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...
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 ...
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 tha...