Is there a way to only ouput the long list of a directory itself not its contents.
ls -l directory outputs the contents as a list
ls -l filename outputs the file itself
CodePudding user response:
ls -d directory_name should give you what you want.
It can be combined with -l or other switches, of course.
