Linux Tips and Tricks

Linux Tips and Tricks

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

posted under Uncategorized

Email will not be published

Website example

Your Comment:


Recent Comments

    Categories