Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

On Thor, execute the following command which is actually a single line program in shell language: wc /usr/share/dict/words > lab01.txt You can redirect the output

image text in transcribed

On Thor, execute the following command which is actually a single line program in shell language: wc /usr/share/dict/words > lab01.txt You can redirect the output of a program to a file or to another program. The above one line program redirects output from the wc program. Instead of displaying the output, the shell places the output in a file named lab01.txt. If a file with that name already exists, the file is replaced with a new one containing the output from wc. Execute the command wc/usr/share/dict/words > > lab01.txt after previously running wc/usr/share/dict/words > lab01.txt and you should see 2 lines of text in lab01.txt. You can view the contents of a file with the commands cat, less, and more among others. Try cat lab01.txt. Try less labo1.txt Read man less You can specify a file to be the source of input to a program. Execute sort-r/usr/share/dict/words I list of words in reverse alphabetic order. For your answer to this question, execute the following command. Then, copy and paste its output into the answer field. hostname | md5sum The output will look similar to "6afedb7a8348eb4ebdbe0c77ef92db4c - without the quotes. Copy everything including the final ' - character into the answer field. The "pipe" character, '|', redirects the output of one command into the input of the next command. The hostname program outputs the name of the computer where the program is executing. The md5sum program outputs a cryptographic sum calculated from its input. Use man md5sum if your want more information. Being able to string multiple commands together with pipes is a key feature of Unix. "The Unix philosophy emphasizes building short, simple, clear, modular, and extensible code that can be easily maintained and repurposed by developers other than its creators. The Unix philosophy favors composability as opposed to monolithic design." - https: //en.wikipedia.org/wiki/Unix_philosophy In some respects, the Unix philosophy is the exact opposite of the Windows philosophy. On Thor, execute the following command which is actually a single line program in shell language: wc /usr/share/dict/words > lab01.txt You can redirect the output of a program to a file or to another program. The above one line program redirects output from the wc program. Instead of displaying the output, the shell places the output in a file named lab01.txt. If a file with that name already exists, the file is replaced with a new one containing the output from wc. Execute the command wc/usr/share/dict/words > > lab01.txt after previously running wc/usr/share/dict/words > lab01.txt and you should see 2 lines of text in lab01.txt. You can view the contents of a file with the commands cat, less, and more among others. Try cat lab01.txt. Try less labo1.txt Read man less You can specify a file to be the source of input to a program. Execute sort-r/usr/share/dict/words I list of words in reverse alphabetic order. For your answer to this question, execute the following command. Then, copy and paste its output into the answer field. hostname | md5sum The output will look similar to "6afedb7a8348eb4ebdbe0c77ef92db4c - without the quotes. Copy everything including the final ' - character into the answer field. The "pipe" character, '|', redirects the output of one command into the input of the next command. The hostname program outputs the name of the computer where the program is executing. The md5sum program outputs a cryptographic sum calculated from its input. Use man md5sum if your want more information. Being able to string multiple commands together with pipes is a key feature of Unix. "The Unix philosophy emphasizes building short, simple, clear, modular, and extensible code that can be easily maintained and repurposed by developers other than its creators. The Unix philosophy favors composability as opposed to monolithic design." - https: //en.wikipedia.org/wiki/Unix_philosophy In some respects, the Unix philosophy is the exact opposite of the Windows philosophy

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions