zoukankan      html  css  js  c++  java
  • linux的小命令-fuck

    今天看到个名为fuck的linux的遂好奇看一下这是个什么命令【滑稽】

    一、fuck简介

    先看下官方github的介绍,地址:https://github.com/nvbn/thefuck

    The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands.

    The Fuck是一款功能强大的应用程序,灵感来自@liamosaur,可纠正以前的控制台命令中的错误。

    也就是说你在linux中写错命令,fuck他一下他就会帮你纠正错误

    我就经常拼错systemctl这个命令很是苦恼,所以fuckfuck他一下

    二、使用fuck

    我这里的环境是Centos,其他环境查看github官方地址都有的

    这里需要python环境,默认已安装

    pip install thefuck

    eval $(thefuck --alias)

    安装完之后我们尝试用一下命令

    [root@VM_0_2_centos ~]# systemstl
    -bash: systemstl: command not found
    [root@VM_0_2_centos ~]# fuck
    systemctl [enter/↑/↓/ctrl+c]
    Aborted
    [root@VM_0_2_centos ~]# systemstl start mysql
    -bash: systemstl: command not found
    [root@VM_0_2_centos ~]# fuck
    systemd-cat start mysql [enter/↑/↓/ctrl+c]
    Aborted
    [root@VM_0_2_centos ~]# ^C
    
    

    感觉炒鸡好用,fuck!

  • 相关阅读:
    转:神经网络入门
    转:Webkit Flex伸缩盒模型属性备忘
    css3 display:-webkit-box
    display:inline和display:block及html常用标签
    display
    weui flex 分布
    图片、字体、iconfont矢量图
    flex weui列表demo
    方法调用
    C#多线程之Task
  • 原文地址:https://www.cnblogs.com/shook/p/14304093.html
Copyright © 2011-2022 走看看