UNDERCODE COMMUNITY
2.72K subscribers
1.24K photos
31 videos
2.65K files
83.9K links
πŸ¦‘ Undercode World!
@UndercodeCommunity


1️⃣ World first platform which Collect & Analyzes every New hacking method.
+ Pratice
@Undercode_Testing

2️⃣ Cyber & Tech NEWS:
@Undercode_News

3️⃣ CVE @Daily_CVE


✨ Youtube.com/Undercode
by Undercode.help
Download Telegram
πŸ¦‘ START HACKING - PRATICAL PDFS
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ¦‘Premium verified Bins
πŸ¦‘ Premium Bins, provide us with screnashoats to @Undercode_Bot
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ¦‘Expert Hacking
πŸ¦‘Ten Linux command aliases that can improve efficiency
▁ β–‚ β–„ ο½•π•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁


πŸ¦‘1) DESCRIPTION :

1) Engineers working in the Linux environment will surely be impressed by the cumbersome commands and parameter command lines. Moreover, the terrible thing is not cumbersome, but a lot of repeated input of these cumbersome commands.

2) Under Linux, we have the alias command alias, which can customize those cumbersome commands as aliases that we can easily remember, which can greatly improve our efficiency.

3) However, the alias command is only valid for the current terminal. When the terminal is closed, all the aliases we set are invalid. So if we want to make these aliases permanent, we need to add them to the .bash_profile file
1. Compressed package files, especially tar files are widely used under Linux, but there are many options of tar command, which is not easy to remember. So we can define several commonly used options as an alias untar, so that when we need to decompress the tar file, just untar filename.

alias untar = 'tar -zxvf'
2. When we download a large file, the network is suddenly interrupted abnormally. Are we crazy about downloading again? Don't worry, our wget command has a -c option that supports breakpoint download, we can also set it as an alias:
alias wget='wget -c '
3. Sometimes we need to generate a 20-character random number password. We can use the openssl command, but the complete command is very long and inconvenient. We can set an alias:
alias getpass="openssl rand -base64 20"
4. After downloading a file, we want to check its checksum value. We can encapsulate this command as an alias sha, and then we can check the checksum value of the file with sha filename.
alias sha='shasum -a 256 '
5. Under normal circumstances, the ping command will output an unlimited number of times, but it doesn't really make much sense. We can use the -c command to limit it to 5 outputs, and then set it to alias ping. When using it, just ping url.
alias ping='ping -c 5'
6. If we want to start a web server anytime, anywhere, we can use this alias:
alias www='python -m SimpleHTTPServer 8000'
7. The test of network speed is often used in the work, but Linux does not have its own command available, we can use the third-party tool speedtest-cli. This tool can be downloaded directly from Github, and the use method is also described in detail. We need to use the speedtest-cli command to select the closest server to us, and then set the following aliases:
alias speed='speedtest-cli --server 2406 --simple'
8. What is your public IP? Good memory can be directly memorized, but what if you have 10 hundreds of servers? You can also memorize it and participate in the strongest brain. In fact, there is a command that can be queried directly, but that command is too perverted to remember, and it is decisively set as an alias.
alias ipe = 'curl ipinfo.io/ip'
9. How to know your LAN IP? This command is also perverted, and set the alias decisively.
alias ipi = 'ipconfig getifaddr en0'
10. Finally, to clear the screen, we can use the ctrl + l shortcut key, or we can define the clear command to be shorter, so that it is more direct and rude to use.
alias c='clear'
You may not need all of these 10 commands, because everyone uses Linux in different directions and different work. There must also be a lot of complicated and cumbersome commands that can be defined as aliases in your field of work, welcome to add in the message area!
This media is not supported in your browser
VIEW IN TELEGRAM
πŸ¦‘ Paid 2019-2020 Courses 😊