loading...

re: 10 simple Linux tips which save 50% of my time in the command line VIEW POST

FULL DISCUSSION
 
# Did you forget to use "sudo" with a command?
# Use this alias to auto add sudo and re-run it.
#
# usage example:
# > apt update
# Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
# > oops


alias oops='sudo $(fc -ln -1)'
Code of Conduct Report abuse