Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236359

Re: What command to use to output to a text file?

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: What command to use to output to a text file?
Date 2021-06-23 15:10 +0200
Message-ID <CtaNH-6Mu-3@gated-at.bofh.it> (permalink)
References <CtakG-6nm-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Mi, 23 iun 21, 13:36:27, Sharon Kimble wrote:
> 
> I'm hoping that you folk can help me out of my predicament?
> 
> I have transferred some files in their directories to an external drive
> mounted in a caddy.
> 
> How can I get a text file saved from an output of everything on the
> drive, please? What commands do I need to use and what would be the
> syntax of it/them please?

It's unclear what information you expect to have in the text file, 
please elaborate on that (preferably with examples).

For a simple listing of files with full path something like below should 
do what you want:

    cd /path/to/external_drive
    find > files_on_external_drive.txt


Hope this helps,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What command to use to output to a text file? Sharon Kimble <boudiccas@skimble.plus.com> - 2021-06-23 14:40 +0200
  Re: What command to use to output to a text file? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-23 15:10 +0200
    Re: What command to use to output to a text file? Jude DaShiell <jdashiel@panix.com> - 2021-06-23 16:50 +0200
    Re: What command to use to output to a text file? Sharon Kimble <boudiccas@skimble.plus.com> - 2021-06-23 16:50 +0200
  Re: What command to use to output to a text file? steve <dlist@bluewin.ch> - 2021-06-23 15:10 +0200

csiph-web