Ubuntu :: 11.04 "bash: Sudo: No Such File Or Directory"?

Jul 9, 2011

This is the same with git. I'm not sure if any other commands are like this, but I know that both of those commands are installed.

View 9 Replies


ADVERTISEMENT

Ubuntu :: Directory Exists But Bash Says It Doesn't - No Such File Or Directory

Aug 19, 2011

I've run into a problem with my bash program.

Code:a mkdir -p /home/chris/Downloads/ARCHIVE/`date -I` find /home/chris/Downloads* -mtime +14 -exec "cp {} /home/chris/Downloads/ARCHIVE/`date -I` ;

It's meant to move old files from my Downloads folder into an archive file (later tar them). The directory exists, I've used $PWD and nautilus and ls to make sure it's there, yet for every file it gives

Code: find: `cp /home/chris/Download/foo.bar /home/chris/Downloads/ARCHIVE/2011-08-19': No such file or directory I tried to test it on a different destination, specifically my home folder. IT still gave me the error.IS it a bad syntax within find or something else? I'm running a 32-bit system with 11.04

View 4 Replies View Related

Ubuntu :: Sudo Broken - No Such File Or Directory

Mar 15, 2010

In Ubuntu 9.10, sudo was working properly except it would not let me run speedy as sudo. I would get an error message, which I believe stated "No such file or directory. However, I could run the command as my regular user (being prompted it needed escalated privileges), and I could run the user as root. So I tried to "fix" it so that I could run it via the sudo command. My fix, in turn, ended up breaking sudo. I edited a file which contained the directories for PATH (I made a backup of said file), and that didn't work. It further broke sudo. So I attempted to restore the backup file, however, sudo was still just as broken.

Now, whenever I try to execute any command with sudo I get:
tim@linux-hp:~$ sudo -i
[sudo] password for tim:
env: -i: No such file or directory
tim@linux-hp:~$ sudo gedit
env: gedit: No such file or directory
tim@linux-hp:~$ sudo apt-get update
env: apt-get: No such file or directory
tim@linux-hp:~$ sudo nautilus
env: nautilus: No such file or directory
tim@linux-hp:~$ sudo update-manager
env: update-manager: No such file or directory
tim@linux-hp:~$ sudo speedy deploy
env: speedy: No such file or directory

I have since upgraded to Ubuntu 10.04 Alpha 3, with mild hopes that the upgrade would remedy my problem, but alas - it did not. How to get sudo back to a working condition?

View 9 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

Ubuntu :: Help With Bin File - Error Message - Bash - /hldsupdatetool.bin - No Such File Or Directory

Jun 9, 2009

I am new to Linux and I wanted to setup a dedicated game server on my notebook.

I've installed Ubuntu 9.04. I than created a directory named /home/phlex/kfserver. I downloaded the application binary from Steam. I changed the file permission with chmod +x hldsupdatetool.bin and now the file attributes are -rwxr-xr-x.

The problem is when I try to run the binary file. If I type ./hldsupdatetool.bin I get an error message "-bash: ./hldsupdatetool.bin: No such file or directory. It seems the OS can't find the file. I've downloaded the file several times thinking it may have been corrupt but it's not. I can delete the file, I can rename it and so the file is there. Sometimes Linux can be aggravating to use.

View 7 Replies View Related

Ubuntu :: /bin/bash: : No Such File Or Directory

Jan 20, 2011

I had netbeans installed and I removed it using wheris netbeans and then sudo rm whatever files it gave.I also remember doing sudo rm -r /usr/lib/netbeans6.9 I did this because i wanted to install netbeans via the repo. Now I installed netbeans suing

Code:

varun@varun:~$ sudo apt-get install netbeans

and when I try running netbeans i get...

Code:

varun@varun:~$ netbeans
/bin/bash: : No such file or directory

Have i changed permissions or something?

View 1 Replies View Related

CentOS 5 :: -bash: /usr/bin/yum: No Such File Or Directory

Feb 8, 2011

I upgraded my php from 5.1.6 to 5.2.10 but at php -v I got a weird error, so I figured let's reinstall some things. This was the probably very dumb commando I used:

yum remove gcc-c++l zlib zlib-devel php*

Now I think my whole server is fxxxed because I get the following messages:

-bash: /usr/bin/yum: No such file or directory
-bash: rpm: command not found
-bash: ls: command not found

And the only thing I'm glad about is I still have an SSH connection open because creating a new connection isn't possible either. what should I do to repair this all.

View 3 Replies View Related

Ubuntu :: Error Bash ./executablename No Such File Or Directory

Feb 9, 2011

An executable fails to be found and run when called even though it is found and displayed by ls.I am on lucid LTS fully updated 32 bit.The file has permissions setup but any attempt to run it results in the error bash ./executablename No such file or directory

This situation also seems to be present in kcronsometimes my scripts dont run from it even thoughthe run now option does.This bug has been around since dapper it would be nice if someone could fix it.

View 9 Replies View Related

Ubuntu :: Chroot - Cannot Run Command '/bin/bash' - No Such File Or Directory

Jul 1, 2011

I have booted up into Ubuntu 10.04 LTS disc live.

When I type 'chroot /media/(UUID)', I get:

chroot: cannot run command '/bin/bash': no such file or directory.

'/bin/bash' does exist.

Why is this error occurring?

View 3 Replies View Related

Ubuntu :: Chroot Not Working: Cannot Run Command `/bin/bash': No Such File Or Directory

