D
D
Davidaa_WoW2022-02-18 21:18:33
linux
Davidaa_WoW, 2022-02-18 21:18:33

How to find out the names of applications to run them through the sudo command?

How to find out the names of applications to run them through the sudo command? I have Linux on a virtual machine in Windows 10. I want to run at least some application through the sudo command (needed by assignment), but I can’t figure out how to find out their names. Pointing a finger at the sky, ala: sudo calculator
either
sudo word
or
sudo gimp
lead to nothing.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2022-02-18
@saboteur_kiev

dial
ls /sbin
and look at the list of "applications".
You can also ls /bin and ls /usr/bin

P
pfg21, 2022-02-18
@pfg21

through the right mouse button open the link on the desktop in a text editor
in the Exec parameter will be the path and name of the executable file.

D
Drno, 2022-02-18
@Drno

Well, for example
, install mc. sudo apt install mc
run mc sudo mc
the same with a text editor, for example nano (it is often included in the system by default)
in fact, any application can be launched through sudo. question of expediency

S
Sergo Zar, 2022-02-18
@Sergomen

ls /usr/sbin
(binaries are stored in sbin that can only be run as root)
but what if you remember only part of the name

ls /usr/sbin | grep точтопомнишь
#например я не помню как e4defrag начинается
ls /usr/sbin | grep defrag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question