Bash — 101 Hacks Pdf 11
Вход на сайт
Меню

Bash — 101 Hacks Pdf 11

To give you a taste, here are directly inspired by that resource. Master these, and you’ll double your terminal productivity. 1. Repeat the Last Command with !! Forget pressing the up arrow repeatedly. Just type !! and hit Enter to re-run the previous command. Example:

$ apt-get install nginx Permission denied (you forgot sudo) $ sudo !! Made a typo? No need to retype everything.

If you spend any time in the Linux or macOS terminal, you’ve likely heard of Bash 101 Hacks — a legendary free eBook by Ramesh Natarajan. While there’s no “PDF 11” version, the original book packs 101 practical hacks into one powerful guide.

$ sl -l # Oops, meant 'ls -l' $ ^sl^ls^ Press Ctrl + R , then type part of a previous command. Keep pressing Ctrl + R to cycle through matches. Press Enter to run it. 4. Run One Command for Each Line of Output $ cat servers.txt | while read line; do ssh $line 'uptime'; done This logs into each server in the file and runs uptime . 5. Use Brace Expansion to Create Multiple Files $ touch file_1..10.txt # Creates file_1.txt through file_10.txt instantly 6. Quickly Jump to the Last Argument of Previous Command Use !$ or Alt + .

О компании
Логотип ООО Техновик
Оптовые и розничные продажи оборудования для неразрушающего контроля сварных соединений, контрольно-измерительных приборов, сварочного и геодезического оборудования. Метрологическая аттестация инструментов (проверка / калибровка). Выгодные, низкие цены. Работаем по всей России.
МЫ В СОЦСЕТЯХ
vk
Контактная информация

Copyright © 2017-2023
Производство и поставка материалов и инструментов для обслуживания трубопроводов

Интернет-магазин оборудования неразрушающего контроля и измерительных приборов
Компания ТЕХНОВИК
Bash 101 Hacks Pdf 11
Выберите правильный ответ

* — Поля, обязательные для заполнения