In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what are the convenient Bash aliases in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
10 convenient Bash aliases
1. How many times have you encountered the need to extract the .tar file but can't remember the exact parameters you need? Aliases can help you! Simply add the following to .bash _ profile, and then use untar FileName to extract any .tar files.
Alias untar='tar-zxvf'
2. What you want to download, but can you restore it if something goes wrong?
Alias wget='wget-c'
3. Do you need to generate a random 20-character password for the new network account? No problem.
Alias getpass= "openssl rand-base64 20"
4. download the file and need to test the checksum? We can do it.
Alias sha='shasum-a 256'
5. Ordinary ping will last forever. We don't want that. Instead, let's limit it to five ping.
Alias ping='ping-c 5'
6. Start the Web server in any folder you want.
Alias www='python-m SimpleHTTPServer 8000'
Want to know how fast your network is? Just download Speedtest-cli and use this alias. You can use the speedtest-cli-- list command to select a server that is closer to your location.
Alias speed='speedtest-cli-server 2406-simple'
8. How many times do you need to know your external IP address, but don't know how to get it? Me too.
Alias ipe='curl ipinfo.io/ip'
9. Need to know your local IP address?
Alias ipi='ipconfig getifaddr en0'
10. Let's clear the screen.
The above is all the contents of the article "what are the convenient Bash aliases in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.