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 #18102 · 18.03.2026 г., 12:08

📰Manjaro Linux Team Goes on Strike, Threatens to Fork the Project A significant portion of the Manjaro team has signed a manifesto demanding the project split from its parent company and restructure as a non-profit. 🔗 Source: https://feed.itsfoss.com/link/24361/17301403/manjaro-team-strike #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18092 · 17.03.2026 г., 16:58

📰 Linux gaming is "solved" until anti-cheat shows up Linux and third-party anti-cheat clients are like water and oil. 🔗 Source: https://www.xda-developers.com/linux-gaming-is-solved-until-anti-cheat-shows-up/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18077 · 16.03.2026 г., 15:39

📰 I dug into the Flipper One's firmware, and it's not a Flipper Zero sequel — it's a pocket Linux PC The firmware of the Flipper One is already publicly available, and there's a lot of interesting tech. 🔗 Source: https://www.xda-developers.com/dug-into-flipper-one-firmware-not-flipper-zero-sequel/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18076 · 16.03.2026 г., 13:41

📰 SteamOS proved the Linux desktop works when you stop trying to make it look like Windows SteamOS hasn't brought about "the great exodus" to Linux, but it does teach distros how to do it right. 🔗 Source: https://www.xda-developers.com/steamos-proved-the-linux-desktop-works-when-you-stop-trying-to-make-it-look-like-windows/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18050 · 13.03.2026 г., 08:50

📰 TrueNAS Connect Announced For Offering Enterprise Features Without The Hardware Last year TrueNAS unified their SCALE and CORE offerings as part of solidifying their enterprise storage efforts around Linux from their prior FreeBSD base. This year the developers at iXsystems have another change in store with announcing TrueNAS Connect as a new bridge for accessing TrueNAS enterprise storage features without having to invest in their hardware... 🔗 Source: https://www.phoronix.com/news/TrueNAS-Connect-2026 #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18039 · 12.03.2026 г., 08:44

📰 freedesktop Closes Controversial Age Verification API Proposal A proposed age verification interface for Linux desktops has been closed in the freedesktop XDG specs, following strong community feedback. 🔗 Source: https://linuxiac.com/xdg-age-verification-interface-proposal-closed/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18036 · 11.03.2026 г., 22:57

📰 NVIDIA 580.142 Production-Ready Linux Graphics Driver Released with Bug Fixes NVIDIA 580.142 production-ready graphics driver for Linux is now available for download with various bug fixes to improve stability. 🔗 Source: https://9to5linux.com/nvidia-580-142-production-ready-linux-graphics-driver-released-with-bug-fixes #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18035 · 11.03.2026 г., 22:06

📰 SUSE May Undergo Another Ownership Change in Potential $6 Billion Sale According to Reuters, EQT is exploring options to sell SUSE, the enterprise Linux vendor it took private in 2023. 🔗 Source: https://linuxiac.com/suse-linux-may-undergo-another-ownership-change/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18008 · 07.03.2026 г., 18:46

📰Fastfetch 2.60 System Information Tool Adds Moss Package Support Fastfetch 2.60 introduces Zed editor detection, moss package support, and enhanced window manager detection on Linux. 🔗 Source: https://linuxiac.com/fastfetch-2-60-system-information-tool-adds-moss-package-support/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17999 · 06.03.2026 г., 20:48

📰 New ASUS, Dell & OneXPlayer Hardware Support In Linux 7.0-rc3 A pull request sent out today and already merged to Linux Git ahead of Sunday's Linux 7.0-rc3 has some new hardware driver support additions for the likes of ASUS, HP, Dell, and OneXPlayer... 🔗 Source: https://www.phoronix.com/news/Linux-7.0-rc3-Platform-Drivers #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17996 · 06.03.2026 г., 15:40

📰 Transport Fever 3 confirmed for Linux and macOS support The upcoming Transport Fever 3 from Urban Games is due out later this year, and the developers just confirmed more platforms will be supported.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/03/transport-fever-3-confirmed-for-linux-and-macos-support/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17989 · 06.03.2026 г., 08:40

📰Chinese state hackers target telcos with new malware toolkit A China-linked advanced persistent threat actor tracked as UAT-9244 has been targeting telecommunication service providers in South America since 2024, compromising Windows, Linux, and network-edge devices. 🔗 Source: https://www.bleepingcomputer.com/news/security/chinese-state-hackers-target-telcos-with-new-malware-toolkit/ #linux

Hashtags

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