Feed aggregator
A Bash Script to Read All Command Line Arguments into an Array: Simplify Argument Handling
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
How to Pin Versions in Yum or Dnf for RHEL or CentOS Linux
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
How to perform find and replace operations within a visual selection in Vim
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
How to find hidden processes and ports on Linux/Unix/Windows
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
How to add bash auto completion in Debian Linux
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
How to add cron job entry for acme.sh
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
How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide
{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
How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide
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
How to configure AWS SES with Postfix MTA on Debian Linux
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
The repository ‘http://deb.debian.org/debian buster-backports Release’ no longer has a Release file.
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
How do I find out my timezone in Linux?
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
How to use the Sed command - Network World
How to use the Sed command Network World
Categories: Linux
Want To Go To College? Pay the College Board
The College Board, described as a $2 billion nonprofit, functions as the primary gatekeeper for academic success within American higher education, according to an analysis by Bloomberg. The organization significantly shapes university admissions by controlling not only who gains entry to college but also influencing what students know upon arrival.
This central role in managing and defining higher education admissions positions the Board uniquely. The story adds: The College Board writes the curriculum for 40 AP courses, administers and grades the exams, oversees the PSAT and SAT, and offers a variety of free and paid resources to help prepare for the courses and tests. Many students will wind up paying the company north of $1,000 over the course of their high school career. "If the same people can create the content and create the tests, that's a really great business model where you've got the whole public secondary education system wrapped up in one little company," says Jon Boeckenstedt, the vice provost of enrollment management at Oregon State University and a prominent critic of the College Board.
Housing so many parts of the high school experience under one roof has made the New York-based organization immensely wealthy, with more than $1 billion in annual revenue -- on which it pays no taxes as a 501(c)(3) nonprofit. But mere money isn't the biggest source of the College Board's might. Twelve decades after its creation, it's now the closest thing the fragmented American educational system has to a central governing body, with a huge amount of authority over what students are expected to know when they get to college. Higher education is arguably the most important driver of social mobility, as well as the most powerful force in selecting which members of the next generation will set the political and cultural agenda. By controlling who gets in and what they know when they get there, the College Board has become the chief gatekeeper of academic success in America.
Read more of this story at Slashdot.
Both Haiku and Linux get new FOSS Nvidia drivers - The Register
Both Haiku and Linux get new FOSS Nvidia drivers The Register
Categories: Linux
New AI-powered weather forecasts are coming to people across Africa.New AI-powered weather forecasts are coming to people across Africa.Research Engineer
Today, Google announced new short-term precipitation forecasts are now available across Africa in Search. This expands upon our work to use machine learning to tackle th…
Categories: Technology
FTC Tells Staff To Stop Calling the Agency 'Independent' in Complaints
An anonymous reader shares a report: Staff at the Federal Trade Commission have been instructed to no longer refer to the agency as "independent" in complaints, according to an email obtained by The Verge.
Read more of this story at Slashdot.
GNOME 48 & KDE Plasma 6.3 Delivering Great Wayland Desktop Experience On Ubuntu 25.04 For Linux Gaming - Phoronix
Categories: Linux
75% of Scientists in Nature Poll Weigh Leaving US
A Nature survey has found that three-quarters of responding U.S. scientists are considering leaving the nation following disruptions to science under the Trump administration.
Out of 1,608 respondents, 75.3% said they were contemplating leaving the country. Scientists cited concerns over research funding and the general treatment of science as contributing factors for their reasoning. Europe and Canada were mentioned as potential destinations for those looking for opportunities abroad.
Read more of this story at Slashdot.
New Ubuntu Linux security bypasses require manual mitigations - BleepingComputer
New Ubuntu Linux security bypasses require manual mitigations BleepingComputer
Categories: Linux
Microsoft President Calls For a National Talent Strategy For Electricians
theodp writes: "As I prepared for a White House meeting last fall on the nation's electricity needs," begins Microsoft President Brad Smith in The Country Needs More Electricity --And More Electricians, a Fox Business op-ed. "I met with the leaders at Microsoft who are building our AI infrastructure across the country. During our discussion, I asked them to identify the single biggest challenge for data center expansion in the U.S. I expected they would mention slow permitting, delays in bringing more power online or supply chain constraints -- all significant challenges. But instead, they highlighted a national shortage of people. Electricians, to be precise."
Much as Smith has done in the past as he declared crisis-level shortages of Computer Science, cybersecurity, and AI talent, he's calling for the nation's politicians and educators to step up to the plate and deliver students trained to address the data center expansion plans of Microsoft and Big Tech.
"How many new electricians must the U.S. recruit and train over the next decade?" Smith asks. "Probably half a million. [...] The good news is that these are good jobs. The bad news is that we don't have a national strategy to recruit and train the people to fill these jobs. Given the Trump administration's commitment to supporting American workers, American jobs and American innovation, we believe that recruiting and training more electricians should rise to its list of priorities. There are several ways to address this issue, and they deserve consideration. For example, we need to do more as a nation to revitalize the industrial arts and shop classes in American high schools. [...] This should be a priority for local school boards, state governors and appropriate federal support. [..] We must also adopt a broad perspective on where new technology is taking us. The tech sector is most often focused on computer and data science -- people who code. But the future will also be built in critical ways by a new generation of engineers, electricians, plumbers, pipefitters, iron workers, carpenters and other skilled trades. So, is 'Learn to Wire' the new 'Learn to Code'?
Read more of this story at Slashdot.
