Horje
sudo !! alias Code Example
sudo !! alias
# You can use the 'history' built-in to do the expansion:
alias please='sudo $(history -p !!)'

# If the command is more than a simple command (e.g. it contains redirections or pipes), you need to invoke a shell under sudo:
alias please='sudo "$BASH" -c "$(history -p !!)"'




Shell

Related
git move change from master to new branch Code Example git move change from master to new branch Code Example
Files by size Code Example Files by size Code Example
unix timestamp bash Code Example unix timestamp bash Code Example
video trimmer ubuntu Code Example video trimmer ubuntu Code Example
windows xp enable remote desktop cmd Code Example windows xp enable remote desktop cmd Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10