Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

General discussion • Re: Manage a shared folder's files

$
0
0
you can redirect the output of a command to a file
for example
open a terminal, CD to the folder, and

Code:

ls >foo.txt 
(note that this also lists the folder names... try "man ls" for the help for ls command)

or use find:
find . -maxdepth 1 -type f -printf '%f\n' >foo.txt


then you can "cat" the file to see whats there.

Code:

cat foo.txt 

Statistics: Posted by terribleted — Sun Feb 02, 2025 11:02 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles