After you install sublime, the command you run may not be sublime. You can find the corresponding sublime command through compgen -c | grep subl. Or after typing sublime, press the Tab key. See if it can be automatically completed.
When running sublime and other desktop programs, the program must be executed in the terminal under the desktop environment. It cannot be executed under the character terminal.
After you install sublime, the command you run may not be
sublime
.You can find the corresponding
sublime
command throughcompgen -c | grep subl
.Or after typing
sublime
, press theTab
key. See if it can be automatically completed.When running
sublime
and other desktop programs, the program must be executed in the terminal under the desktop environment. It cannot be executed under the character terminal.First try subl directly to see if it works
If not, add alias directly