- Bash Quick Start Guide
- Tom Ryder
- 257字
- 2021-07-23 16:58:53
Identifying the Bash version number
Before we start writing commands and programming with Bash, it's a good idea to find out what version of Bash you have installed. This is because newer versions of Bash have useful new features that might be discussed in this book, but that might not be available in your version of Bash.
You can check the version of your current running shell by printing the value of the BASH_VERSION variable:
bash$ declare -p BASH_VERSION declare -- BASH_VERSION="4.4.12(1)-release"
You can get the same information by invoking the bash program with its --version option, which provides some extra information about the program's version number and software license:
$ bash --version GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
The most recent stable minor version of GNU Bash at the time of writing is version 4.4, with version 4.4.0 released in September 2016.
In this book, we will focus on the features of Bash that were available in GNU Bash version 4.0, which was released in 2011, and is very widely available as a minimum version.
If the version of Bash installed on your computer is older than 4.0, some of the scripts and features discussed in this book may not work correctly. You or your system administrator should use your operating system to upgrade your Bash shell to a newer version.
- R Data Mining
- 教父母學(xué)會(huì)上網(wǎng)
- 大數(shù)據(jù)改變世界
- 最簡(jiǎn)數(shù)據(jù)挖掘
- 現(xiàn)代傳感技術(shù)
- 四向穿梭式自動(dòng)化密集倉(cāng)儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- CompTIA Linux+ Certification Guide
- Splunk Operational Intelligence Cookbook
- 網(wǎng)中之我:何明升網(wǎng)絡(luò)社會(huì)論稿
- Godot Engine Game Development Projects
- 實(shí)用網(wǎng)絡(luò)流量分析技術(shù)
- Hadoop Beginner's Guide
- Oracle 11g基礎(chǔ)與提高
- 軟件質(zhì)量管理實(shí)踐
- Learn SOLIDWORKS 2020