MATLAB equivalent to ls -l

Hi, what is MATLAB equivalent to ls -l?

1 Commento

On Mac and Linux, MATLAB passes the parameters to the ls command, so
ls -l
at the MATLAB prompt will show long information.

Accedi per commentare.

 Risposta accettata

John D'Errico
John D'Errico il 8 Gen 2020
Modificato: John D'Errico il 8 Gen 2020
It depends on what you want from it. What exactly are you looking for?
D = dir
MAY give you much of what you may want, if you return
However, if you really, alsolutely need to see the output of ls -l, then just do
system('ls -l')
So there is no need for an equivalent thereof, just execute the system call itself.

2 Commenti

yonatan s
yonatan s il 8 Gen 2020
I was looking for the last one. thanks
! ls -l
is shorter. But you do not even need to use the ! on Mac.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Prodotti

Release

R2019b

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by