Display a list of files and directories

Mim

New Member
Joined
Mar 12, 2021
Messages
2
Reaction score
1
Credits
18
Write a single command that will display on the screen a list of all files (and subdirectories) contained in hidden subdirectories (excluding special subdirectories . and .. ) of the current directory. Only the names (or paths) are to be displayed, one per line, in color.
 


Not sure what you are trying to do, but it sounds more like a homework assignment?
Code:
 find . -type d | grep "^."
 
Last edited:

Members online


Top