2
0
Fork 0
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:
Zero King 2017-04-06 06:23:57 +00:00 committed by Adnan Ahmed
parent a9ee7cbe5f
commit 1e2cd1f5f0

View file

@ -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.