Linux/unix several tools to improve productivity

Source: Internet
Author: User

Transferred from: http://ningning.today/2014/10/23/Linux/Linux-Unix%E6%8F%90%E5%8D%87%E5%B7%A5%E4%BD%9C%E6%95%88%E7%8E%87%E7% 9a%84%e5%87%a0%e4%b8%aa%e5%b7%a5%e5%85%b7/

Recently learned a few tricks very useful things, can improve a lot of efficiency.

Ultimate Shell:oh-my-zsh

The default shell for Mac and Ubuntu is bash, which recently saw Oh-my-zsh on the web, not only for bash, but also more powerful, such as a smarter fuzzy search, a git project highlighting, and the ability to configure themes and give up bash decisively.

MAC installation Please look at an article: the Ultimate shell--zsh

Ubuntu Installation:
Install zsh, git, and wget:

sudo apt-get install zsh git wget

Get and install oh-my-zsh automatically:

1
wget--no-check-certificate https://github. com/robbyrussell/oh-my-zsh/raw/master/tools/install. SH SH

Replace bash for zsh:

chsh -s /bin/zsh

Last reboot:

sudo reboot

After rebooting, open terminal to see the new shell.
A. ZSHRC hidden file is generated in the user's home folder, and you can add personalization settings. For example, I have a python command that aliases alias py= "Python". You can use the Python interpreter as long as you enter the PY.

How to open terminal terminal in the file browser

This is still quite common, sometimes in the file browser, finder inside the file to open the terminal, open the terminal also to enter the file path, very troublesome, the solution:

Mac: Search This tool Go2shell then install, then the Finder will see this >_<, click to open the terminal and automatically switch to the current file path.

Ubuntu:
1) Add the terminal to the right-click menu:
sudo apt-get install nautilus-open-terminal

3) Reload the folder:
nautilus -q

This allows you to open the terminal directly inside the right button.

How to open various types of files at the terminal:

Under the Mac terminal with the command open can call the corresponding software to open various files, such as my most commonly used several:

open .
Call the Finder to open the current path (Linux/unix. Indicates the current folder)

open http://ningning.today
Call Chrome to open the website and so on, like above I used alias in. ZSHRC,
alias blog="open http://ningning.today"
I can open my blog by entering a blog in terminal.

The corresponding commands in Ubuntu are:
Xdg-open, of course, this command is a bit long, I add another line alias xo= ' Xdg-open ' in. ZSHRC
And then
xo t.txt#调用gedit打开t. txt

xo t.doc#调用office打开doc文件

xo .#和mac终端下执行open. The same effect, open the current folder with the file browser

Linux/unix several tools to improve productivity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.