- Bash Quick Start Guide
- Tom Ryder
- 192字
- 2021-07-23 16:58:53
Checking Bash is running
If you're using a GNU/Linux system, and your system administrator hasn't changed your login shell, it's likely that Bash is starting up as soon as you log in with a TTY, in an xterm, or over SSH.
If you see a prompt that looks like one of these after you log in, it's a good sign you're in a bash session:
bash-4.4$ user@hostname:~$
If you want to check, you can enter this at the prompt:
bash$ declare -p BASH
If you get a response like this, with a path to your bash binary, you can be confident you are running bash:
declare -- BASH="/bin/bash"
If you get some other output, such as:
sh: declare: not found
Then you may be running some other kind of shell. You may be able to tell what it is by printing the value of the SHELL variable:
$ echo "$SHELL"
We'll use the bash$ prefix before commands throughout this book as a way to show commands you should enter at the Bash command line. We'll use just a $ prefix instead if the command should also work in other POSIX-compliant shells.
- 集成架構(gòu)中型系統(tǒng)
- 計(jì)算機(jī)應(yīng)用
- Mastering Matplotlib 2.x
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開發(fā)
- 來吧!帶你玩轉(zhuǎn)Excel VBA
- Mastering Salesforce CRM Administration
- Security Automation with Ansible 2
- Hybrid Cloud for Architects
- Implementing Oracle API Platform Cloud Service
- 電腦主板現(xiàn)場(chǎng)維修實(shí)錄
- 我也能做CTO之程序員職業(yè)規(guī)劃
- 機(jī)器人人工智能
- 電子設(shè)備及系統(tǒng)人機(jī)工程設(shè)計(jì)(第2版)
- MATLAB-Simulink系統(tǒng)仿真超級(jí)學(xué)習(xí)手冊(cè)
- 工業(yè)機(jī)器人集成應(yīng)用