Python + bash
Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете?
Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно.
Советую обратить своё внимание на очень крутую библиотеку sh.
Что она умеет?
🔸 удобный синтаксис вызова команд как функций
# os
import os
os.system("tar cvf demo.tar ~/")
# subprocess
import subprocess
subprocess.call(['tar', 'cvf', 'demo.tar', '~/'])
# sh
import sh
sh.tar('cvf', 'demo.tar', "~/")
🔸 простое создание функции-алиаса для длинной команды
fn = sh.lsof.bake('-i', '-P', '-n')
output = sh.grep(fn(), 'LISTEN')
в этом примере также задействован пайпинг
🔸 удобный вызов команд от sudo
with sh.contrib.sudo:
print(ls("/root"))
Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера.
А вот вариант с вводом пароля через код.
password = "secret"
sudo = sh.sudo.bake("-S", _in=password+"\n")
print(sudo.ls("/root"))
Это не все фишки. Больше интересных примеров смотрите в документации.
Специально для Windows💀 юзеров
#libs#linux
📰Linux Driver Posted For Intel Silicon Security Engine Interface "ISSEI"
Since Intel Meteor Lake has been the Intel Silicon Security Engine to serve as a silicon root-of-trust for secure firmware loading, boot measurements, and similar functionality. This Intel Silicon Security Engine has been built on with Lunar Lake and Panther Lake as well as set to take on more importance with future Intel hardware platforms.
🔗 Source: https://www.phoronix.com/news/Intel-ISSEI-Linux-Driver
#intel#linux
📰 TUXEDO BM 15 Is an Upgradable Business Linux Laptop with Smartcard and 4G LTE
TUXEDO BM 15 is now available for pre-order as an upgradable business Linux laptop powered by an Intel Core i5 120U, up to 64GB RAM, up to 8 TB SSD, and 4G LTE support.
🔗 Source: https://9to5linux.com/tuxedo-bm-15-is-an-upgradable-business-linux-laptop-with-smartcard-and-4g-lte
#intel#linux
📰 Linux Erroneously Thinks Intel Bartlett Lake CPUs Run At 7GHz
With Intel's recently-launched Bartlett Lake P-core-only processors intended for the embedded market, there is a rather surprising oversight under Linux: the Intel P-State driver reporting a 7.0+ GHz clock speed. While many would yearn for a 7GHz CPU, the Core 9 273PE where this issue was discovered in reality can only boost up to 5.7GHz for its maximum turbo frequency...
🔗 Source: https://www.phoronix.com/news/Intel-Bartlett-Lake-7GHz-Linux
#intel#linux
📰 Intel Core Ultra 5 250K Plus Provides Exceptional Value For Linux Users
After looking at the new Intel Core Ultra 7 270K Plus processor earlier this month with its nice performance evolution for Arrow Lake on Linux, today we are looking at the other new Intel desktop CPU offering: the Core Ultra 5 250K Plus that retails for just $219 USD.
🔗 Source: https://www.phoronix.com/review/intel-core-ultra-5-250k-plus
#intel#linux
📰 Intel Panther Lake & Linux AI/LLM Debates Dominated Q1 For Linux Users
With Q1 wrapping up, here is a look back at the most popular news and reviews for the quarter that excited Linux readers the most. During this quarter on Phoronix were 881 original news articles thus far and 61 featured Linux hardware reviews / multi-page benchmark articles...
🔗 Source: https://www.phoronix.com/news/Q1-2026-Highlights
#linux#intel
📰 Intel Graphics Driver For Linux 7.1 Preps Workaround For Dell XPS Panther Lake Laptop
Sent out today was the latest batch of drm-intel-next changes as feature work toward DRM-Next for Linux 7.1 winds down. This week's drm-intel-next pull is mostly fixes and some low-level code refactoring. The only item really standing out is some new quirk infrastructure for dealing with laptop display panels that may have buggy Panel Replay handling...
🔗 Source: https://www.phoronix.com/news/Intel-Linux-7.1-Panel-Replay
#linux#intel
📰 Intel FRED Can Yield Greater Performance - FRED Benchmarks On Panther Lake
With Intel's new Core Ultra Series 3 "Panther Lake" laptop SoCs, the Xe3-based Arc B390 graphics and much improved CPU performance capture much of the spotlight. One new capability with Panther Lake that isn't featured as much though is the new FRED capability with Flexible Return and Event Delivery. Today's Intel Panther Lake testing is looking at the very interesting performance impact of FRED on Linux.
🔗 Source: https://www.phoronix.com/review/intel-fred-panther-lake
#intel#linux
📰 Intel Xe Linux Driver Ready With Fix For Brand New Lenovo ThinkPad T14 Gen 7 Laptop
This week at MWC 2026, Lenovo announced the ThinkPad T14 Gen 7 as one of their new Intel Core Ultra Series 3 "Panther Lake" powered laptops alongside other products. With Panther Lake running rather well on Linux, the new ThinkPad T14 G7 should be in good standing on Linux and especially with a pending Xe graphics driver fix that is on the way...
🔗 Source: https://www.phoronix.com/news/ThinkPad-T14-Gen-7-Linux-Xe
#linux#intel
📰 Intel's Clear Linux Website No Longer Online
Last July Intel sadly ended their Clear Linux distribution amid cost-cutting measures at the company. Clear Linux for a decade served at the forefront of Linux performance innovations and was consistently the fastest out-of-the-box Linux x86_64 distribution until Intel ended the Linux distribution without any advanced notice for its users. Intel had kept up the ClearLinux.
🔗 Source: https://www.phoronix.com/news/Clear-Linux-Org-No-More
#linux#intel
📰 Intel hiring GPU driver engineers for Linux
It's not just NVIDIA hiring to improve their Linux graphics drivers, as Intel are also looking for multiple new driver engineers.Read the full article on GamingOnLinux.
🔗 Source: https://www.gamingonlinux.com/2026/02/intel-hiring-gpu-driver-engineers-for-linux/
#linux#intel