Find the answer to your Linux question:
Results 1 to 2 of 2
What would be the Linux command to write and save certain text string to a file?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2005
    Posts
    2

    Editing text from command line


    What would be the Linux command to write and save certain text string to a file?

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    That depends. If all you want to do is write a line of text to a file you could do this:

    Code:
    echo Some text you want > targetfilename.txt
    If instead you want a full-blown text editor, there are a few choices (some easier to pick up than others):

    vi
    emacs
    nano
    pico
    joe
    jpico
    Registered Linux user #270181
    TechieMoe's Tech Rants

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •