Bash math calculation 1

There are a few ways to do math calculations in bash. The first option is to use the Linux command expr. we can use this command to do the simple math calculation like addition, subtraction, multiplication, and division. we use the following signs, + for addition, - for subtraction, \* for multiplication, / for division. We … Continue reading Bash math calculation 1

Advertisements

linux command history

In Linux bash shell, the commands that we execute are recorded and saved in the .bash_history file in our home directory. we can use up and down arrow to move back and forward in the command history. We can also use the command history to see all recorded previous command.