TGViewer
Секреты сисадмина | DevOps, Linux, SRE Секреты сисадмина | DevOps, Linux, SRE @sysadmin_library · 25.5K subscribers
Post #3932 5.63K
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

Смотреть

#СекретыСисадмина
More from @sysadmin_library
  1. Oct 1, 2026Как пробросить порт в Linux на другой сервер Необходимо пробросить с 8821 порта сервера 10…
  2. Oct 1, 2026Post #5032
  3. Sep 30, 2026Как практиковаться Junior DevOps-инженеру В этом ролике автор собрал список задач, практик…
  4. Sep 30, 2026Post #5030
  5. Sep 30, 2026document post
  6. Sep 30, 2026Переменные среды в Windows В данной статье показаны действия, с помощью которых можно узна…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →