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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to get the list of 10 terminal commands you use most frequently in Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
I think my most common command is:
Choices
Cd
Git
Ls
Ssh
Sudo
A few weeks ago I stumbled across a short Bash snippet of this Reddit thread telling me how to get a list of my most commonly used terminal commands.
History'{CMD [$2] +; count++;} END {for (an in CMD) print CMD [a] "CMD [a] / count*100"% "a;} 'column
The details are not very important, but basically, it takes the output of the history command, summarizes it, and tells you what the first ten commands are and the percentage of time spent on each command. You can easily make some modifications to the code snippet to get a longer list, or change the format slightly. This is from my recently updated laptop.
1 138 25.0909% sudo 2 59 10.7273% ls 3 47 8.54545% cd 4 20 3.63636% git 5 19 3.4545% grep 6 13 2.3636% vi 7 10 1.81818% lpstat 8 1.63636% find 9 8 1.455% ps 10 8 1.455% htop
The only thing that surprises me is lpstat (I've been struggling with printer configuration lately). These numbers are not very large, and some details are hidden behind sudo (it is likely that many of them are DNF updates). Curiously, I ran the same command on my desktop and on several virtual machines, which were used for different purposes with very different results.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
This is the end of this article on "how to get the 10 most commonly used terminal commands in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
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.