Posts by Canina
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 ...
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>...
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 ...
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...
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...
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...
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 h...
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...
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...
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 (ye...
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...
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*...
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...
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...
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...
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...
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 ...
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...