tgoop.com/sysadminof/4903
Last Update:
Fuck - это великолепная утилита, которое исправляет ошибки в предыдущих консольных командах.
Примеры:
➜ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
➜ fuck
sudo apt-get install vim [enter/↑/↓/ctrl+c]
[sudo] password for nvbn:
Reading package lists... Done
...
➜ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
➜ fuck
git push --set-upstream origin master [enter/↑/↓/ctrl+c]
Counting objects: 9, done.
...
Установка
На Ubuntu / Mint установите The Fuck с помощью следующих команд:sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
pip3 install thefuck --user
На FreeBSD установите The Fuck с помощью следующих команд:pkg install thefuck
На macOS или Linux установить The Fuck можно через Homebrew:brew install thefuck
https://github.com/nvbn/thefuck
Мы в MAX
👉 @sysadminof
BY Системный Администратор (Сисадмин)
Share with your friend now:
tgoop.com/sysadminof/4903
