Search
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 ...
Beginners should always start with a Linux that people around them are using. If they have friends using Red Hat, they should use Red Hat. If they have a local users' group with lots of Ubuntu user...
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 ...
Using systemd timers is too much work? Not with systemd-run! systemd-run --user --on-active=10min some_cmd
Welcome to the Codidact community for Linux Systems! We're glad you're here and we're excited to see what you will build. This community is starting "from scratch", without importing Q&A from...
The ** pattern is an extension to, not a part of, the POSIX glob syntax. While it has emerged as an informal standard, AFAIK there is no single standard to reference to describe what it does. This...
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...
So I ran into that weird "packages being held back" problem while updating my system using apt. After some research, it appears to be the result of "phased updates". What are phased updates, any...
Firstly, as an official Ubuntu Member who frequents the tech support IRC channels, I think I can help with getting more activity here. One of the most recent "whoa what happened here" events in th...
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...
Although my reputation would shrink substantially if that change were implemented ;) , I think it is the right choice to prevent votes on meta from affecting the reputation. The reason is that the...
Unix is very permissive with filenames, and this can sometimes lead to a bunch of annoying corner cases when printing files. A well known example is when you put a newline in a filename, and it bre...
TL;DR: The problem is not with stuff on the platform that needs fixing. The problem is that the platform appears dead. I'm still at the "old" platform, and a moderator on a tiny site (Arts & C...
It is incorrect for two reasons. 1. File names containing glob characters This is an edge case scenario. Consider this structure: . ├── abc ├── abc.part ├── cde └── c*e.part The outermos...
Unix systems are made out of many small tools that focus on specific tasks but are general enough that the investment made in learning their specific switches and hotkeys pays off over many applica...
Port forwarding is something a router does. Port triggering is basically port forwarding that's enabled when a connection attempt is detected and then automatically disabled. That's also handled ...
Question What partition type should I use for FAT partitions such that Linux and Windows systems both recognize the drive? Notes I am partitioning the drive with fdisk and making the filesystem ...
Codidact's communities have a lot of great content that is helping people on the Internet. Our communities are small, though, and sustainable communities depend on having lots of active, engaged p...
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...
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 run an environment that, until recently, did all local name resolution by putting names in /etc/hosts. I'm in the process of replacing that with local DNS. The DNS part works fine, and now I'm tr...
Bash Here Bash's associative arrays come handy. The idea is to put every argument as a key in a separate array, and then only process arguments that are not keys to that array. #!/bin/bash decla...