This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -Ril "text-want-to-find" <directory> | |
# -i for ignore case | |
# -R for recursive | |
# -l for show the file name | |
# Example: | |
# In my case, I forgot the location of my mirrors config | |
# but I remember what mirrors i used | |
grep -Ril "aliyun" /etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encode | |
echo [email protected] | base64 | |
# decode | |
echo BASE64_CODE | base64 -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -eo pid,ppid,%mem,%cpu,comm --sort=-%cpu | head | |
# Result : | |
# | |
# PID PPID %MEM %CPU COMMAND | |
# 948934 948837 2.9 44.4 spotify | |
# 948781 1 2.9 27.5 spotify | |
# 948876 948836 1.5 9.2 spotify | |
# 80755 1 7.5 5.3 firefox | |
# 948919 948781 1.1 3.6 spotify |
NewerOlder