Answers

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

What are the file size options for "find . -size" command?

What are the file size options for "find . -size" command? I found out that to look for file size in bytes, I use ‘c’. So I can look for file size with 1000 bytes by using: find . -size 1000c But what about different kind of size such as Mb, Gb or even bits? …

Total answers: 2

Is there a way to use tee with the whole script from INSIDE the script?

Is there a way to use tee with the whole script from INSIDE the script? I’m making a script to update the system (Ubuntu 22.04), updating all packages in apt, flatpak and snap with one order (like sudo ./update.sh) and, in case something goes wrong, I want to save the output in a file. I …

Total answers: 2

What is the scope of /var/log/user.log file?

What is the scope of /var/log/user.log file? /var/log/user.log What’s the scope of this log file? Is it related only to currently logged in user or to multiple users and which ones? What this log file is about and when should I look into it? Asked By: metablaster || Source The syslog module provides system logging …

Total answers: 1

coreutils man pages are missing in wsl fedora

coreutils man pages are missing in wsl fedora i installed fedora 39 on wsl but i ran into some issues when i tried using man when i used the man command i was getting no manual entry for … i had to remove tsflags=nodocs from /etc/dnf/dnf.conf i reinstalled man man-db man-pages and changed the MANPATH …

Total answers: 1

What does "6" mean in glibc.so.6?

What does "6" mean in glibc.so.6? When exploring the C++ binary, I find that libstdc++.so.6 is dyn-linked into libm.so.6 and libc.so.6: ldd /lib/x86_64-linux-gnu/libstdc++.so.6 linux-vdso.so.1 (0x00007ffcb737b000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd3b2295000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd3b1c00000) /lib64/ld-linux-x86-64.so.2 (0x00007fd3b2396000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd3b2275000) My question is: what does 6 mean in the name? I originally thought it was the …

Total answers: 2

Package maintainer pre-inst script `install` vs `upgrade`

Package maintainer pre-inst script `install` vs `upgrade` According to the Debian package maintainer script documentation, the pre-install script can be called with either the install or the upgrade first argument: The preinst script may be called in the following ways: new-preinst install new-preinst install old-version new-version new-preinst upgrade old-version new-version What is the difference between …

Total answers: 2

How to get display to show a pdf properly

How to get display to show a pdf properly When I do: display file.pdf it shows this: I can’t resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming transparency, I think, with: display -alpha opaque file.pdf …

Total answers: 1

Reducing microphone noise using pipewire modules

Reducing microphone noise using pipewire modules With pulseaudio, it was easy to load a module for microphone noise reduction. This link explains it clearly: https://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio I don’t find something equivalent for pipewire (i’m on debian 12). I have found only an app: https://github.com/noisetorch/NoiseTorch?tab=readme-ov-file For me the drawbacks of this app are: It relies on a …

Total answers: 1

using tabs within block for ansible blockinfile module

using tabs within block for ansible blockinfile module I want to output some text with tab as separator using ansible here’s task snippet – name: Create output file blockinfile: block: | Some texttmore text path: ‘{{ playbook_dir }}/output.txt’ create: true CURRENT OUTPUT # BEGIN ANSIBLE MANAGED BLOCK Some texttmore text # END ANSIBLE MANAGED BLOCK …

Total answers: 1

systemd.network management

systemd.network management I try to follow the manual example from man systemd.network: # /etc/systemd/network/27-xfrm.netdev [NetDev] Name=xfrm0 Kind=xfrm [Xfrm] InterfaceId=7 # /etc/systemd/network/27-eth0.network [Match] Name=ens5 [Network] Xfrm=xfrm0 Then systemctl daemon-reload + systemctl restart systemd-networkd. And – nothing. In systemctl status systemd-networkd it also does not show any references to xfrm: Apr 16 23:52:07 ip-10-100-1-205 systemd[1]: Starting Network …

Total answers: 2

What's the "new" way of checking the established connections in strongswan

What's the "new" way of checking the established connections in strongswan Previously it was in ipsec statusall. Now with swanctl I can only see swanctl –list-conns but it only shows the configuration details, not the runtime statistics: eg bytes transferred, negotiated ciphersuites, reauth/rekeying stats, and so on and so forth. So, is there any similar …

Total answers: 1

How much space do I need to create a symlink?

How much space do I need to create a symlink? I have a server which contains 1 TB of space. I filled it to capacity; then I wanted to make a symlink. I removed a different symlink, but the server still wasn’t happy – it said I didn’t have any space available. Didn’t I just …

Total answers: 2

NGINX HTTPS not redirecting properly

NGINX HTTPS not redirecting properly I followed Cerbot’s instructions to get a HTTPS certificate for NGINX in my Debian server for a domain, but the HTTPS is not redirecting properly. I got the following in etc/nginx/conf.d/app.conf from Certbot’s automatic generation: server { server_name mnpd.khkm.dev www.mnpd.khkm.dev; # listen 8080; server_tokens off; location /.well-known/acme-challenge/ { root /var/www/certbot; …

Total answers: 1

File removed from .deb package

File removed from .deb package I created a .deb file where I originally stored an F file. Then I installed this deb file and the F file is correctly in place under a D directory. Then I rebuilt the .deb file excluding the F file from its building. Now I would like to install this …

Total answers: 1

Is this process safe? "ClipboardMonitor"

Is this process safe? "ClipboardMonitor" This process is displaying on my taskbar as "ClipboardMonitor". It seems related to a remote desktop client, but that is just a guess. My question is what is this tracking and where is the output going? Here is the command line for the process: /opt/TSPrintClient/java/bin/java -classpath /opt/TSPrintClient/commons-codec-1.10.jar:/opt/TSPrintClient/commons-io-2.4.jar:/opt/TSPrintClient/sun.misc.BASE64Decoder.jar:/opt/TSPrintClient/TSPrintClient.jar MonitorClipboard Asked By: …

Total answers: 1

Connected to WiFi but there is no internet

Connected to WiFi but there is no internet $ lsb_release -a No LSB modules are available. Distributor ID: Pop Description: Pop!_OS 22.04 LTS Release: 22.04 Codename: jammy I was able to connect to the Internet until Sunday. I couldn’t connect to the Internet on Monday. Nothing has changed on my PC. The only thing I …

Total answers: 1

Piping live sound from raspberry pi to macOS

Piping live sound from raspberry pi to macOS I want to pipe and live play the sound recorded on my raspberry to my MacBook. Ive tried the following: On My raspberry: I tried to establish a data stream on a port 3333 arecord -D plughw:3,0 -f S16_LE 44100 -t raw | nc -l -p 3333 …

Total answers: 1