photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

256
active users

#linuxtips

0 posts0 participants0 posts today

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.

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

#RaspberryPi owners, how do you back up your #RPi?
I don’t have an extra hard drive, so I need to back up to #GoogleDrive. I’ve installed #Rclone and tried creating a #BASH script, but I’m struggling with it.
If you’ve set up something similar or have recommendations for an efficient backup workflow, I’d love to hear them! Bonus points if you know any good courses or resources to improve my scripting skills.
#Linux #Tech #SelfHosted #SelfHosting #RaspberryPiBackup #RaspberryPi500 #RaspberryPiProjects #RPiBackup #RaspberryPiOS #RPiProjects #LinuxBackup #LinuxTips #LinuxCommunity #TechSupport #OpenSource #DataBackup #CloudBackup #GoogleDriveBackup #CloudStorage #FileBackup #Rclone #BASHScript #ShellScripting #ProgrammingHelp #CodeNewbie #LearnToCode #TechSolutions #Automation #techhacks @linux @selfhost @selfhosting @selfhosted

Replied in thread

@thelinuxEXP @vkc
🥥 Eye'm indecisive, Nick, and haven't given my heart fully to any particular Linux distro even though Eye've been an amateur for Linux since 1998.
That's why it's fun for me to have a copy of Ventoy with a half dozen or so distro ISOs to boot from just to be able to change things up if Eye wish.
Also, Eye have been watching and enjoying YOUR Linux videos for years. 🥥
#Linux, #LinuxTips, #TheLinuxExperiment, #LinuxMom, #NerdWormholes, #Ventoy, #LinuxISO