Retrieve the last executed command
March11
In linux we can easily get the last executed command using the below command.
echo “!!”
execute the last executed command by simply typing two !!
!!
you can easily redirect the output into one more script file.
echo “!!” > test.sh
Recent Comments