Command Line Kung Fu: Bash Scripting Tricks, Linux Shell Programming Tips, and Bash One-liners
暫譯: 命令行功夫:Bash 腳本技巧、Linux Shell 程式設計提示與 Bash 一行程式

Jason Cannon

  • 出版商: CreateSpace Independ
  • 出版日期: 2014-04-17
  • 售價: $850
  • 貴賓價: 9.5$808
  • 語言: 英文
  • 頁數: 124
  • 裝訂: Paperback
  • ISBN: 1499222033
  • ISBN-13: 9781499222036
  • 相關分類: Command LineLinux
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Become a Linux Ninja with Command Line Kung Fu!

Do you think you have to lock yourself in a basement reading cryptic man pages for months on end in order to have ninja like command line skills? In reality, if you had someone share their most powerful command line tips, tricks, and patterns you'd save yourself a lot of time and frustration. What if you could look over the shoulder of a good friend that just happened to be a command line guru? What if they not only showed you the commands they were using, but why they were using them and exactly how they worked? And what if that friend took the time to write all of it down so you can refer to it whenever you liked? Well, a friend did just that. Command Line Kung Fu is packed with dozens of tips and over 100 practical real-world examples. You won't find theoretical examples in this book. The examples demonstrate how to solve actual problems and accomplish worthwhile goals. The tactics are easy to find, too. Each chapter covers a specific topic and groups related tips and examples together. For example, if you need help extracting text from a file look in the "Text Processing and Manipulation" chapter. Also, a comprehensive index is included. If you want to find every example where a given command is used -- even if it's not the main subject of the tip -- look in the index. It will list every single place in the book where that command appears. Here is just some of what you will learn by reading Command Line Kung Fu:
  • How to quickly and easily repeat commands in your shell history
  • Shortcuts for grabbing specific words from your shell history to use in your current command
  • How to save a copy of your command line session for later reference
  • How to strip out blank lines and comments from files
  • How to control colorized text when uses pipes and pagers
  • Ways to transform text: from changing case to substituting characters and more
  • How to extract specific blocks of text from files or streams of input
  • A quick tip to fix common typos
  • How to edit files over the network
  • How to compare the differences between files on your local computer and a remote one
  • How to create and use SSH tunnels
  • Ways to verify what programs are listening on what ports
  • How to kill all the processes for a given user with a single command
  • Strategies for dealing with multi-hop SSH connections
  • How to disconnect from a server in a way that will allow you to pick up where you left off
  • How to automate software installs that require user input
  • Shell scripting tips
  • How to automatically keep repeating a command until it succeeds
  • The right way to delete a file that is being written to
  • How to surf the web from the command line... and more importantly how to download anything from the web and interact with HTTP APIs
  • Ways to determine who and what is using the most disk space
  • How to secure your web browser session when using an open wifi hotspot
  • How to generate random passwords from the command line
  • Two tips for easily creating backups
  • Tips for handling tar archives
  • How to replace a string in multiple files at once with just one command
  • and much more...
What you learn in Command Line Kung Fu applies to any Linux distribution including Ubuntu, Debian, Linux Mint, RedHat, Fedora, OpenSUSE, Slackware, and more.

Scroll up, click the "Buy Now With 1-Click" button to get your black belt in Linux Command Line Kung Fu.

商品描述(中文翻譯)

成為 Linux 忍者,掌握命令行功夫!

你是否認為必須把自己鎖在地下室,花幾個月的時間閱讀難懂的手冊頁,才能擁有忍者般的命令行技能?實際上,如果有人分享他們最強大的命令行技巧、竅門和模式,你將節省大量的時間和挫折感。如果你能夠在一位剛好是命令行大師的好朋友身邊學習,那會怎樣?如果他們不僅告訴你他們使用的命令,還告訴你為什麼使用這些命令以及它們的具體運作方式呢?如果那位朋友花時間把所有這些寫下來,讓你隨時可以參考呢?好吧,一位朋友正是這樣做的。《命令行功夫》充滿了數十個技巧和超過 100 個實用的現實範例。你不會在這本書中找到理論範例。這些範例展示了如何解決實際問題並達成有意義的目標。

這些策略也很容易找到。每一章都涵蓋一個特定主題,並將相關的技巧和範例分組在一起。例如,如果你需要幫助從文件中提取文本,可以查看「文本處理與操作」這一章。此外,還包含了一個全面的索引。如果你想找到每個使用特定命令的範例——即使它不是該技巧的主要主題——可以查看索引。它會列出書中該命令出現的每一個地方。以下是你在閱讀《命令行功夫》時將學到的一些內容:

- 如何快速輕鬆地重複你的 shell 歷史中的命令
- 從 shell 歷史中抓取特定單詞以用於當前命令的快捷方式
- 如何保存命令行會話的副本以供日後參考
- 如何從文件中刪除空行和註釋
- 如何在使用管道和分頁器時控制彩色文本
- 轉換文本的方法:從改變大小寫到替換字符等等
- 如何從文件或輸入流中提取特定文本塊
- 修正常見打字錯誤的快速技巧
- 如何通過網絡編輯文件
- 如何比較本地計算機和遠程計算機之間的文件差異
- 如何創建和使用 SSH 隧道
- 驗證哪些程序在監聽哪些端口的方法
- 如何用一個命令終止特定用戶的所有進程
- 處理多跳 SSH 連接的策略
- 如何以允許你從中斷的地方繼續的方式斷開與伺服器的連接
- 如何自動化需要用戶輸入的軟件安裝
- Shell 腳本技巧
- 如何自動重複執行命令直到成功
- 正確刪除正在寫入的文件的方法
- 如何從命令行瀏覽網頁……更重要的是,如何從網絡下載任何東西並與 HTTP API 互動
- 確定誰和什麼在使用最多磁碟空間的方法
- 如何在使用開放的 Wi-Fi 熱點時保護你的網頁瀏覽器會話
- 如何從命令行生成隨機密碼
- 兩個輕鬆創建備份的技巧
- 處理 tar 壓縮檔的技巧
- 如何用一個命令在多個文件中替換字符串
- 還有更多……

你在《命令行功夫》中學到的內容適用於任何 Linux 發行版,包括 Ubuntu、Debian、Linux Mint、RedHat、Fedora、OpenSUSE、Slackware 等等。

向上滾動,點擊「立即購買」按鈕,獲得你的 Linux 命令行功夫黑帶。