Tagged articles
3 articles
Page 1 of 1
Laravel Tech Community
Laravel Tech Community
Jul 13, 2021 · Backend Development

PHP dir() Function – Returns a Directory Instance

The article explains PHP's dir() function, detailing its parameters, return values, and providing a complete example that demonstrates opening a directory, retrieving its handle and path, iterating over entries, and closing the directory resource.

BackendFilesystemdir
0 likes · 2 min read
PHP dir() Function – Returns a Directory Instance
Liangxu Linux
Liangxu Linux
Jul 12, 2020 · Fundamentals

Beyond ls: When and Why to Use dir and vdir on Linux

This article explains the differences between the common ls command and its lesser‑known counterparts dir and vdir, showing how each can list directory contents, handle hidden files, format output, and avoid performance pitfalls in scripts, while also covering color options and practical examples.

command-linedirfile management
0 likes · 5 min read
Beyond ls: When and Why to Use dir and vdir on Linux