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 have learned that my (?) Linux distro has a native hash checking utility with many options.
They are normally different programs. shasum uses to be implemented in Perl, md5sum appears to be a C-program.
Code:
brillat@savarin:~$ man md5sum
Quote:
BUGS
Do not use the MD5 algorithm for security related purposes. Instead,
use an SHA-2 algorithm, implemented in the programs sha224sum(1),
sha256sum(1), sha384sum(1), sha512sum(1), or the BLAKE2 algorithm, im‐
plemented in b2sum(1)
Just learned about csplit, thanks to shruggy in the programming forum. Very good to know about this when uploading multiple files in one text file, as is commonly done in the programming forum.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,802
Rep:
Emergency print kludge
While I was working on a system and wanted a hard copy of a config file to compare to another system's, I discovered that no print queues had ever been set up. And... the CUPS config software crashed while trying to set one up (now I know why no queues). Yes, I could have sftped that config file to another system with a working print queue but that gets old fast -- and I always forget to get rid of those copies -- then I thought: Ah ha! netcat!
It appears to hang when the above command is issued but when you enter Ctrl-C, the printer kicks into action. No fancy printing (and maybe not duplexed even if the printer supports it) but works in a pinch.
I use the following which allows passing options to the printer. Needs ssh authentication but as with the netcat solution is also just a one liner (no scp, ssh, lpr, rm, exit).
Parameter Expansion in Bash (or probably all major shells) is amazing! I've used some parameter expansion in the past while manipulating text but this week I dove in to learn more. Time well spent!
Parameter Expansion in Bash (or probably all major shells) is amazing! I've used some parameter expansion in the past while manipulating text but this week I dove in to learn more. Time well spent!
Personally I dislike hello world examples. It is of no use - so one cant easy memorize learned features. I think even difficult examples are better. Not easy to understand them - but once you do - whoooa - that expression of full amazement. And from now on it sits in head. That whoooaaa moment is an anchor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.