3

This question already has an answer here:

What is mean by $_ , It may used like this

mkdir testdirectory;cd $_

It will redirect to the new directory

testdirectory

if i use like this , echo $_

It shows

testdirectory

Which means previously created directory.Actually what it means, I don't know really

marked as duplicate by heemayl, techraf, Archemar, countermode, Jeff Schaller Oct 31 '16 at 10:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

6

what it means, I don't know really

$_ means the last argument to the previous command.

Example:

echo "FOO" "BAR"
FOO BAR
echo $_
BAR

Read more here.

Not the answer you're looking for? Browse other questions tagged or ask your own question.