Feed aggregator
If you are writing a Bash shell script, you should read command-line arguments into an array for some time. This allows us to process any number of arguments provided when the script is run. This makes the script adaptable to different use cases. Instead of dealing with fixed variables like $1, $2, $3, etc., you can work with any number of arguments more dynamically using bash for loop or bash while loop, depending upon your needs. Arrays make it simple to loop through each argument and perform operations on them, whether basic printing or complex processing. Bash provides a mapfile (readarray command) internal built-in command to read lines from a file into an array variable. Let us see how to use mapfile to read all command line arguments into an array.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post A Bash Script to Read All Command Line Arguments into an Array: Simplify Argument Handling appeared first on nixCraft.
2024-05-07T10:40:08Z
2024-05-07T10:40:08Z
Vivek Gite
CentOS, RHEL (Red Hat Enterprise Linux), Fedora and other clones of RHEL, such as Oracle, Alma, and Rocky, offer support for version pinning. This feature allows developers and system administrators to lock a particular package to a specific version, preventing it from being automatically updated by yum or dnf commands. Sometimes, it is necessary to protect packages from being updated to newer versions to avoid incompatibility issues with your applications. For example, you can lock down PHP version 8.3.6 and avoid using updated PHP version 8.4. Let us see how to lock a package to a specific version, only exclude a package from yum update or dnf update on a CentOS, RHEL, Fedora, and friends.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to Pin Versions in Yum or Dnf for RHEL or CentOS Linux appeared first on nixCraft.
2024-05-07T09:01:47Z
2024-05-07T09:01:47Z
Vivek Gite
Here's a quick tip for vim users. You can perform find and replace operations within a visual selection in Vim for text or code block. Visual selection for finding and replacing text in Vim allows developers and Linux/Unix users precise and efficient text editing. It's handy when you want to change specific portions of text or code blocks within a larger file without affecting other occurrences. This method required to minimizing manual search and reducing the risk of unintended code or text modifications. Let us see how to find and replace in Vim visual mode selection.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to perform find and replace operations within a visual selection in Vim appeared first on nixCraft.
2024-05-07T06:14:33Z
2024-05-07T06:14:33Z
Vivek Gite
Unhide is a little handy forensic tool to find hidden processes and TCP/UDP ports by rootkits / LKMs or by another hidden technique. This tool works under Linux, Unix-like system, and MS-Windows operating systems.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to find hidden processes and ports on Linux/Unix/Windows appeared first on nixCraft.
2024-05-07T05:05:51Z
2024-05-07T05:05:51Z
Vivek Gite
Bash is a command language interpreter compatible with sh. It can execute commands read from a file or keyboard. On Debian Linux, bash-completion is a set of shell functions that uses Bash's programmable completion feature. This page provides instructions on installing and enabling Bash auto-completion on Debian Linux versions 10, 11, and 12 to increase productivity by writing custom bash code.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to add bash auto completion in Debian Linux appeared first on nixCraft.
2024-05-06T15:51:25Z
2024-05-06T15:51:25Z
Vivek Gite
Recently, I had a learning experience with cron jobs and acme.sh. acme.sh is an excellent tool that simplifies the management of Let's Encrypt TLS (SSL) certificates. It makes obtaining and renewing these essential security certificates for your web server easier.
Recently, I moved my server from Linode to AWS, which was a new environment for me. Initially, everything appeared to be working correctly, and I assumed everything was running smoothly. However, I forgot to migrate the cron job that acme.sh uses to renew the certificate automatically.
This oversight caused my Let's Encrypt certificates to expire, resulting in security warnings and potential disruptions for visitors to my website. Opps!
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to add cron job entry for acme.sh appeared first on nixCraft.
2024-05-03T06:43:12Z
2024-05-03T06:43:12Z
Vivek Gite
{nixCraft Patreon supporters content}Below is a sneak peek of this content! Ubuntu 24.04 LTS (Noble Numbat) was launched on April 25th, 2024. This new version will be supported for five years until June 2029. The armhf architecture now provides support for the Year 2038 problem. The upgrades include significant updates to core packages like Linux kernel, systemd, Netplan, […]The post How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide appeared first on Opensource Flare✨.
2024-04-26T18:25:08Z
2024-04-26T18:25:08Z
Vivek Gite
Ubuntu 24.04 LTS (Noble Numbat) was launched on April 25th, 2024. This new version will be supported for five years until June 2029. The armhf architecture now provides support for the Year 2038 problem. The upgrades include significant updates to core packages like Linux kernel, systemd, Netplan, toolchain upgrades for better development support, enhanced security measures, and performance optimizations. It also has an updated GNOME desktop environment and other default applications. Let us see how to upgrade Ubuntu 22.04 LTS to Ubuntu 24.04 LTS using the CLI over ssh-based session.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide appeared first on nixCraft.
2024-04-26T08:33:21Z
2024-04-26T08:33:21Z
Vivek Gite
AWS SES (Amazon Simple Email Service) is a cloud-based email-sending service that is both reliable and cost-effective. This service is offered by Amazon Web Services. Postfix is a popular email server for Debian and Unix-like systems. It is an open-source Mail Transfer Agent (MTA) responsible for routing and delivering emails. Debian Linux is a widely used Linux distribution known for its stability and user-friendliness for server usage. Let us see how to integrate AWS SES with the Postfix MTA on Debian Linux version 11/12.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How to configure AWS SES with Postfix MTA on Debian Linux appeared first on nixCraft.
2024-04-19T07:04:06Z
2024-04-19T07:04:06Z
Vivek Gite
When you run the sudo apt update, you may see the following message or error on a Debian Linux:
Err:5 http://deb.debian.org/debian buster-backports Release
404 Not Found [IP: 146.75.34.132 80]
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Here is how to fix this issue.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post The repository ‘http://deb.debian.org/debian buster-backports Release’ no longer has a Release file. appeared first on nixCraft.
2024-04-14T20:42:01Z
2024-04-14T20:42:01Z
Vivek Gite
You can find the timezone in Linux using the command line. The easiest way to do this is to type the "timedatectl" command and look for the "timezone" line when using modern Linux distros with systemd. There are other commands and ways to temporarily switch to a new timezone for date calculations.
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit
The post How do I find out my timezone in Linux? appeared first on nixCraft.
2024-04-06T01:06:44Z
2024-04-06T01:06:44Z
Vivek Gite
Phoronix's Michael Larabel is "reliving some of the best moments for Fedora Linux in 2025" by highlighting the year's most popular news around the distro. Throughout 2025, Fedora continued to lead upstream Linux innovation with bold changes like Wayland-only GNOME, newer kernels, architecture cleanups, and experimental features -- while openly grappling with controversial shifts such as dropping 32-bit support and modernizing long-standing subsystems.
"Fedora Linux this year continued in punctually shipping the very latest upstream Linux innovations from the freshest Wayland components to Linux kernel features and continuing to leverage other improvements in the open-source world," writes Larabel. "Fedora enjoyed the successful Fedora 42 and Fedora 43 releases this year, including going with Wayland-noly GNOME and further phasing of 32-bit packages. Fedora's KDE spin continued improving too and the Red Hat sponsored Linux distribution enjoyed a wealth of other improvements this year."
Read more of this story at Slashdot.
Phoronix's Michael Larabel is "reliving some of the best moments for Fedora Linux in 2025" by highlighting the year's most popular news around the distro. Throughout 2025, Fedora continued to lead upstream Linux innovation with bold changes like Wayland-only GNOME, newer kernels, architecture cleanups, and experimental features -- while openly grappling with controversial shifts such as dropping 32-bit support and modernizing long-standing subsystems.
"Fedora Linux this year continued in punctually shipping the very latest upstream Linux innovations from the freshest Wayland components to Linux kernel features and continuing to leverage other improvements in the open-source world," writes Larabel. "Fedora enjoyed the successful Fedora 42 and Fedora 43 releases this year, including going with Wayland-noly GNOME and further phasing of 32-bit packages. Fedora's KDE spin continued improving too and the Red Hat sponsored Linux distribution enjoyed a wealth of other improvements this year."
Read more of this story at Slashdot.
Longtime Slashdot reader theodp writes: MacRumors reports that Apple plans to expand iPhone and Apple Watch driver's licenses to 7 U.S. states (CT, KY, MS, OK, UT, AR, VA). A recent convert is the State of Illinois, whose website videos demo how you can use your Apple Wallet license to display proof of identity or age the next time you get carded by a cop, bartender, or TSA agent. The new states will join 13 others who already offer driver's licenses in the Wallet app (AZ, MD, CO, GA, OH, HI, CA, IA, NM, MT, ND, WV, IL).
There's certainly been a lot of foot-dragging by the states when it comes to embracing phone-based driver's licenses -- Slashdot reported that Iowa was ready to launch a mobile driver's license in 2014; they didn't get one until nearly a decade later, in late 2023.
Read more of this story at Slashdot.
An anonymous reader quotes a report from Bloomberg: Most people use dating apps to find love. Tiffany Chau used one to hunt for a summer internship. This fall, the 20-year-old junior at California College of the Arts tailored her Hinge profile to connect with people who could offer job referrals or interviews. One match brought her to a Halloween party, where she networked in hopes of landing a product-design internship for the summer. While there, she got some tips from someone who had recently interviewed at Accenture. As for the connection with her date? Not so much. "I feel like my approach to the dating apps is it being another networking platform like everything else, like Instagram or LinkedIn," Chau said.
Chau is among a cadre of workers who are using dating apps to boost their job searches. They're recognizing that the online job hunt is broken as unemployed workers flood the system, AI screens out resumes and many job matching programs are overwhelmed. Automation has squeezed human contact out of hiring, which has pushed applicants to seek any path to a live hiring manager, no matter the means.
The overall US unemployment rate continued to climb throughout 2025, reaching 4.6%, according to the Bureau of Labor Statistics. And while the number of unemployed high school graduates held steady at about 4.4% in November, the rate for workers with a bachelor's degree rose to 2.9% from 2.5% a year ago. About a third of dating app users said they had sought matches for job hook-ups, according to a ResumeBuilder.com survey of about 2,200 US dating site customers in October. Two-thirds targeted potential paramours who worked at a desirable employer. Three-quarters said they matched with people working in roles they wanted. "People are doing it to expand their networks, make connections, because the best way to get a job today is who you know," said Stacie Haller, ResumeBuilder.com's chief career advisor. "Networking is the only way people are rising above the horror show that the job search is today."
Read more of this story at Slashdot.
Get a $15 Lyft ride credit if you link your Atmos Rewards (Alaska/Hawaiian Airlines) and Lyft accounts for the first time before 1/14/26. Lyft ride credits will be awarded within 5 days of the end of the Promotional Period and expire on January 31, 2026 at 11:59PM PT. Just did it, was easy enough.
If you pick Atmos as your rewards earning partner on Lyft, you get:
- 2 Atmos points per $1 spent on everyday Lyft rides including Standard, Priority Pickup, and XL rides.
- 3 Atmos points per $1 spent on airport rides and elevated Lyft rides including Extra Comfort, Black, and Black SUV rides.
- Work rides earn double points – With Lyft Business Rewards, eligible riders can earn 4-6 points per $1 spent on business profile rides vs. 2-3 points on personal rides.
Fine print:
Eligible Members who link their Atmos Rewards and Lyft accounts for the first time during the Promotional Period will receive a $15 Lyft ride credit. “Eligible Members” means Atmos Rewards Members who have linked their Atmos Rewards and Lyft accounts on alaskalyft.com during the Promotional Period and have selected “Atmos Rewards by Alaska and Hawaiian” as their active partner in the ‘Rewards’ section of the Lyft App at the time the Lyft ride credit is deposited. “Promotional Period” means December 17, 2025, at 12:01am PT to January 14, 2026, at 11:59pm PT. The Lyft ride credit is eligible to be used on any Lyft ride type, excluding bicycle and scooter rides. Valid only in the United States (including Puerto Rico). Members who linked their Atmos Rewards and Lyft accounts prior to the Promotional Period are not eligible for a $15 retroactive ride credit. Lyft ride credits will be awarded within 5 days of the end of the Promotional Period and expire on January 31, 2026 at 11:59PM PT. This offer may be modified, suspended, or terminated at any time without notice.
OpenAI is offering a $555,000 salary (plus equity) to recruit a new "head of preparedness," a high-pressure role tasked with anticipating and mitigating extreme AI risks. "This will be a stressful job, and you'll jump into the deep end pretty much immediately," said Sam Altman as he launched the hunt to fill "a critical role" to "help the world." The Guardian reports: In what may be close to the impossible job, the "head of preparedness" at OpenAI will be directly responsible for defending against risks from ever more powerful AIs to human mental health, cybersecurity and biological weapons. That is before the successful candidate has to start worrying about the possibility that AIs may soon begin training themselves amid fears from some experts they could "turn against us."
The successful candidate will be responsible for evaluating and mitigating emerging threats and "tracking and preparing for frontier capabilities that create new risks of severe harm." Some previous executives in the post have lasted only for short periods. Altman said on X as he launched the job search: "We have a strong foundation of measuring growing capabilities, but we are entering a world where we need more nuanced understanding and measurement of how those capabilities could be abused, and how we can limit those downsides both in our products and in the world, in a way that lets us all enjoy the tremendous benefits. These questions are hard and there is little precedent."
One user responded sardonically: "Sounds pretty chill, is there vacation included?" What is included is an unspecified slice of equity in OpenAI, a company that has been valued at $500 billion.
Read more of this story at Slashdot.
Nvidia has completed its previously announced $5 billion investment in Intel, buying over 214 million shares at a fixed price after the deal received clearance from Federal Trade Commission. "The leading AI chip designer said in September it would pay $23.28 per share for Intel common stock, in a deal that is seen as a major financial lifeline for the chipmaker after years of missteps and capital intensive production capacity expansions drained its finances," reports Reuters.
Read more of this story at Slashdot.
|