listdir(1) - SerenityOS man pages

#Name

lsdir - list directory entries

#Synopsis

# lsdir [options...] [path...]

#Description

This utility will list all directory entries of a given path (or list of paths) and print their inode number and file type (in either POSIX DT_* format or human readable).

The utility uses LibCore DirIterator object and restrict its functionality to the get_dir_entries syscall only, to get the raw values of each directory entry.

#Options

#Arguments

#Examples

# List directory entries of working directory
$ lsdir
# List directory entries of /proc directory 
$ lsdir /proc
# List directory entries of /proc directory with POSIX names for file types
$ lsdir -P /proc
# List directory entries of /proc directory and print in the end the count of traversed entries
$ lsdir -t /proc

#See also