What are the convenient Bash aliases in Linux
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!