Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-15-2009, 02:50 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 4

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


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
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,077

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
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
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: 16
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:


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`


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:56 AM.

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