Mar 20, 2010

I'm trying to change the root directory to /tmp/somedir using chroot, but even using sudo or su-ing to root I get the message:

Code:

cannot run command `/bin/bash': No such file or directory

I tried copying /bin/bash to /tmp/somedir/, but the same error occurs. What's wrong with my chroot?

View 7 Replies View Related

Ubuntu :: Installing Java - Bash: Version: No Such File Or Directory

Aug 22, 2010

i'm brand new to linux and honestly don't know how to use it very well and i am trying to install java, following the directions is not working i am stuck at Code: chmod a+x jre-6u<version>-linux-i586-rpm.bin it says bash: version: No such file or directory i downloaded the software to the downloads folder firefox uses as default.

View 6 Replies View Related

Fedora :: Zenity - Bash: [/code]: No Such File Or Directory

Apr 9, 2010

Awhile back, PabloTwo pointed me to zenity as a way to create bash scripts with changeable parameters. That thread is here, for anyone interested in reading about it: [URL] Anyway, my problem is that I'm trying to capture input that contains double-dashes ("--") but zenity (or maybe or it's bash???) complains with the following error message:

"This option is not available. for all possible usages.
bash: [/code]: No such file or directory"

Here's an example of what I'm doing:

Code:

# Select the time of day
Flytime=`zenity --list --text="Select the Time" --radiolist --height=300 --width=300 --hide-column=2 --column="Select" --column="Code" --column="Time of Day"
"" "--timeofday=real" "Local Time"

[code]....

What I want to accomplish is for the variable $Flytime to contain either "--timeofday=real" or "--timeofday=dawn" (without the quotes) depending upon which radio button is selected. I have tried escaping "--timeofday" (e.g. "--timeofday" and even "--timeofday") but that's not working.

View 3 Replies View Related

Fedora :: BASH :: Change File Stat In Sub Directory?

Oct 23, 2010

So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?

Code:
#!/bin/bash
echo enter directory

[code]....

View 6 Replies View Related

General :: Bash - Finding Newest File In A Directory?

Aug 24, 2010

Basically, I am trying to locate and copy the newest .json bookmark backup in my .mozilla/firefox/w987sdg9.default/bookmarkbackups directory.

I tried this

Code:

ls -t ~/.mozilla/firefox/b1ahb1ah.default/bookmarkbackups/ | head -1

