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 #18104 · 18.03.2026 г., 14:48

📰 Linux MGLRU Improvements Net A 30% Increase For MongoDB, More Than 100% On HDDs It's been a while since having any improvements to talk about for the MGLRU multi-gen LRU functionality for the Linux kernel to optimize page reclamation and help with system performance especially when enduring memory pressure. But this week a Tencent engineer posted some very promising patches for further enhancing this kernel feature... 🔗 Source: https://www.phoronix.com/news/Linux-MGLRU-30p-MongoDB #linux#kernel

Linuxgram 🐧

@linuxgram · Post #18067 · 15.03.2026 г., 19:29

📰 Linux 7.0 Lands Improvements To Deal With Upcoming Rust Changes, Build Reproducibility Merged to mainline yesterday for Linux 7.0 were yet more Rust changes in preparing for upcoming Rust releases as well as enhancing the kernel build reproducibility when engaging the Rust code... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-rc4-More-Rust #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18056 · 13.03.2026 г., 22:03

📰Linux 6.12 Through Linux 7.0 File-System Benchmarks For EXT4 + XFS Earlier this month were various Linux 7.0 file-system benchmarks showing how XFS is leading the race in the overall upstream Linux file-system performance on this forthcoming kernel. Stemming from that testing some premium supporters requested a fresh look at the historical performance of XFS as well as EXT4. So today's article is a look at how XFS and EXT4 have performed on every kernel release going back to Linux 6.12 LTS. 🔗 Source: https://www.phoronix.com/review/linux-612-linux-70-xfs-ext4 #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18053 · 13.03.2026 г., 19:00

📰Linux Kernel API Specification Framework Advances Past RFC Stage After going through five rounds of review under a Request For Comments (RFC) flag, today the latest round of Kernel API Specification Framework patches were sent out with the RFC flag removed... 🔗 Source: https://www.phoronix.com/news/Kernel-API-Spec-Framework #kernel#linux

Linuxgram 🐧

@linuxgram · Post #18034 · 11.03.2026 г., 20:31

📰 Linux Patches Make The IPv6 Stack Less Modular To Lower Architectural Burden Currently the Linux IPv6 networking stack can be built into the Linux kernel, built as a loadable kernel module, or not built at all. With proposed patches from a SUSE engineer, the IPv6 networking stack would be limited to being a kernel built-in or not at all. In doing away with IPv6 as a loadable kernel module would allow simplifying some code and lowering the Linux networking maintenance burden... 🔗 Source: https://www.phoronix.com/news/Linux-IPv6-Built-In-Or-Nothing #kernel#linux

Linuxgram 🐧

@linuxgram · Post #17978 · 05.03.2026 г., 13:53

📰 Good News! EA Is Expanding Its Anti-Cheat to ARM64, and Linux Could Be Next Javelin, their kernel-level anti-cheat solution, might be heading to Linux. 🔗 Source: https://itsfoss.com/news/ea-anti-cheat-expansion-plans/ #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17952 · 03.03.2026 г., 13:20

📰 ARCTIC Cooling Publishes ARCTIC Fan Controller Driver For Linux A Linux driver has been published for the ARCTIC Fan Controller to be able to read fan speeds under Linux as well as setting the PWM fan speed for each of the ten fans supported by this controller. Making this driver all the more exciting is that ARCTIC Cooling is directly working on this driver rather than just being a community/third-party creation. Furthermore, ARCTIC Cooling is working on getting this driver to the upstream Linux kernel... 🔗 Source: https://www.phoronix.com/news/ARCTIC-Fan-Controller-Linux #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17945 · 02.03.2026 г., 16:18

📰IPFire 2.29 Core Update 200 Ships Linux Kernel 6.18 LTS IPFire 2.29 Core Update 200 introduces Linux kernel 6.18 LTS and a preview of the new IPFire Domain Blocklist for DNS filtering. 🔗 Source: https://linuxiac.com/ipfire-2-29-core-update-200-ships-linux-kernel-6-18-lts/ #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17943 · 02.03.2026 г., 14:40

📰Armbian 26.2 Introduces Linux kernel 6.18 LTS Images and Imager Upgrades Armbian 26.2 Goa introduces expanded SBC support, Linux 6.18-based images, and continued enhancements for Rockchip and Allwinner platforms. 🔗 Source: https://linuxiac.com/armbian-26-2-introduces-linux-kernel-6-18-lts-images-and-imager-upgrades/ #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17929 · 28.02.2026 г., 14:18

📰 Your Linux LTS Kernel Will Be Supported Longer Than You Thought More breathing room for distros and enterprise Linux users as LTS kernels get extended EOL dates. 🔗 Source: https://itsfoss.com/news/linux-lts-kernel-support-extension/ #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17919 · 27.02.2026 г., 16:05

📰 Numerous AMDXDNA Ryzen AI Driver Fixes For Linux 7.0-rc2 Sent out today were all of the DRM/accel driver fixes for the week, ahead of the Linux 7.0-rc2 kernel release due out on Sunday... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-rc2-DRM-Fixes #linux#kernel

Linuxgram 🐧

@linuxgram · Post #17902 · 26.02.2026 г., 15:18

📰 RK3588 and RK3576 video decoders support merged in the upstream Linux Kernel Support for Rockchip’s VDPU381 and VDPU383 decoders is now upstream in Linux, bringing mainline H.264/HEVC decode support, robust IOMMU-reset recovery, and new HEVC V4L2 UAPI controls aligned with Vulkan Video. 🔗 Source: https://www.collabora.com/news-and-blog/news-and-events/rk3588-and-rk3576-video-decoders-support-merged-in-the-upstream-linux-kernel.html #linux#kernel

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