LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2018, 04:56 AM   #16
geniousnerd
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Smile


Quote:
Originally Posted by keefaz View Post
Using your root shell, enter:
Code:
source /etc/profile
Then try some commands

Or edit your .bashrc, remove the PATH line, log out, log in
Or edit your .bashrc, remove the PATH line, log out, log in[/QUOTE]-->done with succes,thanks!
 
Old 02-12-2018, 05:09 AM   #17
geniousnerd
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Question What is post #2 ?

Quote:
Originally Posted by BW-userx View Post
Post #2 gives you your default PATH to use to fix what screw up you MAY have done to it, then append your whatever path you want to that next. then you should be back in like flint, and bob's your uncle. easy peasy
Quote:
Originally Posted by BW-userx View Post
Post #2 gives you your default PATH to use to fix what screw up you MAY have done to it, then append your whatever path you want to that next. then you should be back in like flint, and bob's your uncle. easy peasy
I'm sorry, but:
Quote:
Post #2
, what does it mean?I was entering
Quote:
post #2
in the command line and it answered me with:
Quote:
root@debian:/# post
bash: post: command not found
...
 
Old 02-12-2018, 10:45 AM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
post #2 is the second post in this forum topic.
 
Old 02-12-2018, 11:32 AM   #19
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
if all else fails just open the file and write in your path as root
Code:
sudo nano /etc/profile

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/share/games"
in mine I just added ':/usr/share/games' to my path..
 
Old 02-12-2018, 11:51 AM   #20
geniousnerd
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
post #2 is the second post in this forum topic.
Thanks for the acclearing quote!
 
Old 02-12-2018, 11:53 AM   #21
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Are you still stuck on the original problem?
 
Old 02-12-2018, 12:48 PM   #22
geniousnerd
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
if all else fails just open the file and write in your path as root
Code:
sudo nano /etc/profile

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/share/games"
in mine I just added ':/usr/share/games' to my path..
Thanks for the good advice! meanwhile,as you can read in former threads,the problem is given a good solution:
Originally Posted by keefaz View Post
Using your root shell, enter:
Code:

Quote:
source /etc/profile
But i am going to check now what's left in my PATH and eventually i'll add the same as you did to the PATH.
 
Old 02-12-2018, 01:33 PM   #23
geniousnerd
LQ Newbie
 
Registered: Feb 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Smile The original problem was magically solved

Quote:
Originally Posted by rtmistler View Post
Are you still stuck on the original problem?
The original problem was magically solved by entering : Originally Posted by keefaz View Post
Using your root shell, enter:
Code:

Quote:
source /etc/profile
,whereafter i cancelled my erroneous adding in .bashrc also.
I really thought i had a big problem but hapily that was not the case!
 
Old 02-12-2018, 01:57 PM   #24
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Great news.

If the thread is solved, please use the Thread Tools menu on the upper right of the form to mark the thread as Solved.

This will help others who may have a similar problem where they'll see that you did solve the problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the path for a shell command Phaethar Linux - Newbie 1 09-06-2011 10:13 AM
Setting PATH in kshell in OpenBSD and changing the defult shell to bash AJones *BSD 6 08-15-2011 10:05 PM
Lost path when su'ing to root from user GUI terminal arashi256 Linux - Newbie 4 01-08-2008 09:32 AM
Root password lost ... how to keep from changing? SlowCoder Linux - Security 10 04-14-2007 10:56 PM
Set the path for shell commands??? acidblue Fedora 2 12-23-2005 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration