2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 3122
/ 3 Years ago, fri, october 15, 2021, 11:30:09
If my terminal is currently in home/stuff/stuff2
and there are more folders and files under stuff2
, how can I launch a command to get the file names of all the files and folders from this directory and onwards (Including all sub directories).
The operation needs to do the following:
- The file path must start at the location of the terminal command, so I don't want full files paths. Example, instead of the read out being
home/stuff/stuff2/stuff3/cat.png
I would prefer the read out to bestuff3/cat.png
- It must capture every file and folder and files within those folders.
- It needs to be piped (I think this is the term) to a text file.
Any ideas?
More From » command-line