What is something *new* you have learned about Linux within the past 7 days?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've learned to try and exhaust all of my own tricks before resorting either googleing and or posting a copy cat thread on a forum like LQ. In addition to this I've also learned that i need to be kind to myself before I can be kind to other weather face to face or on a platform such as a forum like LQ or a distribution specific mailing list.
In recent discoveries, I stumbled upon a fascinating find feature known as the -delete command,
which boasts superior efficiency compared to the commonly used -exec rm,
particularly when handling a vast number of files.
Regrettably, this knowledge came too late for me,
as I encountered a predicament with a misconfigured logrotate script that inundated a target directory with over 650,000 files.
Attempts to remove the directory outright resulted in catastrophic server performance due to intense IO operations.
Even executing "rm" on all files simultaneously proved unfeasible due to the sheer volume overwhelming the command's argument limit.
Consequently, I resorted to crafting a for loop as a workaround.
Today, another enlightening revelation dawned upon me:
the existence of the "-newer" parameter.
Had I known of its capabilities earlier,
it would have significantly aided in managing my Dovecot IMAP server configured with static drivers.
These drivers, unfortunately, lack user enumeration capabilities,
rendering doveadm commands ineffective for comprehensive mailbox searches.
Now, if one seeks to isolate emails sent after a specific message,
employing the command:
Code:
find -newer <originalemail>
will diligently scour for files created subsequent to the specified originalemail.
presenting a valuable asset for administrators navigating similar setups.
General Purpose Input/Output (GPIO) pins were controlled through sysfs at /sys/class/gpio for many years. You could operate a sprinkler valve with echo commands in crontab on your Raspberry Pi.
That Application Programming Interface (API) was inadequate for complex systems with multiple users/apps contending to control groups of multiplexed pins. /sys/class/gpio is deprecated in distros including Armbian and Raspberry Pi OS aka Raspbian.
The replacement API is well documented at https://www.kernel.org/doc/html/v4.1...pi/pinctl.html . The current Raspberry Pi OS (based on Debian 12 "bookworm") provides a command line utility pinctrl that you can use instead of those echo commands. There's no manpage but pinctrl -h suffices.
For years I have been retrieving files from my gopro using gphotofs. It was straight forward: it mounted the gopro's file system to a mount point, and then I could access it like any other mounted file system, and, when finished, I unmounted it useing fusermount.
However, on aarch64, I was unable to get the slackbuild for gphotofs to finish, due to errors about unsupported architecture.
That's when I discovered that all this time there was an even easier way, using gphoto2 (which does work on aarch64). It was always as easy as:
Code:
gphoto2 --get-all-files
And I can then erase the files on my gopro with
Code:
gphoto2 -f /store_00000004/DCIM/100GOPRO -D
.
So it's trivial, and right in the man page of gphoto2, but I had never done it that way. It is something new I learned about linux this past week.
I learned that it is not a good idea to simply clear your cookies
To save time, I always clear the FF cache before I'm due to dump a system. That means that a few tens of MB of junk don't need to be copied over. But I have discovered that doing the same with your cookies is not a good idea. Some sites like gmail expect to find their cookie in place when you log in and if they can't find it, they will bombard your other accounts and devices with warnings about a possible unauthorised login. Better to clear cookies by hand and leave in place those that belong to sites you use regularly.
This was a very helpful post!
It helped me decode the mystery behind those relentless notifications bombarding my smartphone like enemy artillery!
As I recently cleared my cookies and other local storage data on my desktop browser,
my smartphone began to suddenly screaming at me to sign into my Microsoft Hotmail account like it's the top-secret code to unlock the nuclear launch sequence!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.