MacOS has been playing around for a few days, a new start.

Source: Internet
Author: User

I recently started a Mac Pro. Then I thought that I was learning programming in a Windows environment. Now that we have changed UNIX, we will give ourselves some new weather and learn new things.

PS. I used Pip install scipy in windows for a long time and decided to skip the pitfall ....

1. After Mac is used, the habit of using genuine software is maintained. After all, the author has worked hard to write. In the past, I began to enjoy reading more official books on Amazon.

2. Learning a shell is originally based on Bash. However, since zsh is recommended by mactalk's pool teachers, I can't start thinking about it. (The one below is even less brainless)

3. Exercise Using an editor, because it is necessary to go to the library to study, read, and tap the code, and then there is no way to use the mouse, the sound is too loud. So simply play an Emacs without a keyboard .... (Slot: I went to the library because there were too many sisters !!! This is a hot site. It's a cool girl !!! Ele. Me, code first, code first !)

 

As mentioned above, many basic commands are not mentioned in the zsh tutorial. At least I did not read them. Few people may take this entry-level shell, so many of my commands are basic commands in Linux for searching. Let's see if it can be used. After a while, the level of English has increased, check whether there are any improper problems.

I forgot to say that this is only a record for getting started with Tom. If you happen to have a Shell Foundation, please kindly advise. Thank you.

Simplest command

List objects

Ls

I want to know a few commands when I installed Ubuntu IN THE SYSTEM boot zone ....

 

Create a folder

Create a file in the current directory of mkdir aaa

Mkdir-P/home/AAA/BBB will be incomplete, and a new directory and Its subdirectories will also be created. In Mac, I set/home by default and directly created a folder named "folder" on the top of the screen... Then, I suggest that you use command + space to call spotlight to find the file if you are looking for a file to be lazy. The function is quite powerful. At present, you have not studied Alfred (this is L... I won't say I'm playing)

Mkdir-M 777 AAA creates a directory that can be modified and changed. This directory can only be created and will not be complete automatically. But the advantage of this directory is that you drag a file into it without a password, and sometimes it feels like there are a lot of passwords in Mac. This means that you have the highest permissions.

In addition, if permission denied occurs, it means that you do not have sufficient permissions. You can add sudo to the beginning. If you remember it once, it seems that you have the highest permissions. In a short period of time, I will not add sudo to Create File.

 

Delete folder

Rm-r Dir-name Goole found this answer, but I don't know if it is because the shell is different or it is wrong. What should I do? I used to look at several answers and compare them. I accidentally found this:

Man RM

It was amazing. I called out the help function and found that it was correct.

Rm-D name

Then try the original method. The original is the meaning of the expression. I didn't understand =, = Dir-name is a string. I split it into commands.

 

Then we found that the Help menu actually supports Emacs operations, and the terminal is also supported.

Q is launched

Check mkdir properly. Well, there is no problem. Then, we find that there are some other things under the Nice help file, such as blabla in diagnostics and history, and there is another rmdir to do it.

 

The background Editor supports C-f c-B C-P C-N.

It's really a programmer's website.

 

Haha, let's write it here today. The original name is zsh (1) in Mac ). However, after all, I started to write a blog again, but most of them were ridicule. I 'd like to reopen this title next time.

MacOS has been playing around for a few days, a new start.

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.