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 #18560 · 24.04.2026 г., 16:50

📰 More ancient Linux device support faces the chop One way to deal with bug hunting LLMs: ditch the old drivers One tactic to deal with LLM-powered vulnerability detection is simple – just speed up the removal of old code. If it's gone, it no longer matters if it's buggy.… 🔗 Source: https://go.theregister.com/feed/www.theregister.com/2026/04/24/ancient_linux_drivers_going/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18549 · 23.04.2026 г., 20:12

📰 Bazzite is what most Linux gaming distros wish they were Choose Bazzite if you want a console-like experience on Linux. 🔗 Source: https://www.xda-developers.com/bazzite-is-what-most-gaming-distros-wish-they-were/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18546 · 23.04.2026 г., 16:00

📰 System76’s New Pangolin Pro Brings Ryzen AI Power to a 3.64 lb Linux Laptop System76 has introduced the Pangolin Pro, a new Linux laptop with Ryzen AI 7 350, a 16-inch 2K 165Hz display, and OCuLink eGPU support. 🔗 Source: https://linuxiac.com/system76-pangolin-pro-linux-laptop/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18543 · 23.04.2026 г., 11:14

📰 Many USB Improvements & New Hardware Merged For Linux 7.1 Ready to go ahead of the Linux 7.1 merge window closing at week's end are numerous new USB device support additions and other USB subsystem enhancements... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-USB #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18535 · 22.04.2026 г., 19:27

📰 Linux is the only OS that respects your aging gaming hardware With the RAM and storage crisis still going strong, all it takes is one look at how much hardware is, and suddenly, your years-old PC perhaps isn't as bad as you first thought. Unfortunately, while your hardware may be capable of rendering newer games just fine, your operating system may be dragging you down. 🔗 Source: https://www.xda-developers.com/linux-is-the-only-os-that-respects-your-aging-gaming-hardware/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18533 · 22.04.2026 г., 16:55

📰 Run Linux apps on Windows 95 with Windows 9x subsystem for Linux Microsoft introduced a Windows Subsystem for Linux (WSL) with Windows 10. Initially it allowed you to run command line Linux utilities in Windows, but over time Microsoft added support for applications with a graphical user interface. But WSL still only officially supports Windows 10 and Windows 11. What if you want to run Linux apps . 🔗 Source: https://liliputing.com/run-native-linux-apps-on-windows-95-with-windows-9x-subsystem-for-linux/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18525 · 22.04.2026 г., 10:37

📰 New GoGra malware for Linux uses Microsoft Graph API for comms A Linux variant of the GoGra backdoor uses legitimate Microsoft infrastructure, relying on an Outlook inbox for stealthy payload delivery. 🔗 Source: https://www.bleepingcomputer.com/news/security/new-gogra-malware-for-linux-uses-microsoft-graph-api-for-comms/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18524 · 22.04.2026 г., 10:03

📰 PipeWire 1.6.4 Improves ALSA Sequencer Port Names, Fixes More Bugs PipeWire 1.6.4 audio/video server for Linux is now available for downlaod with ALSA Sequencer improvements and various bug fixes. 🔗 Source: https://9to5linux.com/pipewire-1-6-4-improves-alsa-sequencer-port-names-fixes-more-bugs #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18521 · 22.04.2026 г., 04:22

📰 F2FS, EXT4 & XFS Focus On Fixes For Linux 7.1 The Flash Friendly File-System (F2FS) updates have been merged for the ongoing Linux 7.1 merge window that will wrap up on Sunday. This follows earlier merges for the XFS and EXT4 drivers too... 🔗 Source: https://www.phoronix.com/news/F2FS-Linux-7.1 #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18517 · 21.04.2026 г., 19:11

📰 Framework Announces Framework Laptop 13 Pro with Touchscreen Display Framework Laptop 13 Pro has been announced today by Framework Computer as a Linux-first notebook with a touchscreen display. 🔗 Source: https://9to5linux.com/framework-announces-framework-laptop-13-pro-with-touchscreen-display #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18515 · 21.04.2026 г., 17:52

📰 AlmaLinux Comments On California Age Verification Law The RHEL-derived AlmaLinux is the latest Linux distribution commenting on the recent age verification laws led by California with their Digital Age Assurance Act... 🔗 Source: https://www.phoronix.com/news/AlmaLinux-Age-Verification-Laws #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #18504 · 21.04.2026 г., 07:06

📰 Valve's new Linux VRAM fix almost triples framerates in some games on the 4GB Radeon RX 6500 XT A little while ago, we saw one of Valve's contractors, Natalie Vock, release a new tool that prevents Linux from stealing your VRAM. Beforehand, when Linux had to free up room on your GPU's VRAM and move stuff to the RAM, it had zero context over which blocks of data were assigned to which apps. As such, it had a tendency to boot the game you're playing off the VRAM to help keep that one random Google Chrome window you have open on the GPU's... 🔗 Source: https://www.xda-developers.com/linuxs-new-vram-saving-feature-almost-triples-the-framerate-in-some-games/ #linux

Hashtags

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