Posts by Canina
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 ...
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...
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 ...
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...
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 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...
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...
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>...
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...
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...
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...
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 ...
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...
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...
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 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...
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 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 actual...
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...
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 have ordered (but am still waiting for it to arrive) a USB-connected webcam that is supposed to be V4L2 compatible. Once it arrives, I'm obviously going to want to mount it such that it provides...
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...
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 ...
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...
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...