mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#linuxtips

0 Beiträge0 Beteiligte0 Beiträge heute

🐧 Linux Command of the Day: jq

Master parsing JSON data directly from the command line! Ideal for processing API responses, config files, or logs. A must-have for scripting & automation. #LinuxTips #DevOps #Automation

Key flags: . (identity), keys, select(), | (pipe)

Examples:
echo '{"n":"L"}'|jq .n
echo '[{"s":"ok"},{"s":"err"}]' | jq '.[]|select(.s=="ok")'
echo '{"u":"a","l":"h"}'|jq keys

So we all have used Windows, right. I have a Digital license for both that are tied to my account. But we all have paid for it and I'm sick of the choices that Microsoft has made. Microsoft: "Yeah let's bake in Ads and USELESS AI in the product our users pay for"

yeah I won't be using that. I still love Windows deep down, but that's Windows 10. Too bad it's not getting supported unless you pay for ESU. I'm gonna use Linux on PCs in the future.

In my opinion: Fuck Microsoft and Win11.

#linux #linuxdesktop #microsoft #enshittification #windows10 #windows11 #linuxtips #endof10

might edit this in the future

Boost!

Linux tip: you can edit files from within less by pressing "v". This will launch your default editor.

If you do not have a default editor specified, you can specify one by adding the following lines to your .bashrc:

# set default editor
EDITOR=/usr/bin/vim

Substitute vim for whatever editor you prefer. (Which is obviously vim :)

#Linux#Bash#vim

A #reboot is a solution to many tech problems. But if you are on #Linux, did you know you need to reboot only if your kernel has changed? Otherwise you can do a "soft reboot" and get the same thing. You need to kill the init process and make it respawn. It varies from distro to distro but on #systemd ones, you can do systemctl soft-reboot and it'll do the job for you.

Also if you have problem with your graphical shell, you can simply restart your graphical stuff. Not even a soft reboot is needed. For instance if your display manager is lightdm like me, simply do systemctl restart lightdm.

I think this applies to other #unixlike operating systems with the similar kernel and system architecture as Linux. Maybe #BSD people can share their experience?

If you’re running both Linux (like Kali or Ubuntu) and Windows on the same machine and notice that Windows displays the wrong time after booting into Linux, you’re not alone.

It kept bugging me for years tbh 🤣.

Solution is simple - just run the following command in your Linux terminal:

sudo timedatectl set-local-rtc 1 --adjust-system-clock

🔗 More details: itsfoss.com/wrong-time-dual-bo

@itsfoss 👍🏻

It's FOSS · [Solved] Wrong Time in Windows 10 After Dual Boot With LinuxIf you dual boot Windows and Linux, you'll notice that often one of them shows incorrect time. Here's why that happens and what you can do to fix it.
#Linux#Windows#DualBoot

Did you know? On Linux you can observe the file descriptor positions using `/proc/<pid>/fdinfo/<fd-number>`
man7.org/linux/man-pages/man5/

You can use that to observe long-running file processing jobs' progress. But there are tools that format this properly; Debian (/Ubuntu) packages `progress` a tool that does just that:
github.com/Xfennec/progress

It can snoop for coreutils processes, or just watch an arbitrary pid:

`progress --monitor --pid $(pidof -s lbzcat)`

man7.orgproc_pid_fdinfo(5) - Linux manual page

Hey @jloc0 , it's @martindehf writing from my english-speaking account :)

I want to update my current system but the documentation is a bit outdated and it doesn't take into account that:
- I have installed GRUB
- Multilib
- Used sbopkg to install some packages
- User slackpkg+ to install some packages from alienbob's repo.

Any tips or links would be greatly appreciated :D

#slackware#linux#tips

🖥️ Understanding the Linux File System 🐧

If you're diving into the world of Linux, one of the most important concepts to understand is the Linux File System (LFS). The way Linux organizes and manages data on a disk is essential for navigating, managing files, and running your system smoothly. So let’s break down how the Linux File System works, its structure, and the key components! 🚀

Antwortete im Thread
Como aprovechar y añadir al Menu la opcion de activar/montar una particion local o remota

Yo tengo un #NAS en casa que uso como #CLOUD local y asi no depender de servicios externos. Asi toda la familia puede ir guardando lo que quiera ahi.

Y para usar al maximo su capacidad me decidi a configurar el servidor #NFS y asignar una carpeta a cada usuario. Lo bueno es que el NAS tiene una opcion para administrar muy facilmente este tipo de cosas...

Y en el laptop o PC del usuario simplemente cree una carpeta donde se monta la carpeta remota del NAS+NFS, pero como no quise activar por defecto el "automontaje" de la carpeta, cree el siguiente archivo:

$ gedit .local/share/applications/montar-carpeta-remota.desktop

Y coloque lo siguiente:
[Desktop Entry]
Type=Application
Name=Activar / Montar Disco Externo
Categories=Network;NAS;Cloud;Security;
Exec=sh -c 'sudo umount /path/to/carpeta && sudo mount /path/to/carpeta && sleep 3'
Terminal=true

Despues de guardar, añadi el nuevo icono/opcion que me aparecio en el menu (al tipear la palabla "montar" me aparece, y supongo que se mantiene oculta, por ser una app de terminal) en la barra/dock de "plank"

#linuxtips #mistrucos #trucoslinux