Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hello I don't know where problem about this. I want to use the command ls, but the terminal says it doesn't exist. This is the screenshot. I logged in with root user. enter image description here

Command with stat, the output at below:

root@ns1:~# stat /bin/ls
  File: `/bin/ls'
  Size: 39696       Blocks: 80         IO Block: 4096   regular file
Device: 802h/2050d  Inode: 2488208     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-08-27 21:00:59.825120536 +0700
Modify: 2010-09-22 01:32:55.000000000 +0700
Change: 2013-08-27 21:00:48.291368562 +0700

root@ns1:~# stat /
  File: `/'
  Size: 4096        Blocks: 8          IO Block: 4096   directory
Device: 802h/2050d  Inode: 2           Links: 23
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-08-27 15:48:31.285959829 +0700
Modify: 2013-08-27 15:42:39.251379071 +0700
Change: 2013-08-27 15:42:39.251379071 +0700

root@ns1:~# stat /bin
  File: `/bin'
  Size: 4096        Blocks: 8          IO Block: 4096   directory
Device: 802h/2050d  Inode: 392449      Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-08-27 20:53:00.251389526 +0700
Modify: 2013-08-27 20:51:59.861361479 +0700
Change: 2013-08-27 20:51:59.861361479 +0700
share|improve this question
    
@Node I just edit my question with output stat /bin/ls. Thanks –  Loren Ramly Aug 27 '13 at 14:27
    
Can you run it by running /bin/ls (with the absolute path)? –  Oli Aug 27 '13 at 14:29
    
@Oli output same when I type #/bin/ls -la (-bash: /bin/ls: No such file or directory) –  Loren Ramly Aug 27 '13 at 14:30
    
Could you also post an stat of your / and your /bin? –  Node Aug 27 '13 at 14:32
    
@Node, Ijust edit with output stat / and stat /bin, thanks –  Loren Ramly Aug 27 '13 at 14:37

1 Answer 1

You should have a look at this question on serverfault, and ensure that you not got rooted. :/ HTH http://serverfault.com/questions/10884/bin-ls-not-found-even-though-it-exists

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.