其他
真香!Linux命令查询神器来了,像用搜索引擎一样优雅地查找命令
The following article is from GitHuboy Author boy
▍如何安装?
$ sudo ln -s ~/bin/howdoi /usr/local/bin/howdoi
$ howdoi check my linux version
▍如何使用?
-v:显示完整答案(否则只显示代码)
-i:交互式或 REPL 模式(用于热键绑定)
-h:帮助
1、快速查找信息
-j, --bzip2
filter the archive through bzip2
tar -xvjf enginsxt.tar.bz2
Source: https://askubuntu.com/questions/707861/how-to-extract-tar-bz2
2、显示详细信息
Put a shell script in one of these folders: /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly or /etc/cron.weekly.
If these are not enough for you, you can add more specific tasks e.g. twice a month or every 5 minutes. Go to the terminal and type:
crontab -e
...snip
Source: https://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job
3、返回多个结果
screen
screen -S myprogramrunningunderscreen
screen -ls
There are screens on:
4964.myprogramrunningunderscreen (05/31/2013 09:42:29 PM) (Detached)
4874.pts-1.creeper (05/31/2013 09:39:12 PM) (Detached)
Source: https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-session
screen -d -r
Source: https://askubuntu.com/questions/302662/reattaching-to-an-existing-screen-session
4、其它相关
hexString = yourNumber.toString(16);
yourNumber = parseInt(hexString, 16);
Source: https://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hexadecimal-in-javascript
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-add-repository ppa:ondrej/php
sudo apt-add-repository ppa:ondrej/php5-oldstable
sudo apt-add-repository ppa:ondrej/php5
sudo apt-add-repository ppa:ondrej/php5-5.6
sudo apt-get update
sudo apt-get install php5.5
sudo apt-get install php5.6
sudo apt-get install php7.0
do-release-upgrade
Source: https://askubuntu.com/questions/565784/how-do-i-upgrade-php-version-to-the-latest-stable-released-version
howdoi工具调用的解答库来源于askbuntu.com论坛上的提问,论坛上已有的问题解答都可以通过本工具实现对话式查询。
这个神器工具开发还不到100行,但解决了Linux小白上手操作头疼的难题,分分钟获取解决方案。目前该项目已开源在GitHub上,地址如下。
https://github.com/san-kumar/howdoi
只要 60 页!完整的 Python 数据分析入门知识手册来了!