<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    They both work, however the second one is simpler and all fits on
    one line.  The << eof method is best used when you have
    multiple lines you want to add to a file or when you have a bunch of
    characters what you would otherwise need to escape.<br>
    <br>
    Brian Cluff<br>
    <br>
    <div class="moz-cite-prefix">On 01/05/2016 12:03 PM, Michael Havens
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFRvunKLi7EHdo8OjJfMP=CKKomoU=fCDHO7L4J80wN+jR2KsA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>so my other  command:</div>
        <div><br>
        </div>
        <div>#adjust where pictures are stored</div>
        <div>sudo cat >> /etc/fstab << eof</div>
        <div>/media/bmike1/entertainment/Pictures /home/bmike1/Pictures
          none bind 0 0 </div>
        <div>eof</div>
        <div><br>
        </div>
        <div>should be:</div>
        <div><br>
        </div>
        <div>echo /media/bmike1/entertainment/Pictures
          /home/bmike1/Pictures none bind 0 0  >>/etc/fstab<br>
        </div>
        <div><br>
        </div>
        <div>????</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 5, 2016 at 1:55 PM, Brian
          Cluff <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:brian@snaptek.com" target="_blank">brian@snaptek.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> You are trying to
              write "vm.swappiness=10" directly to the swappiness
              settings.<br>
              If that is what you are trying to do, do it like this:<br>
              <br>
              echo 10 >/proc/sys/vm/swappiness<br>
              <br>
              I suspect that what you really want to do is write it to a
              config file so that it is automatically set every time you
              boot.  In that case do:<br>
              <br>
              echo vm.swappiness=10 >/etc/sysctl.d/99-swappiness.conf<br>
              sysctl -p /etc/sysctl.d/99-swappiness.conf<br>
              <br>
              The last line just loads the settings, you could also just
              reboot.<br>
              <br>
              Brian Cluff
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 01/05/2016 11:26 AM, Michael Havens wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">I have a small copy n paste txt file
                      for when my hard drive fails (hopefully in the
                      distant future) so I can get my new hard drive up
                      and running again as closely similar to the
                      previous drive as possible.
                      <div>I made the one command up myself and just
                        discovered it does not work. That command is:</div>
                      <div>  </div>
                      <div>  # Reduce the swap tendency 
                        <div>  cat >> /proc/sys/vm/swappiness
                          <<eof</div>
                        <div>  > vm.swappiness=10</div>
                        <div>  eof</div>
                        <div><br>
                        </div>
                        <div>with the error of:</div>
                        <div><br>
                        </div>
                        <div>   cat: write error: Invalid argument</div>
                        <div><br>
                        </div>
                        <div>I have a similar </div>
                        <div><br>
                        </div>
                        <div>  sudo cat >> /etc/fstab << eof</div>
                        <div>  /media/bmike1/entertainment/Pictures
                          /home/bmike1/Pictures none bind 0 0 </div>
                        <div>  eof</div>
                        <div><br>
                        </div>
                        <div>which I do not believe was implemented
                           correctly as when I inspect 'mount' there
                          does not appear to be the entertainment
                          directory or pictures directories listed
                          anywhere. So I suppose it is wrong then....</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        -- <br>
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr">
                                <div><span style="font-size:12.8px">:-)~MIKE~(-:</span><br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>---------------------------------------------------
PLUG-discuss mailing list - <a moz-do-not-send="true" href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a moz-do-not-send="true" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
              </blockquote>
              <br>
            </div>
            <br>
            ---------------------------------------------------<br>
            PLUG-discuss mailing list - <a moz-do-not-send="true"
              href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
            To subscribe, unsubscribe, or to change your mail settings:<br>
            <a moz-do-not-send="true"
              href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss"
              rel="noreferrer" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div><span style="font-size:12.8000001907349px">:-)~MIKE~(-:</span><br>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">---------------------------------------------------
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a class="moz-txt-link-freetext" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
    </blockquote>
    <br>
  </body>
</html>