LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-10-2024, 04:39 AM   #556
pmv
Member
 
Registered: Apr 2018
Location: Germany
Distribution: OpenSuSE 15.4 Ubuntu 20.04 Archlinux 2022.08.05 Slackware 15.0
Posts: 86
Blog Entries: 5

Rep: Reputation: 31

to be able to print on a network printer:
Code:
sudo ip route add 192.168.0.2 dev enp4s0
to enable internet connection:
Code:
sudo systemctl restart NetworkManager.service

Last edited by pmv; 03-10-2024 at 09:58 AM.
 
Old 03-14-2024, 12:15 PM   #557
mw.decavia
Member
 
Registered: Feb 2024
Distribution: Slackware64-15 & Afterstep , oh my
Posts: 78

Rep: Reputation: 8
I am always learning new things. Today I learned how to rescan the expresscard slot on my laptop. For changes, or just to remove/reset the card.

Code:
echo "1" > /sys/bus/pci/rescan
And if it is an ethernet card
Code:
ifconfig eth0 10.1.1.1/8
route add default gw 10.254.254.254
 
Old 03-30-2024, 11:23 PM   #558
friendlysalmon8827
Member
 
Registered: Dec 2023
Distribution: Anfroid,Debian
Posts: 85

Rep: Reputation: 5
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.
 
Old 03-31-2024, 12:00 AM   #559
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by friendlysalmon8827 View Post
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.
I've found that the very act of formulating a post sometimes gives me a new insight into the problem and I can then solve it by mtself.
 
1 members found this post helpful.
Old 03-31-2024, 05:05 AM   #560
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
Talking

Quote:
Originally Posted by hazel View Post
I've found that the very act of formulating a post sometimes gives me a new insight into the problem and I can then solve it by mtself.
I recently learned that this is called "rubberducking".
 
Old 04-04-2024, 04:01 AM   #561
MickeJ
LQ Newbie
 
Registered: May 2023
Posts: 20

Rep: Reputation: 8
rsync the gem of Linux, rsync is a onion of layers "wtf can it do this also nice" features

i just learned that moving a file AND change ownership is as simple as:
Quote:
rsync --remove-source-files --chown=myuser:myuser /usr/.local/bin/myapp /home/.local/bin/myapp
 
1 members found this post helpful.
Old 04-04-2024, 04:07 AM   #562
MickeJ
LQ Newbie
 
Registered: May 2023
Posts: 20

Rep: Reputation: 8
find command has a -exec option! probably late to the party but its a really nice feature i did not know about

search for something AND execute a command on the result of find, also you can use -ok option to prompt for a verification before exec
 
1 members found this post helpful.
Old 04-04-2024, 04:19 AM   #563
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
I think many of us knew about -exec but I personally didn't know about -ok.
 
Old 04-04-2024, 04:47 AM   #564
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
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.
 
1 members found this post helpful.
Old 04-04-2024, 09:12 AM   #565
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Not yet. But gonna learn keybinding browsing with qute browser and run dusk window manager on low spec clambook installation.

Need to learn keybinding. No special reason. Run MC. MOCP. Not a lot of point and click.

Gathering cheat sheets. Hopeing CRS don't stop me.
 
Old 04-19-2024, 01:30 PM   #566
clsgis
Member
 
Registered: Nov 2007
Posts: 37
Blog Entries: 4

Rep: Reputation: 5
pinctrl replaces /sys/class/gpio

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.
 
Old 04-19-2024, 02:37 PM   #567
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
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.
 
Old 04-23-2024, 05:20 AM   #568
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
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.
 
1 members found this post helpful.
Old 04-25-2024, 03:47 AM   #569
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
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!
 
Old Yesterday, 02:57 AM   #570
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
IJL that emacs is a valid ps argument, while vim is not.

 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alright, it's Wednesday. What is something you have learned *new* about Linux within the past 7 days? KGIII General 120 06-15-2021 05:19 AM
What is something new that you have learned about Linux this week? KGIII General 19 05-26-2021 01:51 PM
How do I grep my /var/log/secure file for the past 7 days or so many days? johnmccarthy Linux - Newbie 5 01-04-2013 09:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration