Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-2985

RH124-18: Text additions to Chapter 4. Creating, Viewing, and Editing Text Files

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • RH124 - RHEL 7 0
    • RH124 - RHEL 7 0
    • RH124
    • None
    • ROL

      URL:
      Reporter RHNID:
      Section: -
      Language: |
      Workaround:

      Description: https://rol.redhat.com/rol/roc/course/EditTextFiles.html

      In the table for "Output Redirection Operators", I would like to see &>>file added in the column with >>file 2>&1 or I would like to see it added as a row about >>file 2>&1. If the description for (3) is changed (as listed below), then this addition probably isn't necessary.

      The description for (3) reads, "The order of redirection is important to avoid unexpected command behavior. Redirect stdout before adding stderr to stdout." I might add a couple of sentences so that it reads, "The order of redirection is important to avoid unexpected command behavior. 2>&1 basically says to send stderr to the same place as stdout. For this to work, stdout needs to be redirected first. Although &>> is an alternate way to append both stdout and stderr to a file, 2>&1 is the method needed to send both sdtout and stderr through a pipe."

      One example of tee that I sometimes use in class is using tee in combination with grub-md5-crypt:

      1. grub-md5-crypt | tee /tmp/grub-md5

      While this example isn't so useful in RHEL 7, maybe we can think of an example where a command prompts the user for additional input (so simple redirection wouldn't work) and outputs something like an md5 or sha512 sum that users in runlevel 3 wouldn't want to have to write down manually.

            rht-cchang Chen Chang (Inactive)
            rht-miphilli Michael Phillips
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: