I'm not very familiar with Linux commands and need some help in producing the kind of list I need.
My directory structure is as follows:
The code will get me a list close to what I want, but I'd prefer something more like the following:
Is this possible? If so, what would be the syntax? I'm not getting it figured out.
Thanks in advance,
Andrew
My directory structure is as follows:
- Fagan_NAS_01 (root)
- Fagan_General (directory)
- #recycle (directory)
- list (directory)
- TossMe (directory)
- testfile.txt (file)
- testfile.txt (file)
- Output (directory)
- #recycle (directory)
- filesfolders.txt (file)
- Fagan_General (directory)
Code:
ls -FARX /volume1/Fagan_General > /volume1/Output/filesfolders.txt
The code will get me a list close to what I want, but I'd prefer something more like the following:
Code:
/volume1/Fagan_General/testfile.txt
/volume1/Fagan_General/Tossme/testfile.txt
/volume1/Output/filesfolders.txt
Is this possible? If so, what would be the syntax? I'm not getting it figured out.
Thanks in advance,
Andrew