今天在64服務器上:發現好像bash 壞了,用戶名前邊 用-bash 顯示,,前幾天就發現這個問題,,,但是當時忙沒有解決,,,,,今天來看看到底是怎么回事!
File Exists but... "-bash: No such file or directory"
網上找到一篇文章,是說ubuntu系統的,我現在使用的是RHEL6.1 ,先不說其他的,先實踐再說,完了看效果!!
-----------------粘貼網上原文---------原文地址:http://superuser.com/questions/344533/no-such-file-or-directory-error-in-bash-but-the-file-exists
|
|
On Ubuntu, I get a 'No such file or directory' error when I try to execute a command.
I have checked with ls -la , the file adb is there and it has 'x' flag So why I am getting a 'No such file or directory'?
~/Programs/android-sdk-linux_x86/platform-tools$ ./adb bash: ./adb: No such file or directory ~/Programs/android-sdk-linux_x86/platform-tools$ ls -la total 34120 drwxrwxr-x 3 silverstri silverstri 4096 2011-10-08 18:50 . drwxrwxr-x 8 silverstri silverstri 4096 2011-10-08 18:51 .. -rwxrwxr-x 1 silverstri silverstri 3764858 2011-10-08 18:50 aapt -rwxrwxr-x 1 silverstri silverstri 366661 2011-10-08 18:50 adb -rwxrwxr-x 1 silverstri silverstri 906346 2011-10-08 18:50 aidl -rwxrwxr-x 1 silverstri silverstri 328445 2011-10-08 18:50 dexdump -rwxrwxr-x 1 silverstri silverstri 2603 2011-10-08 18:50 dx drwxrwxr-x 2 silverstri silverstri 4096 2011-10-08 18:50 lib -rwxrwxr-x 1 silverstri silverstri 14269620 2011-10-08 18:50 llvm-rs-cc -rwxrwxr-x 1 silverstri silverstri 14929076 2011-10-08 18:50 llvm-rs-cc-2 -rw-rw-r-- 1 silverstri silverstri 241
|