which does return the newest file, but only the filename itself. I found readlink, but I haven't gotten that to output a full path which I can then feed to copy. So, it seems to me that find might work well here, and I know how to find based on absolute dates, but not relative.

View 2 Replies View Related

Ubuntu :: Bash: /home/randymanme/mozilla/firefox: No Such File Or Directory

May 30, 2010

How can I open the Firefox Profile Manager. I've googled and read but the directions don't work for me:

randymanme@randymanme-desktop:~$ /usr/lib/mozilla/firefox -ProfileManager
bash: /usr/lib/mozilla/firefox: No such file or directory
randymanme@randymanme-desktop:~$ /home/randymanme/mozilla/firefox -ProfileManager

[code]....

View 5 Replies View Related

General :: File Names And Tilde--not For Home Directory--in Bash?

Jun 6, 2011

I understand the tilde (~) at the end of a file displayed in bash is a backup file in the Linux file system. Is there a way to keep these hidden when listing the contents of a directory?

View 2 Replies View Related

General :: Cannot Move A File Into My Archives Directory In Bash Scrip

Apr 12, 2010

I cannot move a my file into my archives directory in my bash scrip.

View 7 Replies View Related

Programming :: Bash Script To Copy Specified Extension File From A Directory?

Mar 12, 2010

I have a directory and sub-directories (4 or 5 depths). There are several type with extension in them (*.mp3, *.wma, *.jpg, etc). I would like to copy the whole directory to another location recursively but only *.mp3 files.

View 11 Replies View Related

Programming :: Bash Script To Download A Directory Structure And A File?

Mar 20, 2009

I want to read an ftp site [URL]...and download the sub-directory structure and ONLY the tagfiles to the local directory.

FROM THIS:

Code:

slackware
+--a
| |aaa_base-12.2.0-noarch-1.tgz
| |aaa_base-12.2.0-noarch-1.tgz.asc

[code]....

I tried wget + grep but that didn't work too well.

View 2 Replies View Related

Ubuntu :: Bash: Cd: /home/mycomp/.nautilus/python-extensions: No Such File Or Directory

Aug 8, 2010

I was trying to install periscope, from the instructions here: http://code.google.com/p/periscope/wiki/NautilusSupport

The problem is that at:

cd ~/.nautilus/python-extensions

I get an error:

bash: cd: /home/mycomp/.nautilus/python-extensions: No such file or directory

View 6 Replies View Related

General :: Remove Index.html File Alone In Every Directory Via Bash Script

Jul 7, 2011

I want to remove the index.html file alone in the every directory via bash script, for example i have 5 directories in the path /var/www/vhost

anish
kumar
linux
question
friend

each directories have index.html file now i want to replace the index.html file alone from the other directory /var/tmp/vhosbak

anish
kumar
linux
question
friend

How we can do this using script?

View 5 Replies View Related

General :: Using For The Server - Bash: /etc/init.d/dhcpd.conf: No Such File Or Directory

Aug 24, 2010

# /etc/init.d/dhcpd.conf -bash: /etc/init.d/dhcpd.conf: No such file or directory what is the problem? and how to configure out "joe"

View 5 Replies View Related

Software :: Unable To Compile Gnome Commander - Bash: ./configure: No Such File Or Directory

Feb 2, 2011

I have downloaded the latest gnome commander source code from the gnome commander home page. Following the instructions in the readme I have extracted it from the tar ball and changed to the top level directory of the source code. I execute ./configure and get a bunch of "checking" results.

Quote:

bash: ./configure: No such file or directory
ken@ubuntu:~/Desktop/gnome-commander-1.2.8.9/src$ cd ..
ken@ubuntu:~/Desktop/gnome-commander-1.2.8.9$ ./configure

[code]....

I find Makefile.am and Makefile.in present in the directory. I generally install from deb packages. Still, I don't think it should be this hard to compile a package given the seemingly simple directions provided.

View 4 Replies View Related

