Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago