M
M
mouLL2021-06-10 07:33:16
linux
mouLL, 2021-06-10 07:33:16

How to find out the command to run the program?

Slack is for work. I remember that when you first launched the program through the command line, you had to enter a command starting with x. Now I can’t remember this command, I launch Slack through a shortcut. The "slack" command in the terminal does not work, it says:
"The "slack" command was not found, but can be installed with:
sudo apt install slack"
I understand that he offers to install the program?

If I view the list of processes through the top command while Slack is running, then in the COMMAND column it is written like this - slack. Tell me how to find out what command it eventually starts? And how can you change it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Belyaev, 2021-06-10
@mouLL

writes like this "/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=slack --file-forwarding com.slack.Slack --enable-features=WebRTCPipeWireCapturer @@u %U @@"

1. Create a file /usr/bin/slack and open it with a text editor
2. Write:
#!/bin/bash
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=slack --file-forwarding com.slack.Slack --enable-features=WebRTCPipeWireCapturer @@u %U @@

3. performsudo chmod +x /usr/bin/slack

R
rPman, 2021-06-10
@rPman

/usr/bin/slack link links to /usr/lib/slack/slack

D
Dmitriy Loginov, 2021-06-10
@caramingo

I am looking for a path in penguins with the whereis command, for example,
whereis htop

R
Roman, 2021-06-10
@RomanTRS

Press Apt + F2 and enter the name of the program (slack).
If there is one, then the command to run it will be found.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question