TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #169 · 21 окт.

А знаете ли вы, что в Bash есть особая переменная "$_" ? Из описания можно узнать, что в переменную "$_" помещается последний аргумент последней команды. Что-то знакомое? Конечно, в Python есть примерно тоже самое. Мы знаем, что дата первого релиза Bash (8 июня 1989) несколько раньше чем первый релиз Python (20 февраля 1991). Если учесть, что по задумке автора Python это агрегация самых успешных практик отовсюду, можно ли сказать что именно эта фишка к нему пришла из Bash? Ни подтверждения ни опровержения я пока не нашел. Давайте просто считать это совпадением 😉 А как это может быть полезно в Bash? Приведу простой пример, который оценят те, кто часто работает в терминале. Допустим, нам надо создать директорию и зайти в неё. Что обычно делаем? :~$ mkdir foldername :~$ cd foldername :~/foldername$ Как это сделать в одну команду? :~$ mkdir foldername && cd foldername :~/foldername$ Уже лучше, но хочется короче, без повторов. Вот тут и пригодится наша переменная. Напомню, что в неё сохраняется последний аргумент предыдущей команды. :~$ mkdir foldername && cd $_ :~/foldername$ _________________ PS. Символы "&&"" разделяют команды и означают, что требуется выполнить вторую команду только если первая завершилась успешно. #linux#tricks

Резултати

Пронајдени 1,454 слични објави

Глобално пребарување

Linuxgram 🐧

@linuxgram · Post #18381 · 10.04.2026 г., 16:40

📰 Is a Clanker Being Used to Carry Out AI Fuzzing in the Linux Kernel? Greg Kroah-Hartman appears to be running AI-assisted fuzzing on the kernel. Don't outrage yet, as this may not be a bad thing. 🔗 Source: https://feed.itsfoss.com/link/24361/17316958/linux-kernel-ai-fuzzing #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18378 · 10.04.2026 г., 13:13

📰 More SpacemiT K3 RVA23 SoC Functionality Expected For Linux 7.1 The SpacemiT K3 is exciting as one of the first RISC-V RVA23 designs coming to market. For the Linux 7.0 kernel there is initial K3 support in the mainline kernel while the upcoming Linux 7.1 merge window is expected to land more K3 enablement... 🔗 Source: https://www.phoronix.com/news/More-SpacemiT-K3-For-Linux-7.1 #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18373 · 10.04.2026 г., 09:25

📰Deepin 25.1 Arrives With Linux Kernel 6.18 and New AI Features Deepin 25.1 updates the desktop with Linux kernel 6.18, new UOS AI tools, file manager enhancements, and many fixes. 🔗 Source: https://linuxiac.com/deepin-25-1-arrives-with-linux-kernel-6-18-and-new-ai-features/ #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18360 · 09.04.2026 г., 07:14

📰Linux 7.0 Adds Support For New Keys On Upcoming Laptops For Expanded AI Agent Interactions Since last year the Linux kernel already supported the Microsoft Copilot key appearing on recent laptops to trigger AI agent interactions. That keyboard key is becoming more common but now three additional new keys have been standardized for additional AI integration on future PCs. Merged today for Linux 7.0 is supporting those new standardized keycodes for AI use... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-New-AI-Agent-Keys #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18356 · 08.04.2026 г., 19:11

📰 Little Snitch, the macOS network tool, is now available on Linux A Linux version of Little Snitch, the iconic network monitoring and firewall tool for macOS, has been released. Little Snitch for Linux is written in Rust and uses eBPF for kernel-level traffic interception (which lets sandboxed code run inside the Linux kernel without modifying it). The tool lists processes on your machine making network connections, with options to block them. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/little-snitch-linux #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18338 · 07.04.2026 г., 16:50

📰 Linux's Second-In-Command Turns To New Fuzzing Tools For Uncovering Kernel Bugs Greg Kroah-Hartman, the main Linux stable kernel maintainer and typically viewed as the second-in-command to the Linux kernel development, has turned to new "gregkh_clanker_t1000" fuzzing tooling to help uncover new kernel bugs... 🔗 Source: https://www.phoronix.com/news/Greg-KH-Clanker-Linux-Bugs #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18331 · 07.04.2026 г., 10:48

📰 RISC-V XIP Linux Feature Being Removed After It Keeps Breaking For Months At A Time Introduced in Linux 5.13 back in 2021 was eXecute In Place "XIP" support for RISC-V that allows for the kernel image to be executed from ROM. The intent is on allowing the kernel to run from non-volatile storage like NOR flash that is directly addressable by the CPU and to reduce RAM usage. But after RISC-V XIP support is broken for months at a time, the feature is now set to be retired from the mainline kernel... 🔗 Source: https://www.phoronix.com/news/RISC-V-XIP-Being-Removed #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18326 · 06.04.2026 г., 16:46

📰 Patch to end i486 support hits Linux kernel merge queue After a year of patchwork, maintainers look ready to start retiring 486-class CPUs It's taken nearly a full version number to get the pieces in order, but the long-awaited end of 486 chip support in the Linux kernel appears to be nigh with Linux 7.1's release later this year. … 🔗 Source: https://go.theregister.com/feed/www.theregister.com/2026/04/06/patch_to_end_i486_support/ #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18319 · 06.04.2026 г., 06:52

📰Linux 7.0-rc7 Released With Improved Docs For AI Agents, WiFi Driver Performance Fix Timed for Easter this year is the seventh weekly release candidate for the Linux 7.0 kernel. If all goes well, Linux 7.0 stable will be out next week... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-rc7-Released #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18312 · 04.04.2026 г., 17:02

📰 Razer Wolverine V3 Pro & Betop KP50 Controllers To Be Supported By Linux 7.0 Ahead of tomorrow's Linux 7.0-rc7 kernel release, this week's batch of input fixes were sent in and merged. Besides a few small input fixes are also some new device IDs and quirks for hardware now to be handled by Linux 7.0... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-rc7-Input-Fixes #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18298 · 03.04.2026 г., 15:32

📰 Meta Has A New Linux Optimization To Avoid Throttling TCP Throughput Unnecessarily Meta's great Linux engineering team have been working through some fresh performance optimizations recently from optimizing /proc/interrupts outputs to renewing their investment in jemalloc. A new Linux kernel patch this week provides another optimization to avoid a possible situation of throttling the TCP throughput unnecessarily on Linux systems... 🔗 Source: https://www.phoronix.com/news/Linux-VM-Pressure-TCP-Through #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18271 · 01.04.2026 г., 13:39

📰 The Linux Kernel's Minimum Rust Version Supported Prepares For Rust 1.85 Baseline The Rust-For-Linux crew is preparing to raise the minimum supported Rust version for building the Linux kernel and and similarly also bumping the minimum supported version of bindgen, the tool for generating Rust FFI bindings for C code in the kernel... 🔗 Source: https://www.phoronix.com/news/Linux-Preps-For-Rust-1.85-Base #linux#kernel

12•••5354555657•••100•••121122
ПретходнаСтраница 55 од 122Следна