Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

10
  • What does if set means here? Is it mean if the path exist Commented Jan 17, 2018 at 13:15
  • if set means if you set the variable. Commented Jan 17, 2018 at 13:18
  • @TheComputerGeek010101001 can you give an example on how/when to use this specific notation? what is the difference to using ${variable} or $variable Commented Jan 17, 2018 at 13:20
  • I use this command to execute home folder by typing " $[/home/souro]" but it shows error "bash: /home/souro: syntax error: operand expected (error token is "/home/souro")" Commented Jan 17, 2018 at 13:20
  • You want: home=/home/souro Then to reference your home folder, just use $home. Commented Jan 17, 2018 at 13:26