ls -d $PWD/*
$PWD/* expands the absolute path of the present working directory and appends the directory listing of * to it.
ls displays that list while -d prevents ls from going into each directory in that list and recursively listing all sub-directories.
We can also print filelist of all sub-directories relative to current directory.
find . -type f
ls displays that list while -d prevents ls from going into each directory in that list and recursively listing all sub-directories.
We can also print filelist of all sub-directories relative to current directory.
find . -type f
Comments