LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-15-2009, 02:50 AM   #1
kallekula
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 1
can not get bash work out correctly in pendrivelinux, help!!!


hi!

I am trying to learn how to do shell scripting and I am using pendrivelinux. I keep getting those messages like this when trying it out:

bash: sudo: command not found

Could it be something missing in the installation or wrong environmental settings or ????

please help!
 
Old 10-15-2009, 03:24 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
sudo is not such a critical thing, and in an embedded system it's perfectly fine if it's not installed. I don't know if there's a way to install sudo no pendrivelinux (never heard of it anyway). It's possible that you are running as root by default (and in that case sudo would not be needed for anything). Or you could use su - as well.

Anyway, why do you need sudo to learn scripting?
 
Old 10-15-2009, 03:29 AM   #3
Forrest Coredump
Member
 
Registered: Oct 2009
Location: Southwestern United States
Distribution: Redhat Enterprise Linux 4-5 (Current RHCE), Fedora Core 11 (FC11), Arch Linux, BT3 (Current GCIH)
Posts: 42

Rep: Reputation: 19
I would try the explicit path to the sudo command, i.e., /usr/bin/sudo

If the command works, then try: echo $PATH

Your should see something like the following:

/bin/:/usr/local/bin:/usr/bin:/opt/bin

If you don't see anything, it's likely your $PATH variable isn't set, in which case you would want to edit your "/home/$username/.bash_profile" file and add something like the following:

PATH="/usr/bin":"/bin":"/usr/local/bin":`echo $PATH`
 
  


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
[SOLVED] [bash] find -exec does not execute correctly... RaptorX Programming 3 09-11-2009 05:33 PM
Bash multi-line input won't wrap correctly spiffytech Linux - Software 2 03-28-2006 05:37 PM
why my bash doesn't work correctly? icoming Linux From Scratch 4 11-28-2004 07:59 AM
bash does not wrap long lines correctly monkeyman2000 Linux - General 8 09-08-2004 09:30 PM

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

All times are GMT -5. The time now is 01:49 AM.

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