---
# System prepended metadata

title: Linux 讀書會 - 第 12 週 10/21/2014
tags: [' tossug', hackpad-import]

---

---
hackpadID: UrtJgVDKXMN
hackpadWorkspace: tossug
tags: hackpad-import, tossug
---
# Linux 讀書會 - 第 12 週 10/21/2014

總目錄 [edX Introduction to Linux](https://tossug.hackpad.com/dVX1LvoCcii)

## 課程筆記

**Chapter 16: Advanced Bash Scripting**

<undefined>*   **Section 4**</undefined>

exec 的用法：

[](http://wiki.bash-hackers.org/commands/builtin/exec)http://wiki.bash-hackers.org/commands/builtin/exec

<undefined>*   **Section 6**</undefined>

The XXXXXXXX is replaced by the **mktemp** utility.

暫存檔用法：

*   TEMP=$(mktemp /tmp/tempfile.XXXXXXXX)
*   echo $VAR > $TEMP

**/dev/null** is also called the **bit bucket**.

See also:

*   [G](http://goo.gl/ZxgoUz)[o](http://goo.gl/ZxgoUzG)[o](http://goo.gl/ZxgoUzGo)[g](http://goo.gl/ZxgoUzGoo)[l](http://goo.gl/ZxgoUzGoog)[e](http://goo.gl/ZxgoUzGoogl) [圖書結果](http://goo.gl/ZxgoUz)
*   [名詞](http://terms.naer.edu.tw/detail/1273387/)[解](http://terms.naer.edu.tw/detail/1273387/名詞)[釋](http://terms.naer.edu.tw/detail/1273387/名詞解)

亂數取法：

echo $RANDOM

亂數來源：

/dev/random - high quality randomness

/dev/urandom - faster and suitable for most cryptographic purposes

取副檔名：(section4,p3 影片)

ext=${filename##\.}

dialog:

*   [](http://www.unixcl.com/2009/12/linux-dialog-utility-short-tutorial.html)http://www.unixcl.com/2009/12/linux-dialog-utility-short-tutorial.html
*   [](http://www.linuxjournal.com/article/2807)http://www.linuxjournal.com/article/2807

Zenity:

*   [](http://www.linux.org/threads/zenity-gui-for-shell-scripts.5567/)http://www.linux.org/threads/zenity-gui-for-shell-scripts.5567/
*   [](http://lazybuntu.openfoundry.org/intro.html)http://lazybuntu.openfoundry.org/intro.html

10 Tools To Add Some Spice To Your UNIX Shell Scripts

*   [](http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html)http://www.cyberciti.biz/tips/spice-up-your-unix-linux-shell-scripts.html

Alien’s Bash Tutorial

*   [](http://subsignal.org/doc/AliensBashTutorial.html)http://subsignal.org/doc/AliensBashTutorial.html

## 本週作業

Chapter 17: Processes

*   Section 1 - Section 2

## 活動簽到

[Carl Su](/ep/profile/n5euV0AaWLn)

[steven huang](/ep/profile/sncZfUbLaeE)

[P Fisher](/ep/profile/oTOWRrYfPRk)

[Sam Lu](/ep/profile/zi86w39M6U6)
