Why do you have to learn to order?
Switch to Mac work for a while, it is inevitable to do in the terminal, some of the relatively simple command line is sometimes difficult to control some of the more complex operations. It is necessary for the system to go through the main commands.
There are many advantages to the command line in addition to a forced accident:
- Typing speed and accuracy is much higher than the mouse, frequent switching of the mouse and keyboard is a very troublesome thing.
- The command line can be written as a script to automate some operations, lazy people's gospel.
- In some server environments, you can use only the command line.
How to learn Commands
Learning by doing is the best way, especially for this practical thing, do not move hands is absolutely not. I think the better way to learn the command line is:
- Read through the man, know what a command can do, even if you can not remember it is OK, at least know what to do, and so on when necessary to see the details of the specific is not too late. If the man under the terminal is not easy to read, it can be read by dash and other tools.
- For what you might use, try knocking over the results yourself.
- Imagine several scenarios that might be more commonly used, and then use commands to accomplish these tasks. When you encounter these scenes later, you can check the memory.
The 3rd is in fact a reference to TLDR (too long don ' t read), can be understood as a simplified version of the man.
The default shell under Mac 10.3+ system is bash[1], most commands have the same effect as Linux, and some commands differ in their specific parameters and behavior.
Tips Daily A directory operation
- LS- May 24, 2016
- CAT,PUSHD,POPD- June 2, 2016
File operations
- CP- May 25, 2016
- Cat- May 30, 2016
- Chflags- June 2, 2016
- ln
- - June 3, 2016
Text Actions/Filters
- Sort
- Uniq
- Grep
- Fmt
- pr
- Head
- Tail
- Tr
- Sed
- Awk
Debugging
Related concepts
- Soft Links vs Hard Links
- File Flag
- Standard input and output redirection (redirection)
- Wildcard characters
Resources
What is the differences between using the terminal on a Mac vs Linux?
Linux Command
Original link
Mac/linux Command Learning