DEV Community

Discussion on: 10 simple Linux tips which save 50% of my time in the command line

Collapse
 
devloco profile image
devloco • Edited
# 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)'