mirror of
https://github.com/Idnan/bash-guide.git
synced 2018-11-09 02:29:39 +01:00
Fix quickly go to directory example (#27)
This commit is contained in:
parent
a9ee7cbe5f
commit
1e2cd1f5f0
1 changed files with 3 additions and 2 deletions
|
@ -1072,9 +1072,10 @@ Open `bash_profile` by running following command `nano ~/.bash_profile`
|
|||
nano ~/.bashrc
|
||||
> export hotellogs="/workspace/hotel-api/storage/logs"
|
||||
|
||||
```bash
|
||||
source ~/.bashrc
|
||||
cd hotellogs
|
||||
|
||||
cd $hotellogs
|
||||
```
|
||||
|
||||
# 4. Debugging
|
||||
You can easily debug the bash script by passing different options to `bash` command. For example `-n` will not run commands and check for syntax errors only. `-v` echo commands before running them. `-x` echo commands after command-line processing.
|
||||
|
|
Loading…
Reference in a new issue