Users online right now: 97 - Login  » search  » forum index  

how do I create a new file and save a directory

happyday2012
wrote 1 year ago


reply
looking to save the directory listing of a directory to a new file I have to create.
How is this accomplished?
 
jcsoh
wrote 1 year ago


reply
Not too sure if this is what you meant ?
For eg you have a directory in /mnt/sda2/example
Open a console in /mnt/sda2/example
Type

ls >file.txt

Explanation ls = list
> sent the listed files in /mnt/sda2/example to a text file named file.txt
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH