[mdlug] directory print out

Drew drew4096 at gmail.com
Sun Jan 12 11:25:08 EST 2014


ls /home/stuff/morestuff > morestuff-files.txt

ls is the equivalent of dir in DOS. The greater-than sign means
redirect the output to the specified file, in this case
morestuff-files.txt.

ls --help for more options on what you can do with ls.


On 1/12/14, Adam Behnke <abehnke at gmail.com> wrote:
> or like a boss:
>
> ls /home/stuff/morestuff/ > file-names.txt
>
>
> On Sun, Jan 12, 2014 at 11:17 AM, Adam Behnke <abehnke at gmail.com> wrote:
>
>> open a terminal and type these commands:
>>
>> cd /home/stuff/morestuff/
>>
>> ls > file-names.txt
>>
>>
>>
>> then close terminal and open file-names.txt with your favorite text
>> editor
>> or libre office
>>
>>
>> On Sun, Jan 12, 2014 at 11:08 AM, Garry Stahl <tesral at wowway.com> wrote:
>>
>>> On 01/12/2014 04:46 AM, Bob wrote:
>>>
>>>> ls > file-names.txt
>>>>
>>>
>>> Could you indicate a more verbose usage for the CLI ignorant please?
>>>
>>> I want a list from /home/stuff/morestuff/ for example.
>>>
>>>
>>>
>>>  -- Garry AKA --Phoenix-- Rising above the Flames. I have as much
>>>> authority as the Pope, I just don't have as many people who believe it.
>>>> Star Trek mort. Viva la Star Trek admiraetur The Olde Phoenix Inn
>>>> http://phoenixinn.iwarp.com Metro Detroit Linux Users Group
>>>> http://www.mdlug.org
>>>>
>>> _______________________________________________
>>> mdlug mailing list
>>> mdlug at mdlug.org
>>> http://mdlug.org/mailman/listinfo/mdlug
>>>
>>
>>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>


More information about the mdlug mailing list