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 #18730 · 09.05.2026 г., 22:04

📰 Aurora is the KDE side of Bluefin, and it might be the most polished Linux desktop right now I'm a huge fan of Linux's KDE. It's my favorite desktop environment by far, and sometimes, simply learning that an OS uses KDE is enough of an excuse to give it a try. So, when I heard that the Bluefin distro had a KDE fork called Aurora, I knew I had to give it a try. 🔗 Source: https://www.xda-developers.com/aurora-is-the-kde-side-of-bluefin-and-it-might-be-the-most-polished-linux-desktop-right-now/ #distro#kde#linux

Linuxgram 🐧

@linuxgram · Post #18762 · 12.05.2026 г., 20:01

📰 Further expanded AMD HDMI 2.1 support is coming to Linux now with FRL and DSC Good news for Linux gamers and the upcoming Steam Machine, as it appears the AMD GPU kernel drivers are expanding their HDMI 2.1 support even further.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/05/further-expanded-amd-hdmi-2-1-support-is-coming-to-linux-now-with-frl-and-dsc/ #amd#kernel#linux#steam

折腾实验室频道

@TossLabChannel · Post #166 · 17.11.2024 г., 03:25

#Linux#Debian Debian 12.8 Bookworm (书虫) 正式版镜像更新 说到 Linux 操作系统,很多人都听过 Ubuntu、CentOS、Fedora、RedHat,国产的优麒麟和Deepin 深度等系统。除了这些,还有一个极具代表性的操作系统,它就Debian! Debian (英语发音:ˈdɛbiən) 作为最老牌的 Linux 发行版之一,它在创建之初便紧密遵循 GNU 规范并坚守 Unix 和开源自由软件精神。最大优点是极其稳定快速,同时拥有强大的 APT 包管理机制和丰富的软件源,可方便安装和平滑升级软件和系统,省去很多编译安装的麻烦…… ❤️不想错过每个我精心推荐内容,请打开 #频道通知,你的 #阅读#点赞#转发 便是我发帖的最大动力! 📢 群聊: @TossQL 🎈 频道: @TossQLChannel 本频道主要折腾分享 #青龙面板, #签到任务, #Docker, #VPS服务器, #github有趣项目

Linuxgram 🐧

@linuxgram · Post #18701 · 07.05.2026 г., 14:53

📰 Archinstall 4.2 Shifts to Wayland-First Profiles, Leaving X.Org Behind by George WhittakerThe Arch Linux installer continues evolving alongside the broader Linux desktop ecosystem. With the release of Archinstall 4.2, a notable change has arrived: Wayland is now the default focus for graphical installation profiles, while traditional X.Org-based profiles have been removed or deprioritized. 🔗 Source: https://www.linuxjournal.com/content/archinstall-42-shifts-wayland-first-profiles-leaving-xorg-behind #arch#linux#wayland

Linuxgram 🐧

@linuxgram · Post #18538 · 23.04.2026 г., 04:05

📰 Archinstall 4.2 Shifts to Wayland-First Profiles, Leaving X.Org Behind by George WhittakerThe Arch Linux installer continues evolving alongside the broader Linux desktop ecosystem. With the release of Archinstall 4.2, a notable change has arrived: Wayland is now the default focus for graphical installation profiles, while traditional X.Org-based profiles have been removed or deprioritized. 🔗 Source: https://www.linuxjournal.com/content/archinstall-42-shifts-wayland-first-profiles-leaving-xorg-behind #arch#linux#wayland

Linuxgram 🐧

@linuxgram · Post #18686 · 06.05.2026 г., 06:52

📰 Flatpak 1.17.7 To Track The Age Of Configurations For Providing Much Better Performance Flatpak 1.17.7 is now available for continuing to advance open-source app sandboxing and distribution on the Linux desktop. Some interesting new features are in tow with this Flatpak update plus there is also an updated XDG-Desktop-Portal release too... 🔗 Source: https://www.phoronix.com/news/Flatpak-1.17.7-Released #flatpak#linux#opensource

Linuxgram 🐧

@linuxgram · Post #18349 · 08.04.2026 г., 11:26

📰 Arch Linux Users Can Now Upgrade to GNOME 50 GNOME 50 is now available for Arch Linux users, bringing the latest desktop release to systems ready for upgrade. 🔗 Source: https://linuxiac.com/arch-linux-users-can-now-upgrade-to-gnome-50 #linux#arch#gnome

Linuxgram 🐧

@linuxgram · Post #18208 · 27.03.2026 г., 08:28

📰 Ubuntu 26.04 LTS Beta Is Out Now with Linux Kernel 7.0 and GNOME 50 Ubuntu 26.04 LTS operating system is now available for public beta testing with the Linux 7.0 kernel, Mesa 26.0 graphics stack, and GNOME 50 desktop environment. 🔗 Source: https://9to5linux.com/ubuntu-26-04-lts-beta-is-out-now-with-linux-kernel-7-0-and-gnome-50 #gnome#ubuntu#linux#kernel

Linuxgram 🐧

@linuxgram · Post #18793 · 14.05.2026 г., 16:58

📰CachyOS skipped the Open Gaming Collective, and gamers rewarded it by making it the top Linux distro on Steam The Open Gaming Collective wants to make Linux gaming better, but CachyOS is proving you can do that just fine with no strings attached. 🔗 Source: https://www.xda-developers.com/cachyos-skipped-open-gaming-initiative-gamers-rewarded-making-top-linux-distro-steam/ #distro#linux#steam

Linuxgram 🐧

@linuxgram · Post #18288 · 02.04.2026 г., 20:39

📰 I switched to Linux for unconventional reasons, and now I can't go back I’ve been a fan of the Linux ecosystem ever since I got a taste of it with the Raspberry Pi OS (or Buster, as it was called back then) on my RPi Zero ages ago. Since then, it has been a fun journey involving distro-hopping shenanigans and virtualization experiments. But unlike most folks, my reasons for going down the slippery slope of Linux flavors were more than just dissatisfaction with Windows and a desire to bring old devices back to life... 🔗 Source: https://www.xda-developers.com/i-switched-to-linux-for-unconventional-reasons/ #distro#linux#raspberry

Linuxgram 🐧

@linuxgram · Post #17865 · 22.02.2026 г., 21:44

📰 Don't install another Linux distro until you've tried an immutable one Sometimes, developers get so engrossed with making the best app possible that some of the basics get left behind. I understand it; if you're doing something amazing and you're going full steam ahead, all the small quality-of-life features seem like minor tweaks compared to all the glorious new tools and features you want to add to your app. 🔗 Source: https://www.xda-developers.com/dont-install-another-linux-distro-until-youve-tried-an-immutable-one/ #linux#steam#distro

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