I'd like to show the contents of a folder without first changing into it. for example:
---- Documents | | L_ Essays
If I'm in
Documents, how can I show the contents of
Essays with a single command?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
works from within
Documents. A tiny snippet of FreeBSD's
ls man page:
ls [ .... ] [file ...]
DESCRIPTIONFor each operand that names a file of a type other than directory,
lsdisplays its name as well as any requested, associated information. For each operand that names a file of type directory,
lsdisplays the names of files contained within that directory, as well as any requested, associated information.
If you want to include the directory name in the listing, too:
find Essays/ -maxdepth 1