Question

Unix is known for three primary strengths. Primarily finding files, transforming things i.e. text...

Unix is known for three primary strengths. Primarily finding files, transforming things i.e. text, and managing things i.e. disk space. Provide a brief example of each strength. Also, identify which Unix strength could be used the most in your career field.

Please answer for this question ASAP.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Done. Please have a look and if you want to change something or dont understand something leave a comment

Unix strength:

1 Find Files:

Unix provides lot of options to find files. Basic find command is like :

find (file location) [-options] (which file to find)

There are multiple options which can be used depending upon search condition. Eg.

find . -name test1.txt

above command looks for a file name i.e. test1.txt in the current directory.

Or

find . -mtime 2

above command means list all the files in the current directory that are modified in last 2 days

We can even search inside the file as well. For instance if we are look in the log files to find a particular type of exception e.g RunTimeException:

find ./ Tomcat9.0/logs -name “*.log” -print | xrags grep “RunTimeException”

2. SED command

SED is stream Editor command that is very powerful and can perform lot of operation and file manipulation like replace strings in file and insert and delete things. It also provides option for filtering the results also. What makes SED more powerful is support for Regular expressions. SED reads an input stream , performs operation and then prints the results. It provides lots of options like:

‘s’ is for substitutes a string with another but only for first occurrence but if we want to replace all the instances of one word by another we should use ‘g’ option instead

sed ‘g/me/you/’ test1.txt

Above will replace all the instances of “me” with “you”in test1.txt .

We can also replace the text in some particular line of the file as well or even can mention the range for changing words. Eg.

sed ‘1 10 s/me/you/’ test1.txt

will replace “me” with “you” only from line 1 to 10.

3. To manage Disk space:

du command is used to managing disk space. We can analyse disk space usage by command

du -S /*

du -a -h /home/user/unix

will print all the files in /home/user/unix directory with their space usage in human readable form

which specify disk space used by all the files and directories

And df command can be used to show disk space used by files and also how much space is available.


In addition to Find and sed other command which is very frequently in career field are grep and diff, ls

Grep: which is used for searching a text string in a file. You can make case insensitive search

grep -i “Unix” test.txt

will do case insensitive search for word “unix” in file test.txt

diff Another important command is diff which can be used to compare two files. E.g

diff test1.txt test2.txt

ls is used for displaying information about all the files in the current directoty

ls -la .

list all the files in the current directory

Add a comment
Know the answer?
Add Answer to:
Unix is known for three primary strengths. Primarily finding files, transforming things i.e. text...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Assignment Details The Unit 6 Assignment requires you to consider how effective teams are built. Some...

    Assignment Details The Unit 6 Assignment requires you to consider how effective teams are built. Some considerations in this assignment include the traits of an effective team leader as well as the strategies one would use to recruit team members that would work effectively together. Using material from Chapter 12 of your text as well as the article in the supplemental reading (Rao, 2016), you will write an informative essay sharing best practices for effective team-building. Outcomes evaluated through this...

  • Case Study: Johnson Motor Corporation By: Theresa Ceccarelli, Ph.D. Johnson Motor Corporation operates several proving grounds...

    Case Study: Johnson Motor Corporation By: Theresa Ceccarelli, Ph.D. Johnson Motor Corporation operates several proving grounds worldwide, for development and validation testing of new vehicles. The company has a long history in the automotive industry and has a strong reputation for quality and service. Dan Smith oversees several of these sites. In one particular site in Michigan, Smith has a garage that consists of 140 full time mechanics, most of which are men. The Director, Dan Smith has been with...

  • 1 Overview and Background Many of the assignments in this course will introduce you to topics in ...

    1 Overview and Background Many of the assignments in this course will introduce you to topics in computational biology. You do not need to know anything about biology to do these assignments other than what is contained in the description itself. The objective of each assignment is for you to acquire certain particular skills or knowledge, and the choice of topic is independent of that objective. Sometimes the topics will be related to computational problems in biology, chemistry, or physics,...

  • Please, i need Unique answer, Use your own words (don't copy and paste). Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). Please, don't use handwriting, Use your keyboard. I need you to  redrafting my answer, please.. Q1. How does UPS's approach toward sustainability impact the triple bottom line? Be specific. As a founding member of UPS’s sustainability steering committee have wrestled with the challenge and developed a point of view, one that emphasizes the power of organizational momentum and embraces “enlightened self-interested the companies have a responsibility to contribute...

  • internal project 1 anything helps! thank you!! Instructions: Study the case that starts on page 3...

    internal project 1 anything helps! thank you!! Instructions: Study the case that starts on page 3 carefully. Then write concise answers to the following questions regarding the internal control system of Duarf, Inc. Clearly label your responses with proper headings and subheadings. Be very specific and precise. Answers that appear to be beating around the bush will not get any credit. 1. What are the controls in place that under normal conditions should function well to prevent embezzlements or frauds?...

  • A new version of the operating system is being planned for installation into your department’s production...

    A new version of the operating system is being planned for installation into your department’s production environment. What sort of testing would you recommend is done before your department goes live with the new version? Identify each type of testing and describe what is tested. Explain the rationale for performing each type of testing. [ your answer goes here ] Would the amount of testing and types of testing to be done be different if you were installing a security...

  • Q.3\ How could IT/e-banking assist an organization/ a bank to achieve a competitive advantage in the...

    Q.3\ How could IT/e-banking assist an organization/ a bank to achieve a competitive advantage in the marketplace? Explain through the case of Citibank. please make sure you give a unique answer (not copied one) ,Please no hand writing, and need references. This question is from ECOM 421 e-Business Strategies and Business Models course e-Business Strategy and Models in Banks : Case of Citibank E-business strategy in Citibank: Banks today are up-to-date with both the pros and cons of the internet....

  • Case study Company Case Campbell Soup Company: Watching What You Eat You might think that a well-known, veteran consumer products company like the Campbell Soup Company has it made. After all, when pe...

    Case study Company Case Campbell Soup Company: Watching What You Eat You might think that a well-known, veteran consumer products company like the Campbell Soup Company has it made. After all, when people think of soup, they think of Campbell’s. In the $5 billion U.S. soup market, Campbell dominates with a 44 percent share. Selling products under such an iconic brand name should be a snap. But if you ask Denise Morrison, CEO of Campbell, she’ll tell you a different...

  • What was Novartis ́ main challenge in managing talent in China? Novartis case . Global Talent...

    What was Novartis ́ main challenge in managing talent in China? Novartis case . Global Talent Management at Novartis I do not know how to post the PDF case? cloud you tell me how to give the case Sourcing Talent Globally The company was actively involved in sourcing talent from increasingly dispersed locations. Managers were encouraged to keep an updated list of leadership talent. In addition, the company 7 708-486 Global Talent Management at Novartis had recently expanded its hiring...

  • e-Business Strategy and Models in Banks : Case of Citibank E-business strategy in Citibank: Banks today...

    e-Business Strategy and Models in Banks : Case of Citibank E-business strategy in Citibank: Banks today are up-to-date with both the pros and cons of the internet. They are aware of the opportunities and threats that are associated with the Web. Not a single traditional bank is brave enough to face investment analysts without an Internet strategy. But even a very thoughtful approach to the Web may do no good to the company/ organization. The main purpose behind launching online...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT