special bash variables
here are a few other variables that the system sets for you to use as well.
$0 - The name of the Bash script.
$1 - $9 - The first 9 arguments to the Bash script. (As mentioned above.)
$# - How many arguments were passed to the Bash script.
$@ - All the arguments supplied to the Bash script.
$? - The exit status of the most recently run process.
$$ - The process ID of the current script.
$USER - The username of the user running the script.
$HOSTNAME - The hostname of the machine the script is running on.
$SECONDS - The number of seconds since the script was started.
$RANDOM - Returns a different random number each time is it referred to.
$LINENO - Returns the current line number in the Bash script.
Also in Shell:
- install particular version of laravel
- how to push to git hub
- undo git pull origin master into feature branch
- git push to branch
- npm install package globally
- ubuntu install apache2
- how to install mongoose
- ubuntu virtual machine
- powershell get all computers in ou
- git remote push
- optional argument bash
- ubuntu remove temp files
- install packages from jupyter notebook
- nano edit a file
- kill all python processes ubuntu
- git copy file from another branch
- gpg: can't connect to the agent: IPC connect call failed
- python version command
- copy folders linux
- pytesseract
- command to know disk ussage in ec2 instance
- powershell get date
- get full path of files in directory linux command
- Gem::LoadError : "ed25519 is not part of the bundle. Add it to your Gemfile."