[Exchange Ideas] Some custom commands for the terminal.
Tofloor
poster avatar
Lejó
deepin
2023-04-01 05:32
Author

Hi there,

I made some custom commands for the terminal window (just copy & paste the quoted parts to command):

  1. Installed Flatpak and snap list

clear && echo ============================================================================================================== && printf "\033[93m Installed flatpak applications \033[0m" && echo && echo ============================================================================================================== && flatpak list --app && echo && echo ------------------------------------------------------ && printf "\033[93m Searching unused flatpak runtimes to uninstall \033[0m" && echo && echo ------------------------------------------------------ && flatpak remove --unused && echo && echo ============================================================================================================== && printf "\033[93m Installed snap packages \033[0m" && echo && echo ============================================================================================================== && snap list --all && echo

Shortcut: Ctrl + F

  1. Installed kernels list

clear && echo ---------------------------------------------------------------- && printf "\033[93m List of installed kernels \033[0m" && echo && echo ---------------------------------------------------------------- && dpkg --list | grep linux-image && echo && echo ---------------------------------------------------------------- && printf "\033[93m The used operating system, kernel name and version \033[0m" && echo && echo ---------------------------------------------------------------- && printf "DEEPIN Linux v20.8 with kernel " && uname -r && echo

Shortcut: Ctrl + K

  1. Update all

clear && echo ----------------------------------------- && printf "\033[93m Check for updates \033[0m" && echo && echo ----------------------------------------- && sudo apt update && echo && echo ----------------------------------------- && printf "\033[93m Upgrade existing updates \033[0m" && echo && echo ----------------------------------------- && sudo apt upgrade && echo && echo ----------------------------------------- && printf "\033[93m Remove unused files \033[0m" && echo && echo ----------------------------------------- && sudo apt autoremove && echo && echo ----------------------------------------- && printf "\033[93m Update snaps \033[0m" && echo && echo ----------------------------------------- && sudo snap refresh && echo && echo ----------------------------------------- && printf "\033[93m Update flatpak runtimes and apps \033[0m" && echo && echo ----------------------------------------- && flatpak update && echo && echo ----------------------------------------- && echo

Shortcut: Ctrl + U

I attached some screenshots to see the results.

Screenshot1.png

kernels.png

flatpak.png

  1. result
    update.png

neofetch.png

Enjoy.

Reply Favorite View the author
All Replies
ya******[email protected]
deepin
2023-04-12 09:33
#1
It has been deleted!
j***[email protected]
deepin
2024-10-16 16:22
#2
It has been deleted!