You can use read command in bash where input will be set into a bash variable. Read -p "What is your age" age In ihis example the user input value will be set into age. Reference : poftut.com/prompt-input-bash/