N Nguyễn Vân Anh New member Dec 28, 2021 #1 What is $? Used for? Answer $? is used to find the return value of the last executed command .