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 #18572 · 26.04.2026 г., 05:53

📰 Void Linux Switches Main NVIDIA Package to Open Kernel Modules Void Linux now uses NVIDIA’s open DKMS kernel modules in its main NVIDIA package, starting with the 595.xx driver series. 🔗 Source: https://linuxiac.com/void-linux-switches-main-nvidia-package-to-open-kernel-modules/ #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18566 · 25.04.2026 г., 12:04

📰 New NTFS Driver Sees A Number Of Fixes Ahead Of Linux 7.1-rc1 With the Linux 7.1-rc1 kernel release due out tomorrow to cap off the Linux 7.1 merge window, one of the most notable additions this cycle is the introduction of the new NTFS driver that aims to provide better performance and more modern features than the existing NTFS3 in-kernel driver that was originally contributed by Paragon Software... 🔗 Source: https://www.phoronix.com/news/New-NTFS-Driver-Fixes-Linux-7.1 #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18562 · 24.04.2026 г., 19:39

📰 Farewell ISDN, Ham Radio & Old Network Drivers: Linus Torvalds Merges 138k L.O.C. Removal Linus Torvalds did it! He merged the pull request to rid the Linux kernel of the old Integrated Services Digital Network (ISDN) subsystem and various other old network drivers largely for PCMCIA era network adapters. This was the code suggested for removal given the recent influx of AI/LLM-generated bug reports against this dated code that likely has no active upstream users remaining... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-Removes-Old-Net #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18554 · 24.04.2026 г., 10:44

📰 Pull Request For Linux To Remove Old Network Drivers, ISDN Subsystem Due To AI/LLM Noise It was just days ago we reported on a proposal to drop old network drivers due to AI-driven bug reports becoming a burden on upstream kernel developers. Last night that culminated with an initial pull request to clear out some old, unused networking drivers plus also clearing out the entire ISDN subsystem and more... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-PR-Remove-Old-Net #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18532 · 22.04.2026 г., 16:54

📰 KMSCON Continues Improving For VT Terminal Emulator In User-Space KMSCON 9.3.4 is out today for this virtual terminal (VT) emulator in user-space that runs atop the Linux DRM/KMS APIs for those wanting to enjoy a CONFIG_VT=n Linux kernel experience... 🔗 Source: https://www.phoronix.com/news/KMSCON-9.3.4-Released #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18531 · 22.04.2026 г., 16:09

📰 Linux Kernel 6.19 Reaches End of Life, It’s Time to Upgrade to Linux Kernel 7.0 Linux kernel 6.19 reached end of life and all users are now recommended to upgrade their systems to the latest Linux 7.0 kernel series as soon as possible. 🔗 Source: https://9to5linux.com/linux-kernel-6-19-reaches-end-of-life-its-time-to-upgrade-to-linux-kernel-7-0 #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18528 · 22.04.2026 г., 14:44

📰 Many Great Networking Improvements Arrive In Linux 7.1 Merged recently to Linux Git were the big set of networking changes for the Linux 7.1 kernel... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-Networking #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18519 · 21.04.2026 г., 21:39

📰 Linux May Drop Old Network Drivers Now That AI-Driven Bug Reports Are Causing A Burden Old network maintenance drivers are becoming a maintenance burden in the era of fuzzing and predominantly AI-driven bug detection causing an uptick in possible bug/security reports to upstream Linux kernel developers but with these drivers potentially having no actual users... 🔗 Source: https://www.phoronix.com/news/Linux-Old-Network-AI #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18502 · 20.04.2026 г., 21:23

📰 While New NTFS Driver Merged, NTFS3 Driver Sees Fixes & Minor Changes For Linux 7.1 Last week saw the "NTFS resurrection" as Linux Torvalds put it with the new/overhauled NTFS driver having been merged for Linux 7.1. Even still, the NTFS3 driver that was contributed a few years ago by Paragon Software remains in the mainline kernel and today were some fixes/improvements merged for that existing driver... 🔗 Source: https://www.phoronix.com/news/NTFS3-Linux-7.1 #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18499 · 20.04.2026 г., 14:04

📰 A Lot Of Memory Management "MM" Improvements Merged For Linux 7.1 Andrew Morton recently sent out his various "MM" related pull requests for the ongoing Linux 7.1 kernel. There are a number of memory management optimizations in this next kernel version, which is always nice to see but all the more so these days with the inflated RAM pricing and other computer component prices... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-MM #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18493 · 20.04.2026 г., 05:02

📰 CachyOS just shipped Linux 7.0, and it has some extra performance tweaks added to the mix After a few worrying release candidates, Linus released the Linux 7.0 kernel a few days ago. While there seemed to be more bug fixes than usual during the preview builds, Linus felt that the changes were small enough not to warrant a delay. He also believes the increase in fixes was due to AI assistants getting better at finding problems in the code, which is valid. 🔗 Source: https://www.xda-developers.com/cachyos-just-shipped-linux-70-and-it-has-some-extra-performance-tweaks-added-to-the-mix/ #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18477 · 18.04.2026 г., 09:35

📰 The "NTFS Resurrection" Has Occurred For Linux 7.1 As a very exciting follow-up to the recent article around the new NTFS driver being submitted for Linux 7.1 to address the shortcomings of the current Paragon NTFS3 driver and the prior read-only NTFS kernel driver, that work has been merged!... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-New-NTFS-Driver #kernel#linux

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