Skip to content
Jinhui-Lin edited this page Jul 16, 2019 · 18 revisions

Type

  • GNU Bash
  • Zsh : Zsh is a shell designed for interactive use, although it is also a powerful scripting language.
    • Oh-My-Zsh : Oh-My-Zsh is an open source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout...
  • Fish Shell : Finally, a command line shell for the 90s

Explain

  • Explain Shell : write down a command-line to see the help text that matches each argument
  • Extract it! : 1. Enter archiv filename (.tar, .tar.bz, etc.) 2. Copy command 3. Extract
  • Bash Command : An A-Z Index of the Bash command line for Linux.

Tutorial

sed & awk

Books

Resources

  • Awesome Shell
  • CommandLineFu : commandlinefu.com is the place to record those command-line gems that you return to again and again.

Scripts

  • pixelb/scripts : Various (LGPLv2) scripts that I've created (ordered by popularity). These have only been tested on linux, but most should work on any UNIX.

Vedio

  • ASCII Nema : Record and share your terminal sessions, the right way.
  • showterm : Showterm lets your record a terminal session exactly as you experience it, right down to the syntax highlighting.

Tool

  • transfer.sh : Easy file sharing from the command line
  • tmate : Instant terminal sharing
  • gotty : Share your terminal as a web application
  • Teleconsole : Command line tool to share your UNIX terminal and forward local TCP ports to people you trust.
  • termshare : Quick and easy terminal sharing.
  • Linuxbrew: The Homebrew package manager for Linux

Examples

计算圆周率后一万位所需要的时间

time echo "scale=10000; 4*a(1)" | bc -l -q

------------------
以下是成绩
树莓派 3B 博通 BCM2837B0
bc -l -q 475.68s user 0.00s system 99% cpu 7:55.68 total

树莓派 4B 博通 BCM2711
bc -l -q 221.00s user 0.00s system 99% cpu 3:41.88 total

腾讯云 E5-26xx v4
bc -l -q 127.81s user 0.05s system 98% cpu 2:09.55 total
bc -l -q 127.35s user 0.05s system 98% cpu 2:09.15 total

机房 Gold 6144
bc -l -q 84.19s user 0.34s system 99% cpu 1:24.19 total

macOS 7820HQ
bc -l -q 111.12s user 0.34s system 99% cpu 1:51.89 total
bc -l -q 111.44s user 0.38s system 99% cpu 1:52.26 total

Ubuntu 2600x
bc -l -q 94.46s user 0.01s system 99% cpu 1:34.50 total
bc -l -q 95.92s user 0.00s system 99% cpu 1:35.96 total

Ubuntu 3700x
bc -l -q 84.94s user 0.00s system 99% cpu 1:24.95 total
bc -l -q 83.09s user 0.01s system 99% cpu 1:23.11 total

Clone this wiki locally