special bash variables
Shell
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:
- Title
- how to install brew
- Category
- Shell
- Title
- git rebase vs merge
- Category
- Shell
- Title
- rename file linux
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- heic open linux
- Category
- Shell
- Title
- install numpy
- Category
- Shell
- Title
- git cancel last commit
- Category
- Shell
- Title
- babel source maps
- Category
- Shell
- Title
- linux mesuare request time http
- Category
- Shell
- Title
- add passphrase to ssh agent?
- Category
- Shell
- Title
- remove submodule git
- Category
- Shell
- Title
- open pdf command line linux
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- bash: zipalign: command not found
- Category
- Shell
- Title
- Pyrit download command for linux
- Category
- Shell
- Title
- process runninng on particular port
- Category
- Shell
- Title
- vagrant 16
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- dnstwist kali linux
- Category
- Shell
- Title
- linux empty log file
- Category
- Shell
- Title
- linux copy
- Category
- Shell
- Title
- install npm globally
- Category
- Shell
- Title
- install .net core sdk on linux
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- python.h missing
- Category
- Shell
- Title
- install deno
- Category
- Shell
- Title
- how to remove node_modules from git
- Category
- Shell
- Title
- how to install ansible in centos
- Category
- Shell
- Title
- brew services start mongodb
- Category
- Shell
- Title
- netstat install
- Category
- Shell
- Title
- install requests python
- Category
- Shell
- Title
- partially apply stash git
- Category
- Shell
- Title
- git config --global http.sslverify "false" This command resolve my problem
- Category
- Shell
- Title
- what is git rebase
- Category
- Shell
- Title
- bash copy
- Category
- Shell
- Title
- error document htaccess
- Category
- Shell
- Title
- ngb-tabset install
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- git flow feature
- Category
- Shell
- Title
- multi line comment in shell script
- Category
- Shell
- Title
- mysql backup dump docker file
- Category
- Shell
- Title
- manjaro network driver installed but not working
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- git find out commit for tag
- Category
- Shell
- Title
- ubuntu delete from ssh known hosts
- Category
- Shell
- Title
- make an angular app installable*
- Category
- Shell
- Title
- batch rename files
- Category
- Shell
- Title
- maven install on mac os x
- Category
- Shell
- Title
- r package DESCRIPTION multiple lines description
- Category
- Shell
- Title
- bash find files or operator
- Category
- Shell
- Title
- how to rename a file in ubuntu using terminal
- Category
- Shell
- Title
- bash move
- Category
- Shell
- Title
- ubuntu trash can won't empty
- Category
- Shell
- Title
- create directory linux
- Category
- Shell
- Title
- add all files in directory to git
- Category
- Shell
- Title
- mkdir multiple directories
- Category
- Shell
- Title
- git merge branch
- Category
- Shell
- Title
- install jupyter homebrew
- Category
- Shell
- Title
- exit ssh session in shell script
- Category
- Shell
- Title
- install skimage
- Category
- Shell
- Title
- install webpack
- Category
- Shell
- Title
- git merge local branch
- Category
- Shell
- Title
- install jquery npm
- Category
- Shell
- Title
- remove directory in cmd
- Category
- Shell
- Title
- install linuxbrew
- Category
- Shell
- Title
- how to install specific package version npm
- Category
- Shell
- Title
- tree process linux commnad
- Category
- Shell
- Title
- bash comment
- Category
- Shell
- Title
- ubuntu zip file
- Category
- Shell
- Title
- how to pip install in folder
- Category
- Shell
- Title
- how to add font icon in gatsby
- Category
- Shell
- Title
- BDD framework in testcomplete github
- Category
- Shell
- Title
- find and replace in all files in directory centos
- Category
- Shell
- Title
- install sklearn
- Category
- Shell
- Title
- What debian version do i use
- Category
- Shell
- Title
- git delete all branches except master
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- Linux Mint reset xfce-panel
- Category
- Shell
- Title
- silent install google chrome
- Category
- Shell
- Title
- unstage staged files git
- Category
- Shell
- Title
- server information in powershell
- Category
- Shell
- Title
- force pull github
- Category
- Shell
- Title
- how to get the file inside the folder in batch
- Category
- Shell
- Title
- ubuntu logout
- Category
- Shell
- Title
- uninstall node from linux debian
- Category
- Shell
- Title
- cmd create rar file
- Category
- Shell
- Title
- reset certain file git
- Category
- Shell
- Title
- windows features windows subsystem for linux not
- Category
- Shell
- Title
- how to commit changes in git command
- Category
- Shell
- Title
- crop video from specific time to specific time ffmpeg
- Category
- Shell
- Title
- add known host github
- Category
- Shell
- Title
- how to kill suspended jobs
- Category
- Shell
- Title
- git proxy
- Category
- Shell
- Title
- ould not change directory to "/root": Permission denied
- Category
- Shell
- Title
- bash ls exclude substring
- Category
- Shell
- Title
- node install ubuntu
- Category
- Shell
- Title
- install node ubuntu
- Category
- Shell
- Title
- how to restart docker linux
- Category
- Shell
- Title
- ubuntu install brew
- Category
- Shell
- Title
- uninstall webpack globally
- Category
- Shell