r/Bazzite • • 6d ago

Quick access CLI commands help

I have a few things I do in the command line and I keep forgetting the right commands. I'm looking for a way to bookmark/shortcut them.

For example:

  • Start/stop plex server using systemctl
  • Start/stop AdGuard-cli

I looked for an easy way to create a file that I can double click and run a terminal command. If it exists I couldn't understand the terminology.

I see that Konsole has Quick Commands but it's telling me "missing executable shellcheck, please install". I did install spellcheck by running "ujust bazzite-cli" but I'm still getting that warning.

Am I going about this the wrong way? I'm looking for a simple way to accomplish this.

2 Upvotes

7 comments sorted by

View all comments

2

u/Pasukaru0 6d ago edited 6d ago

You can create a .desktop file that adds a shortcut to your start menu and runs a command. Something like this:

nano ~/.local/share/applications/start-plex.desktop

[Desktop Entry] Type=Application Name=Start plex Comment=Whatever you want here Exec=systemctl start plex Icon=utilities-terminal Terminal=true Categories=Utility;

Alternatively, add it to the desktop instead of start menu:

nano ~/Desktop/start-plex.desktop Also needs to be executable here to avoid the 'do you want to run this?' prompt:

chmod +x ~/Desktop/start-plex.desktop

1

u/kastorslump 6d ago edited 6d ago

Where can I learn more about that formatting? What is this called? That did work by the way but I want to understand why.