Linux Command List Files In Directory And Save Into Text File
- Forums
- Linux Commands
- Linux Command List Files In Directory And Save Into Text File
hay guys, just wanted to tell you that you can use this command to save the output of the command into a text file [849], Last Updated: Mon Jun 24, 2024
Travis
Mon Nov 28, 2011
0 Comments
541 Visits
hay guys, just wanted to tell you that you can use this command to save the output of the command into a text file, all you have to do is use this command very simple:
ls /www/mysite >> /home/myuser/all_files.txt
so as you can see, the all_files.txt will contain a complete list of all the files in the /www/mysite directory
hope that helps