LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-27-2012, 05:11 AM   #1
Vishruth Reddy
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
unable to go into BASH (bash: not found)


Hi,

i made changes in /etc/default/login and changed the path and supath from /usr/bin to /usr/sfw/bin . And i thing this would be the cause for it.

Any way to rollback to previous config...

no command is working
# vi /etc/default/login
vi: not found
# edit /etc/default/login
edit: not found
# help
help: not found
# bash
bash: not found

The exact reason for making this changes is to get wget working ....

Last edited by Vishruth Reddy; 03-27-2012 at 05:19 AM.
 
Old 03-27-2012, 05:25 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
# /usr/bin/vi /etc/default/login
...
PATH=/usr/bin:/usr/sbin:/sbin:/usr/sfw/bin
SUPATH=/usr/bin:/usr/sbin:/sbin:/usr/sfw/bin

Last edited by jlliagre; 03-27-2012 at 05:26 AM.
 
1 members found this post helpful.
Old 03-27-2012, 05:34 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Try /usr/bin/vi /etc/default/login or /bin/vi /etc/default/login
 
1 members found this post helpful.
Old 04-11-2012, 04:24 PM   #4
Vishruth Reddy
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks guys....
 
  


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
bash: ns: command not found using ns-2.31 Vixxx Linux - Software 25 12-12-2018 01:39 PM
Bash problem : -bash: [: /bin/bash: unary operator expected J.A.X Linux - Software 1 09-22-2011 05:52 AM
bash command not found gobicse Linux - Newbie 3 12-19-2007 05:46 PM
bash command not found manolakis Linux - Newbie 13 01-21-2007 02:07 PM
(bash) echo "#!/bin/bash" event not found - trying to generate profiles automatically jimieee Programming 9 05-03-2006 10:24 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03: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