Open-source News

Parse command-line arguments with argparse in Python

opensource.com - Mon, 08/16/2021 - 15:00

There are several third-party libraries for command-line argument parsing, but the standard library module argparse is no slouch either.

Without adding any more dependencies, you can write a nifty command-line tool with useful argument parsing.

Argument parsing in Python

When parsing command-line arguments with argparse, the first step is to configure an ArgumentParser object. This is often done at the global module scope since merely configuring the parser has no side effects.


read more

13 Basic Cat Command Examples in Linux

Tecmint - Mon, 08/16/2021 - 13:54
The post 13 Basic Cat Command Examples in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

The cat (short for “concatenate“) command is one of the most frequently used commands in Linux/Unix-like operating systems. cat command allows us to create single or multiple files, view content of a file, concatenate

The post 13 Basic Cat Command Examples in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories

Tecmint - Mon, 08/16/2021 - 12:05
The post 10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories first appeared on Tecmint: Linux Howtos, Tutorials & Guides .

The Linux “du” (Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The du command has many parameter options that can

The post 10 Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories first appeared on Tecmint: Linux Howtos, Tutorials & Guides.

Linux 5.14-rc6 Released After Another Good Week

Phoronix - Mon, 08/16/2021 - 08:16
Linus Torvalds has released Linux 5.14-rc6 as the latest weekly test release of Linux 5.14 that should go gold around the end of August...

SilverStone TP04 M.2 SSD Cooling

Phoronix - Mon, 08/16/2021 - 02:41
With proper heatsinks becoming all the more important with speedy PCI Express 4.0 NVMe SSDs to avoid thermal throttling, SilverStone has been among the vendors offering after-market aluminum heatsinks designed for M.2 2280 drives. The SilverStone TP04 is a simple but effective aluminum alloy SSD cooling kit for about $17 USD.

Apple M1 PCIe Driver Under Review For The Linux Kernel

Phoronix - Mon, 08/16/2021 - 00:16
While Linux 5.12 saw initial support merged for the Apple M1, it was quite the basic support with more robust support still to come. Besides the graphics support being a large work-in-progress, one of the areas now coming about is the new PCI Express driver that is necessary for supporting more functionality of this driver...

Grep 3.7 Released To Fix "Extreme Performance Degradation"

Phoronix - Sun, 08/15/2021 - 19:00
If you have noticed grep regressing performance-wise in recent releases, you may want to upgrade to GNU Grep 3.7 released this weekend as it fixes a nasty performance regression...

OpenRazer 3.1 Released With Support For More Razer Devices

Phoronix - Sun, 08/15/2021 - 18:24
OpenRazer 3.1 is now available as the newest version of this open-source, third-party solution for enabling Razer devices under Linux...

Schedule a task with the Linux at command

opensource.com - Sun, 08/15/2021 - 15:00

Computers are good at automation, but not everyone knows how to make automation work. It's a real luxury, though, to be able to schedule a task for a computer at a specific time and then forget about it. Maybe you have a file to upload or download at a specific time, or you need to process a batch of files that don't yet exist but are guaranteed to exist by a certain time or a setting that needs monitoring, or maybe you just need a friendly reminder to pick up bread and butter on the way home from work.


read more

Linux Turning Off The Light - The LightNVM Subsystem To Be Removed

Phoronix - Sun, 08/15/2021 - 14:00
Merged to the mainline Linux kernel six years ago was the LightNVM subsystem as part of Linux 4.4 LTS around "Open-Channel SSDs". That LightNVM code is now slated for removal with the upcoming Linux 5.15 cycle...

Debian 11 "Bullseye" Released

Phoronix - Sun, 08/15/2021 - 07:15
Debian 11 "Bullseye" has been officially released now after just over two years in development...

Pages