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 »

Posts by Canina‭

33 posts
87%
+12 −0
Q&A How to give password in shell script?

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 ...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
87%
+12 −0
Q&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&gt...

posted 1y ago by Canina‭  ·  edited 1y ago by Canina‭

Answer
87%
+12 −0
Q&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 ha...

posted 2y ago by Canina‭  ·  edited 2y ago by Canina‭

Answer
86%
+11 −0
Q&A 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 ...

3 answers  ·  posted 3y ago by Canina‭  ·  last activity 3y ago by Quasímodo‭

84%
+9 −0
Q&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...

posted 3y ago by Canina‭

Answer
84%
+9 −0
Q&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...

posted 2y ago by Canina‭

Answer
81%
+7 −0
Q&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...

posted 3y ago by Canina‭

Answer
81%
+7 −0
Meta 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 mod...

posted 3y ago by Canina‭

Answer
77%
+5 −0
Meta Do domain-specific how-to's fit well within Q&A?

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...

posted 6mo ago by Canina‭  ·  edited 6mo ago by Canina‭

Answer
77%
+5 −0
Q&A How to forward SSH access of one machine, through another, to the rest of a network?

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...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
75%
+4 −0
Meta Tag/category suggestions

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...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
75%
+4 −0
Q&A Forbid concurrent runs of a process

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...

posted 4mo ago by Canina‭

Answer
75%
+4 −0
Q&A Can rsync handle moves and renames?

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...

posted 10mo ago by Canina‭

Answer
75%
+4 −0
Q&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 kno...

posted 1y ago by Canina‭

Answer
75%
+4 −0
Q&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 per...

posted 1y ago by Canina‭  ·  edited 1y ago by Canina‭

Answer
75%
+4 −0
Q&A How to detect if a Linux Docker host has had unwelcome guests?

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...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
75%
+4 −0
Q&A What is the best way to identify changes from the default configuration in Raspbian systems?

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*...

posted 3y ago by Canina‭

Answer
75%
+4 −0
Q&A How to configure GNOME Keyring to by default NOT automatically unlock keyrings whenever logged in, on Debian?

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...

1 answer  ·  posted 3y ago by Canina‭  ·  edited 3y ago by deleted user

71%
+3 −0
Q&A 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 ...

0 answers  ·  posted 3y ago by Canina‭  ·  last activity 1y ago by Mithical‭

Question wireguard openvpn
71%
+3 −0
Meta 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 qu...

posted 3y ago by Canina‭

Answer
71%
+3 −0
Q&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 a...

posted 1y ago by Canina‭

Answer
71%
+3 −0
Q&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 ex...

posted 1y ago by Canina‭  ·  edited 1y ago by Canina‭

Answer
71%
+3 −0
Q&A Intel® Centrino® Advanced-N 6205 not found in Debian

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...

posted 3y ago by Canina‭  ·  edited 3y ago by Canina‭

Answer
71%
+3 −0
Q&A Terminal: Continuously check mail, but not too often

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 ...

posted 4mo ago by Canina‭

Answer
66%
+2 −0
Q&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...

posted 1y ago by Canina‭

Answer