Answered step by step
Verified Expert Solution
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
- Create a file called stdout.out
- Contains the long listing and human readable of the /bin directory
- Append to the file (stdout.out) the current date
- Display the content of the file /etc/passwd
- Pipe the standard output into a sort program.
- Do a unique sort (man sort)
- Pipe into wc to count the number of characters only
- Append this to stdout.out
- Display to the screen the content of /etc/shadow
- Make sure you are not root
- Append the standard error to the stdout.out
- Do a long listing of the /bin directory
- Pipe into more or less
- What are the last 10 files
- Pipe into more or less
- Use cut to display only the file permissions
- The long listing directory for the current directory
- Take the output of the cut do a unique sort
- Count the different permissions found in the directory
- Issue the following commands
- Cat file_not found.txt
- File /sbin/ifconfig
- Grep root /etc/passwd /etc/nothere > grepresults
- What is the contence of grepresults/
- /etc/init.d/crond start > /tmp/output 2>&1
- What is the contence of output 2>&1
- Issue the same commands again redirecting standard out to a file /tmp/output and standard error to /tmp/error
- Count the number of hidden files in your ~ directory
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started