Mac OS Add quick Use commands for UltraEdit in terminal

Source: Internet
Author: User
Tags ultraedit

One, what is UltraEdit

I think it's a programmer, and the code knows what Urledit is. We are going to use Linux and have a very famous editor gedit in Linux, which allows us to enter gedit XXX in the terminal. You can edit the software by entering the visual window.

Gedit can also be used on Macs, but gedit. There's a better software UltraEdit on Mac, but how do we use gedit as a command to edit any file?

Second, the Preparation tool

1. Download UltraEdit.

Address: Baidu Settlement

Three, configure

1. Create a new uedit.sh (SH is an executable file. Uedit.sh will be your quick command to open UltraEdit)

VI uedit.sh

Enter the edit mode for I into VI. Then copy the contents below into the terminal.

Press ESC to enter command mode, and then press ZZ to exit the save.

2. Move files, modify permissions

sudo mv uedit.sh/bin//+x uedit.sh

So we can use the command: uedit.sh XXX

But it seems that with the. sh suffix there is no force lattice, we give him an individual name below.

3. Aliases

Uedit.sh ~/.bash_profile

Then enter the following and save:

Alias uedit= "Uedit.sh"

Enter the command in the terminal and let the content I just set up take effect:

SOURCE ~/.bash_profile

Four, using shortcut commands

Punch a file: Uedit xxx

Write in the back:

In fact, the Mac itself with the TextEdit is also very useful, more concise and practical. You can still add shortcut commands as described above.

Mac OS Add quick Use commands for UltraEdit in terminal

Related Article

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.