Back to TILs

Bash - special variables

Date: 2024-01-27Last modified: 2024-02-26

Table of contents

$_ latest argument

Sets the variable to the latest argument of the last command.

echo abc def ghi jkl; echo $_
abc def ghi jkl
jkl

References