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.pngI would prefer the read out to be
- 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.