LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slackware startx command not found (https://www.linuxquestions.org/questions/linux-newbie-8/slackware-startx-command-not-found-4175543274/)

haind 05-21-2015 08:56 PM

Slackware startx command not found
 
I probably do something wrong with $PATH when install Java JDK. Now when I type
startx, reboot, which,... I get command not found.

When I type: echo $PATH
It shows only: /usr/local/java/bin

pan64 05-22-2015 12:50 AM

usually PATH contains: /bin /usr/bin /usr/local/bin (and possibly other dirs too). You can set it in your shell or in /etc/profile

haind 05-22-2015 07:27 AM

It was really trouble. I cannot edit ~/.profile which I edited before at terminal. I type vi ~/.profile but it showed vi command is not a command. almost command I tried It just showed like that, "A command not found". I'm crazy and decided to reinstall Slackware. This clean trouble.

pan64 05-23-2015 04:46 AM

because vi is not in your path. try /usr/bin/vi (use full path) instead

haind 05-23-2015 12:56 PM

yes It work naturally. I wish I didn't reinstall slackware if I knew before. Thank so much!

pan64 05-25-2015 02:59 AM

just remember, usually you can solve it without reinstall, this is not windows (which was much harder to repair). But obviously there are cases when you need to do that.


All times are GMT -5. The time now is 04:06 AM.