In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to quickly master Linux commands". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to quickly master Linux commands".
Is there any way to learn quickly?
I think the process of learning things is divided into three stages:
1. Mountains are mountains, but water is not water.
Look at the mountain is not a mountain, look at water is not water
3. Look at the mountain or the mountain, see who is still the water
What are the practical means of learning?
1. Focus on learning. Because people's energy is limited.
2. Put what you have learned into practice. Be sure to practice it yourself.
3. Learn and use flexibly. Select the technology according to the scene, select the technology to consider the scene.
Finally, the unity of knowledge and practice.
02 to get to the point, what are the categories of Linux commands?
For the Linux command, from the usage point of view, I divided the Linux basic command into six parts:
1. File and directory operation
2. File viewing and editing
3. Document search and statistics
4. File decompression and compression
5. User and file permissions
6. Resource monitoring and management
As you can see, five of the six categories on my side are all related to the file (in fact, the last one is also related to the file).
Remember the idea that everything is a file in Linux.
Cpu, memory, disk, peripherals, drivers and so on are all stored in our Linux system in the form of files.
03 is there any shortcut key to use the command in Linux?
Enter executes command
Tab automatic completion
↑ looks up the history command
Ctrl + c interrupt command
Ctrl + z interrupts the command; you can try this command when ctrl + c cannot perform the interrupt operation.
Ctrl + insert copy; copy selection
Shift + insert paste; paste contents of the clipboard
Ctrl + Backspace delete forward. Use this command when Backspace cannot delete characters
Delete deletes backward
Ctrl + s stops scrolling and log viewing is commonly used.
Ctrl + Q recovery scrolling
What if I want to know how to use the command but can't connect to the Internet?
A few special commands:
Man comprehensive help command, example [man ls], exit the help interface using the: Q command
Help commonly used help commands. Example [ls-- help], which is displayed directly on the screen without exiting.
History history command view, example [! 22] you can execute 22 lines of corresponding commands in history, or you can use the up arrow keys to view Linux commands that have been typed out
Why is it typed according to your orders but cannot be carried out?
The Linux environment for this article is CentOS 7, and there may be slight inconsistencies in other distributions.
Commands such as Mac, AIX, ubuntu, and redhat may be slightly different.
Beginners should note that all commands in linux are separated by spaces, such as cd xx files.
Commands generally have parameters, and you can use man or help to see what the parameters do.
The parameter is generally written at the beginning of the symbol short bar [-].
Such as ls-a to view all the files in the current directory. Rm-f xxx file, delete the xxx file, and the-f parameter means that if there is no such file, there is no prompt.
Thank you for your reading, the above is the content of "how to quickly master Linux commands". After the study of this article, I believe you have a deeper understanding of how to quickly master Linux commands, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.