Interesting Linux stuff

Documenting interesting stuff I learn about Linux/Unix Configure alias Alias can be configured through alias <AN_ALIAS>=<THE_ACTUAL_COMMAND> Example: alias k=kubectl note that this only configures alias for the current shell session. To permanently configure an alias do: echo "alias k='kubectl'" >> ~/.zshrc Use alias to view all alias set Locate files/directories Files/directories could be located through: locate <FILE_NAME> Example: locate hello_world.txt note that locate depends on the database /var/db/locate.database which has to be initialized through: sudo launchctl load -w /System/Library/LaunchDaemons/com....

September 1, 2024 · 1 min · 207 words · Papattarada A. (Pun Pun)