Most active questions
75 questions from the last 7 days
6 votes
4 answers
1k views
Does the content of LUKS disks become encrypted again at unmount or at power-off
It is clear that when a LUKS disk is mounted and the password/key has been provided, the contents are decrypted. I am wondering if unmounting the disk is sufficient to encrypt the contents again, or ...
10 votes
2 answers
973 views
Why does crontab use an unexpected editor?
man crontab reads: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab ...
8 votes
3 answers
524 views
Is possible to discover an IP address used by interface, if its IP range is not known, maybe using arp?
Is it possible to discover an IP address used by an interface , if its IP range is not known? Maybe using ARP? I have two PCs connected via direct cable (no switch); I forgot the IP range used by the ...
7 votes
4 answers
498 views
How to separate start directories and expression in `find`?
find takes an (optional) list of (what the man page calls) "starting points", i.e. directories, followed by an expression. Is there a way to cleanly separate both types of arguments so that ...
3 votes
6 answers
375 views
How can I use sed to chain append lines from a text file, add it as a suffix to the text on the same lines numbers on another file, and so on?
I've tried using sed for this. I've tried putting the lines of interest in variables as well. I have two examples I want to achieve for now. Lets say I have thousands of urls in a file called links....
1 vote
1 answer
758 views
Why is this FAT filesystem recording access time?
FAT isn't meant to record file access time, but the FAT filesystem I have in a VeraCrypt container file does. Why is this? This was before I opened the file /run/media/veracrypt1/test: ~ $ stat /run/...
9 votes
2 answers
510 views
How to resize ext4 without adding more inodes?
On this filesystem, there are enough inodes already, I only need more filesystem size: # df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/spinning-backup ...
7 votes
3 answers
611 views
Difference between these 2 different ways of extracting files from a zip archive
I am trying to unzip a set of files (3 files). These files contain a lot of random files, duplicate files etc. To do this, I am first unziping the list of the names of files into a text file, then ...
3 votes
2 answers
568 views
POSIX sh alternative to using [[ ... ]] in Bash
I am using this code to parse the first argument passed to my script. It error handles and it works just the way I want it: if [ -z "$action" ]; then printf "[${c_RED}ERROR${c_RESET}...
8 votes
1 answer
450 views
What is the USER= value reported for sudo attempts?
On my Arch system, failed attempts to run sudo cause a line like this to be added to the logs (note the USER=root): Nov 20 14:59:31 oregano sudo[191472]: bob : user NOT in sudoers ; TTY=pts/26 ; ...
2 votes
3 answers
170 views
bash syntax: what does '[@]+' mean? [duplicate]
I have a script that parses command line arguments. The intro to the loop to iterate over the argument array looks like this: for arg in ${args[@]+"${args[@]}"}; do Can someone explain this ...
4 votes
3 answers
305 views
Headless disk-mount with user permissions
There is a headless machine, with Debian as its OS: $ cat /etc/issue Debian GNU/Linux 11 \n \l $ uname -a Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux What I wish to ...
3 votes
4 answers
120 views
reformat data for PCA with AWK
I'm working on wrangling some data into a matrix format for a PCA analysis. I have attempted a more straightforward version with R, but pivot_wider() fails due to the massive size of this dataset (~4....
4 votes
1 answer
199 views
Polkit actions spawn authorization dialogs without prior user action
From time to time, an authentication dialog appears on my laptop running Linux Mint asking me to authorize some action. I've seen several different actions so far. This has been happening for many ...
1 vote
2 answers
154 views
How changing the terminal letters color and its whole background at the same time, using separate RGB or color codes?
It's often that when I am in a subject involving many processes of two or three kinds, I'm noticing that: one terminal I've opened is dedicated for my subject of kind #1, while another is opened to ...
3 votes
1 answer
64 views
Simplest way to use apt list output as argument to apt
I sometimes find myself wanting to use the output of apt list as a list of arguments to apt, i.e. a space separated list of package names. Any time I want this I have to search for how to do it and ...
-1 votes
1 answer
57 views
Is RAM + SWAP > 4GB possible on arm32?
On x86, the solution would be either PAE, but yet better is to use a 32-bit system with a 64-bit kernel. The physical memory of the planned 32-bit ARM system is only 3GB. I would like to increase it, ...
3 votes
1 answer
72 views
How to find the IP address of a service listed in the "avahi-browse" output?
I can very happily list the systems on my local net with the avahi-browser command: $ avahi-browse --all --verbose Server version: avahi 0.8; Host name: mylinux.local E Ifce Prot Name ...
0 votes
1 answer
68 views
Do posix functions like getpeername or getsockname completely rewrite their buffers?
I am new to socket programming & I have realized that most posix functions from libc require that you pass a buffer & a length. While I can understand this helps the functions to understand ...
3 votes
1 answer
68 views
unison permissions between machines
I have two linux computers: personal (arch, full root access) workplace (ubuntu, no root access). I am using "Unison" to sync some selected directories from one computer, to an ext4 usb ...
1 vote
1 answer
35 views
Kylin - Monitor CPU by process name
I am new to Kylin , I would like to monitor the CPU stats for a group of processes which share the same name. Let's pretend that the process name = BOB.exe First idea is to use this type of format, ...
0 votes
1 answer
33 views
Not able to yum/dnf gparted on centos 10
All, I find that gparted is not downloaded on centos 10 even after installing sudo dnf install epel-release -y . Other packages also are not downloadable like gvim. Any idea what should I do? Here are ...
2 votes
1 answer
57 views
I'm confused. Is my UFW firewall working or not?
Linux Endeavouros. I don't understand how to tell if my firewall is on or not. Using systemctl status ufw gives: ufw.service - CLI Netfilter Manager Loaded: loaded (/usr/lib/systemd/system/ufw....
2 votes
1 answer
40 views
ERROR activating modem: Using sim card for mobile broadband in manjaro
I have a sim card from sim.de and try to use it in my thinkpad laptop. When I put the sim-card in it asks me for the pin. I logged the output of journalctl -u ModemManager -f Nov 19 11:14:43 raphael-...
-2 votes
0 answers
60 views
Require advice on starting with Linux [closed]
I am a fresher uni student and starting out fresh with learning Linux. I have some experience on working with Python. I need some advice on beginning my journey to learn Linux: resources I can access, ...
1 vote
2 answers
56 views
How to capture boot steps
I have a linux-box. My hdd is nvme, hence boot is fast. I need to analyze each line of after grub. Can I pass a kernel parameter to capture my boot lines?
1 vote
1 answer
45 views
Transfer qcow file from one machine to the other failed
I had a VM (qcow2) on my previous PC (created using gnome-boxes) and wanted to run it on another host (previous one was Arch Linux, current one too, still inside gnome boxes) but I encountered the ...
-4 votes
1 answer
46 views
Understanding File Permission Differences in UNIX/Linux [duplicate]
What is the difference between chmod 755 and chmod 775?
0 votes
1 answer
52 views
Why do environment variables in `~/.profile` appear in `systemctl --user show-environment` but not in my terminal?
I added some environment variables to my ~/.profile, for example: export PIPX_BIN_DIR=$HOME/.pipx-global/bin This works as expected—the executables installed via pipx are placed in the correct ...
-1 votes
0 answers
49 views
Arch Linux start script
Hi I was just wondering if this script looks ok I run it after I login thanks. #!/bin/bash echo "hi, starting wifi, nft and desktop" sudo ls sudo systemctl start wpaStart.service sudo nft -...
1 vote
1 answer
29 views
rsnapshot @CMD_CP@
rsnapshot / rsnapshot.conf.default.in now has quite a few settings of the form @setting@, but there's no indication anywhere what those settings decode to. For example @CMD_CP@ doesn't seem to be ...
1 vote
1 answer
45 views
Route traffic from subnet to internet
I have a subnet 192.168.2.0/24 that is connected to another subnet 192.168.1.0/24 through a linux machine that has nftables configured. I have an application on subnet 192.168.2.0/24 that needs to ...
-5 votes
0 answers
46 views
CTRL+ALT+FN# doesn't work anymore
key sequence CTRL+ALT+FN# doesn't work anymore
1 vote
0 answers
40 views
Return of "unable to boot" error
At the start of this year, running a kali live USB on a Lenovo (Lunar Lake) "Aura Edition" laptop was impossible due to incompatible hardware. Then, approx. 4 months ago, kali 2025.3 ...
0 votes
0 answers
54 views
how to convert hex memory dump to Docsis config file?
Hex memory dump is Docsis config file. Is it possible to convert this hex dump info valid Docsis config file? Preferably, using Perl and DOCSIS::ConfigFile module. (or Python scripts, python-docsis). ...
0 votes
1 answer
44 views
disable bash job control warning "job specification requires leading `%'"?
I just rebooted one of my systems for the first time in several months, restarted tmux and my usual set of bash shells for tailing various log files, and noticed that running fg n (i.e. fg followed by ...
-1 votes
1 answer
49 views
Launch GUI program from command line as if it were launched using GUI
(NOTE: I know that similar questions have been asked before, but none of them have the constraints that this one does. So, don't mark it as a duplicate!) On macOS, using the open command, one can ...
-1 votes
0 answers
38 views
Iso booting not working for any linux distro
Trying to boot several Linux distros directly from grub, none works. I am receiving: Error: File not found Error: No such disk Error: You need to load the kernel first menuentry "Lubuntu 16....
2 votes
0 answers
37 views
I'm trying to share a folder, but Fedora displays:- Failed to enable unit: Unit samba.service does not exist
I'm trying to follow the instructions on the Fedora site, to create a Samba share:- sudo dnf install samba Package "samba-2:4.23.3-1.fc43.x86_64" is already installed. Nothing to do. sudo ...
0 votes
1 answer
40 views
Debian 13: localsearch (indexing service) is not indexing smb share on a Synology NAS mounted via the /etc/fstab file
I have a laptop with Debian 13 installed and a Synology NAS with an SMB share that holds music files. I have added a line to the /etc/fstab file to auto mount this share during startup. The line is ...
1 vote
1 answer
42 views
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?
How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy? My ext4 disk was failing. I made a disk image. I tried e2fsck and ...
1 vote
0 answers
36 views
Systemd service not executing on resume
Similar issue to this post: Writing a systemd service to be executed at resume I have a service that I want executed when the computer wakes from sleep. Here is the service: [Unit] Description=User ...
1 vote
0 answers
34 views
Workspaces on Gnome 49
I have Debian Forky (Testing). I have upgraded to Gnome 49: gnome-shell --version GNOME Shell 49.1 The most annoying thing is that my workspaces do not work. If I go to show apps I can see 4 ...
0 votes
1 answer
79 views
How to manage swap memory inside an encrypted LUKS LVM?
I am using Kubuntu which is Ubuntu with KDE. My swap partition is too small causing me some lag. I have 16GB Ram but it is set to 1.9GB. Attached is screen shots of my current partition. vgkubuntu is ...
0 votes
2 answers
32 views
How to disable autostarting of conmon?
On Debian13 with KDE after upgrading from Debian12, I see that conmon autostarted and is listening on some port by using sudo lsof -i. I don't want anything to autostart that I didn't configure to do ...
0 votes
0 answers
45 views
apt-get autoremove during Debian 13 upgrade removed packages I need - how to get them back?
To upgrade from Debian 12 with KDE to Debian 13, I did run sudo apt-get full-upgrade -o dir::cache::archives=dir and sudo apt-get --fix-broken install -o dir::cache::archives=dir but despite of ...
0 votes
1 answer
49 views
Reading data from serial port on linux
We have an old setup of a PLC and an old PC (from 90s). The PC previously ran a windows program reading PLC data from a Serial port and plotting it on the monitor. Long story short, the old program no ...
1 vote
0 answers
32 views
Debian: sssd does not start because of permission problems of /etc/sssd/sssd.conf that are automatically set
On Debian 13 a fresh installed sssd (2.10.1) shows strange permission errors after the start using systemctl restart sssd.service: systemd[1]: Starting sssd.service - System Security Services Daemon......
0 votes
0 answers
28 views
Linux kernel “BUG: Bad page state / Bad page cache in process python” during PyTorch distributed training (NVidia 5090 + Ubuntu 22.04)
I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads . The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
-3 votes
1 answer
40 views
How to fix the update and upgrade in ParrotOS
How do I fix this error? GPG error: https://deb.parrot.sh/parrot parrot InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7A8286AF0E81EE4A E: ...