Programming :: Bash Script: Sort Files Into Directory Based On Data In The File Name?

Sep 28, 2010

I have very little linux experience. And need some help with a bash script. I need to a script I can set cron to run to sort files out of a holding folder into final folders. It doesn't necessarily have to be bash, but I think it would be sufficient for this. File names are formatted as such when created: Dest-Date-Time-CID-Destination# I want the files to be moved from a all in one holding folder to a folder structure like this.

.../storage/year/month/day/Destination#/VarX(type)/hour/CID/'File'

I would need an if/else if/else statement to say if Dest = A set VarX = B If for example the file name was

infinity-20100927-17:00-1112223333-4445556666.wav

I would like the above file to end up moved from

.../holding

to

.../storage/2010/09/27/4445556666/Inbound/17/1112223333/infinity-20100927-17:00-1112223333-4445556666.wav

So the script will need to make directories based on information in the file name which is delimited by single dashes. Then move files from the holding folder to the newly created "sorted" folders.

View 15 Replies View Related

Programming :: STDIN, STDOUT, STDERROR Redirection For Scripting - Bash: Log.txt: No Such File Or Directory

Sep 7, 2010

I'm writing a script to execute bash commands in the PHP CLI. I would like to suppress errors from bash and write my own error message if an error occurs. So far I have this (assuming log.txt doesn't exist!):

Code:

tac log.txt 2>/dev/null

Which works as expected, tac kicks up an error but the error is suppressed, but when I use this:

Code:

tac < log.txt 2>/dev/null

I get:

Code:

bash: log.txt: No such file or directory

The tac error is suppressed but bash still gives me a dirty error.

View 2 Replies View Related

Ubuntu :: Bash: ./configure: No Such File Or Directory When Run The Command ./configure --prefix=/usr

Apr 4, 2010

I am trying to follow this tutorial below so that I can get Text to the right of icons on the GNOME desktop. [URL] Everything so far has worked fine, except when I get to step 3 where I compile Nautilus. When I try to run the command ./configure --prefix=/usr It tells me bash: ./configure: No such file or directory

View 5 Replies View Related

Ubuntu Installation :: Configure Autoclicker In The Terminal - "bash: ./configure: No Such File Or Directory?

Mar 19, 2011

I found a tool made for Ubuntu called Xautoclick. I downloaded it and it is called "xautoclick-0.30.tar.gz" The installation notes say "tallatBe sure you have the proper development packages for your distribution installed (i.e. something like xserver-xorg-dev, gtk2-dev, et cetera). After that, run:

./configure make sudo make install" I have no clue what to do... I typed in "./configure" in the terminal and it says "bash: ./configure: No such file or directory?

View 3 Replies View Related

Ubuntu :: Install A Copy Of Postgres Using The .bin - Error "bash: ./postgresql-9.0.4-1-linux.bin: No Such File Or Directory"

May 26, 2011

I'm trying to install a copy of Postgres using the .bin(I want pg Admin III as well which is why I'm not using apt-get). It's sitting in downloads so I did the following:

$ cd /home/ryan/Downloads
$ sudo chmod +x postgresql-9.0.4-1-linux.bin
$ ./postgresql-9.0.4-1-linux.bin

but I keep getting: -bash: ./postgresql-9.0.4-1-linux.bin: No such file or directory I did -ls and the file is there and I can't figure out how to get this installed.

View 9 Replies View Related

Ubuntu :: No Bash Completion With Sudo?

Apr 29, 2010

Just installed 10.04 64bit and in gnome-terminal i have no bash completion when sudo is used.For example:apt- gives apt-getbut sudo apt- does nothing, i get no suggestions from the terminal.

View 6 Replies View Related

Programming :: Grep In Bash Script Returns "No Such File Or Directory", Works Manually?

Feb 25, 2010

To start, I'm writing a script to check a file's date via FTP. Here's the portion that I'm having problems with:

Code:
function checkRemote
{

[code]...

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved