'ls' command problem

3 views (last 30 days)
Balachander Narasimhan
Balachander Narasimhan on 16 Dec 2011
Hi I am using MATLAB 7.12.0 (R2011a) on linux. Whenever I type the 'ls' command, matlab hangs and the only way out of it is to kill it. Does anyone know the solution for this?
  2 Comments
Andrew Newell
Andrew Newell on 16 Dec 2011
You should probably contact Mathworks Support about this.
Dr. Seis
Dr. Seis on 16 Dec 2011
Does the same thing happen if you use the "dir" command instead?

Sign in to comment.

Answers (2)

Balachander Narasimhan
Balachander Narasimhan on 19 Dec 2011
thanks for the responses. dir does work. but by instinct, I keep typing the ls command and it hangs. is there a way to disable it?

Walter Roberson
Walter Roberson on 19 Dec 2011
On Linux, ls without any arguments will invoke
unix('ls')
Do you get the same response if you try that directly? How about if you were to command
!ls
What does
!which ls
report ?
  1 Comment
Balachander Narasimhan
Balachander Narasimhan on 19 Dec 2011
thanks for the response. all these commands. just give me the bash prompt. 'which ls' at the prompt gives /bin/ls. Btw, I have two versions of matlab and both have this issue. the versions are R2008a and R2011a

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!