Break this down into steps

  1. sudo is a command used in several varieties of Linux and other *ix operating systems to allow a command to be executed with root privileges.
  2. pgp is an encryption|decryption system. The -e option "-e <plaintext_filename> <recipients_userid> Instructs PGP to encrypt a plaintext file with the recipient's public key." (see PGP documentation at www.freebsd.org).
  3. chown changes the ownership of a file. In this case, it changes the ownership of test_san.dat.pgp to the user with the id of "sann"
  4. Similarly, chgrp changes the group membership for the file (*ix-like operating systems divide users into groups. File access rules can be restricted to different for members of a specific group than for those not in the group).
  5. &> is file redirection.
  6. The parentheses are used for grouping.
  7. and most importantly read the documentation.

I've found that the man pages are wonderful sources of information. If the man pages aren't on your system, The FreeBSD Project, SUSE, and many others maintain on-line documentation sites.


Editorial corrections


emc

Information about American English usage here and here.

Any Northeastern US area jobs? I'm currently unemployed.


In reply to Re: Convert shell to perl by swampyankee
in thread Convert shell to perl by sago

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.