Answers

Linux questions/answers collected from open sources. Each question has a confirmed answer.

follow-up: "Awk: Comparing passed Bash variables with column values"

follow-up: "Awk: Comparing passed Bash variables with column values" As a follow-up to my previous question, how would a similar string comparison be made when there are mutable characters on either side of it in the document? As an example: # test,date "test1","27 March 2024 01:37 PM UTC" "test2","13 April 2024 07:08 AM UTC" "test4","13 …

Total answers: 1

Why does Samba create all new files/directories with 'root' as the owner?

Why does Samba create all new files/directories with 'root' as the owner? I’ve created a new Samba instance and it works, but when I copy new files onto the Samba share they get created with the owner:group as root:myuser. All the files that I create on Linux itself have myuser:myuser. Why does Samba set root …

Total answers: 1

Awk: Comparing passed Bash variables with column values

Awk: Comparing passed Bash variables with column values Using this example: #submission,date "test1","22 April 2024" "test2","24 April 2024" "test3","25 March 2024" "test6","01 April 2023" "test7","02 April 2022" "test8","03 April 2021" I’d like to only print tests in the present month, which as of writing is April 2024. Trying this command: awk -F, -v date="$(date +’%B …

Total answers: 1

I have a question about downloading Ubuntu version between LTS and basic one

I have a question about downloading Ubuntu version between LTS and basic one Why there’s only one option to download Ubuntu 24.04 LTS? I remember that there were two options available for download Ubuntu 23.10.1 and Ubuntu LTS 23.04 but now there’s an LTS version of Ubuntu Asked By: Yayy887 || Source Much depends on …

Total answers: 1

Help With Ubuntu 24.04 LTS!

Help With Ubuntu 24.04 LTS! I Need Your Help With Ubuntu 24.04 LTS! I Worked with Linux for about 4 years and i know how to work with it. It was so good for me and i was comfortable with it; But Ubuntu 24.04 looks so weird! It gets me "No irq handler for vector" …

Total answers: 1

What is the rationale for the change of syscall calling convention in new Linuxes?

What is the rationale for the change of syscall calling convention in new Linuxes? Quoting from https://www.kernel.org/doc/Documentation/process/adding-syscalls.rst: At least on 64-bit x86, it will be a hard requirement from v4.17 onwards to not call system call functions in the kernel. It uses a different calling convention for system calls where struct pt_regs is decoded on-the-fly …

Total answers: 1

List openvswitch virtual switch with ip command

List openvswitch virtual switch with ip command I’ve configured openvswitch virtual switch and can list it with ip command as follows: # Show all interfaces ip link Output: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 <snip> 5: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop …

Total answers: 1

objdump `–adjust-vma` destroys debug info

objdump `–adjust-vma` destroys debug info When using the –adjust-vma option of objdump all the functions get squashed together, as if there is no debug information about where each function starts. I’ll demonstrate with the following simple C file (a.c): void func(void) { } int main() { } Compile it using gcc -g a.c Now without …

Total answers: 1

FUSE filesystems look at saved UID/GID?

FUSE filesystems look at saved UID/GID? While attempting to create a program that reads some configuration before launching programs as a normal user and then as the root user, I noticed this odd behavior. I can’t seem to find mention of it anywhere else. Normal filesystems use the effective UID/GID for access checks, but it …

Total answers: 1

What to do now that Gnome 44 runtime is no longer supported?

What to do now that Gnome 44 runtime is no longer supported? Info: org.gnome.Platform//44 is end-of-life, with reason: The GNOME 44 runtime is no longer supported as of March 20, 2024. Please ask your application developer to migrate to a supported platform. This was the message from my flatpak updating process today. I have had …

Total answers: 1

jq: Printing multiple values from multiple arrays at once

jq: Printing multiple values from multiple arrays at once The default functionality of jq is to send each object from an array one at a time, though the join operator can merge those values. My problem is in trying to print all the values from multiple arrays at once. Taking this example: { "key1": { …

Total answers: 1

Why is my crontab giving me a bad username error?

Why is my crontab giving me a bad username error? I’m trying to zip a directory and copy it over as a backup. I’m new to Linux to so I followed guides as best as I could, but when trying systemctl status cron I get the following error: Apr 27 13:34:01 mc-server cron[950]: Error: bad …

Total answers: 1

Why does the 64bit Linux Mint Live run on my 32bit machine?

Why does the 64bit Linux Mint Live run on my 32bit machine? Just made my Live-USB from 64bit Mint 21.3 (https://www.linuxmint.com/torrents/linuxmint-21.3-xfce-64bit.iso.torrent) and plugged into my old 32bit laptop, forgetting it still is such old. (Probably it’s not relevant, but in any case: I created the USB stick basically following the answer at https://askubuntu.com/a/1227225/602021) Everything boots …

Total answers: 1

What language are the alsa configuration files (such as ~/.asoundrc) written in?

What language are the alsa configuration files (such as ~/.asoundrc) written in? Here’s a brief snippet of an alsa config file (/usr/share/alsa/pcm/default.conf): pcm.!default { @args [ CARD ] @args.CARD { type string default { @func getenv vars [ ALSA_PCM_CARD ALSA_CARD ] default { @func refer name defaults.pcm.card } } } … Does this language exist …

Total answers: 1

Cant upgrade from ubuntu 23.10 to ubuntu 24.04

Cannot upgrade from Ubuntu 23.10 or 22.04 to Ubuntu 24.04 The new Ubuntu 24.04 has been release but I can’t upgrade the system using the update manager, because nothing appears. I have Ubuntu 23.10. I tried to change to long term releases and back to any version to no avail. I don’t know what I …

Total answers: 2

How to *actually* limit CPU usage for Hashcat

How to *actually* limit CPU usage for Hashcat I’d rather not fry the living crap out of my CPU. The hashcat program uses a lot of CPU and GPU. I know, the simple solutions people recommend online, such as using tools to limit cpu usage, such as cpulimit, but all it does it cut Hashcat. …

Total answers: 1

24.04 LTS Texts don't appear until hover

24.04 LTS Texts don't appear until hover I installed Ubuntu 24.04. I am facing an issue where texts are not visible until I hover. Is there anyone facing this issue and is there a way to fix it? check this video Asked By: Reuben Siama || Source it is probably because display driver or kernel …

Total answers: 1

Getting error when trying to update: No Release File

Getting error when trying to update: No Release File I am trying to update my stretch release of Debian which is now in archive status and am getting the following error: The repository ‘http://deb.debian.org/debian stretch Release’ does no longer have a Release file. How can I get past this error? Asked By: Tyler Durden || …

Total answers: 1

Shebang can reference a script in Linux

Shebang can reference a script in Linux I’ve always heard that the target of a shebang line (e.g. #!/bin/bash) must be a binary executable, not a script. And this is still true for many OSes (e.g. MacOS). But I was surprised to see that this is not true on Linux, where up to 4 levels …

Total answers: 1

Why is one process ps command showing spaces around a directory instead of slashes?

Why is one process ps command showing spaces around a directory instead of slashes? I’m trying to debug a failing legacy process monitor that searches processes that are running. I determined it is being caused by some mysterious linux behavior. The process being ran is /opt/my/path/directoryname/daemonname but for some odd reason, it shows up with …

Total answers: 1