Question: What is command for Bash stdin, stdout & stderr Create a file called stdout.out Contains the long listing and human readable of the /bin directory

What is command for Bash stdin, stdout & stderr

  1. Create a file called stdout.out
    1. Contains the long listing and human readable of the /bin directory
  2. Append to the file (stdout.out) the current date
  3. Display the content of the file /etc/passwd
    1. Pipe the standard output into a sort program.
    2. Do a unique sort (man sort)
    3. Pipe into wc to count the number of characters only
    4. Append this to stdout.out
  4. Display to the screen the content of /etc/shadow
    1. Make sure you are not root
    2. Append the standard error to the stdout.out
  5. Do a long listing of the /bin directory
    1. Pipe into more or less
      1. What are the last 10 files
  6. Use cut to display only the file permissions
    1. The long listing directory for the current directory
    2. Take the output of the cut do a unique sort
    3. Count the different permissions found in the directory
  7. Issue the following commands
    1. Cat file_not found.txt
    2. File /sbin/ifconfig
    3. Grep root /etc/passwd /etc/nothere > grepresults
      1. What is the contence of grepresults/
    4. /etc/init.d/crond start > /tmp/output 2>&1
      1. What is the contence of output 2>&1
  8. Issue the same commands again redirecting standard out to a file /tmp/output and standard error to /tmp/error
  9. Count the number of hidden files in your ~ directory

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!