Find all the files and directories in the demo directory

Assignment Help Computer Engineering
Reference no: EM131984983

Linuxzoo Pipelines: write the command to execute each question

Question 1: find root files

Find all the files and directories in /var (including subdirectories) that are owned by user root. Send the list of full path names to s8.

Your find command may produce "Permission Denied" errors during this search. This will have no effect on the answer, and this error can be safely ignored for this question.

Question 2: find .conf files

Find all the files in /etc (including subdirectories) end .conf Send the list of full path names to s9.

Your find command may produce "Permission Denied" errors during this search. This will have no effect on the answer, and this error can be safely ignored for this question.

Question 3: find new files

Find all the files and directories in the demo directory that are newer than s1. Send the output of the command to /var/tmp/t1 (don't send it to the demo directory). The names of the files should appear as full names. For example, the file "s5" would appear as "/home/demo/s5". The "/home/demo", if it appears in the output, should not have a trailing "/". The secret to avoiding the trailing slash is to use "/home/demo" not "/home/demo/" in the find command.

Question 4: list large files

Find all the files in the directory directory /etc/ and its subdirectories that are larger than 1 megabyte (which you can assume is 2048 blocks of 512 bytes). Send the output to s10.

Your find command may produce "Permission Denied" errors during this search. This will have no effect on the answer, and this error can be safely ignored for this question.

Question 5: small xsl files

Create a directory called smallc in /home/demo. Copy into it all the file that begin with s from /usr/include that are smaller or equal to 12K. You may find these instructions on the use of find from Developer's Daily useful.

Your find command may produce "Permission Denied" errors during this search. This will have no effect on the answer, and this error can be safely ignored for this question.

Question 6: ls grep and sort

Use ls -l and grep and sort to find all the files in /etc that were last modified in Jun. Sort this list in descending order of size and then alphabetically by name (so 2 files with the same size will appear in alphabetic order). Send the output to s7. Sorting using other techniques will probably not get the same answer.

Reference no: EM131984983

Questions Cloud

Writes your systems private and public ip addresses : Write a script in BASH that automatically writes your system's private (eth0) and public IP addresses to a file within your home directory called ipaddresses.
Write a command that will tell me the unique files : For example, "favicon.ico" is one. Write a command that will tell me the unique files that have been accessed. All of GET, HEAD, and POST count.
Why solid-state drives are preferred over hard drives : Why solid-state drives are preferred over hard drives, particularly in laptop computers. For full credit, you must give sufficient supporting technical detail.
What is the total asset turnover and the capital intensity : Silas 4-Wheeler, Inc., has an ROE of 18.06 percent, equity multiplier of 1.40, and a profit margin of 15.00 percent.
Find all the files and directories in the demo directory : Find all the files and directories in the demo directory that are newer than s1. Send the output of the command to /var/tmp/t1 (dont send it to demo directory).
Calculate and rank the country portfolios by sharpe measure : Calculate and rank the country portfolios by Treynor Measure . Calculate and rank the country portfolios by Sharpe Measure.
How many months will it be before he pays off the card : If Simon makes the minimum monthly payment and makes no other charges, how many months will it be before he pays off the card?
Identify incorrectly placed dependent clauses : Identify Incorrectly Placed Dependent Clauses. If a dependent clause is placed correctly next to the word it modifies, write Correct on the line.
Create a soft link in progs called mylink : Create a soft link in progs called mylink, which is a relative soft link to the thismonth file in your home directory.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questionwireless technologywrite down a three to four page

questionwireless technologywrite down a three to four page paper in which you-1. compare pros and cons of 3g and 4g

  In the united states there are hundreds of federal and

in the united states there are hundreds of federal and state government agencies that regulate different functions of

  How to convert a string of binary into decimal

how to convert a string of binary into decimal and a decimal into binary using java

  Make an average class with a public data member

make an Average class with a public data member to collect the sum of the integer entries and a public data member to hold the double average of the sum of the 10 integers.

  Create an expert system of your own application

Create an expert system of your own application (examples will be provided ) . Utilize at least 20 rules in your application and you must employ chaining between at least 10 rules.

  How can we manipulate a maximal-flow network model

How can we manipulate a maximal-flow network model in order to specify all arcs between each pair of nodes as the changing variable cells in Solver?

  Diffe-hellman algorithm

Alice and Bob use the Diffe-Hellman to agree on a secret key. They select the prime p = 11, and a primitive root mod 11 g = 2.

  Which processor will execute program c more quickly

Which processor will execute program C more quickly? At what percentage of complex instructions will the performance of the two processors be equal?

  Explain most computer memories are composed of a large

Most computer memories are composed of a large number different devices that are interconnected to form the whole memory array which is accessed using the address bus.

  Print the name and number of players in the game

Write a program that prints on separate lines, the name of your favorite book, its author, category, price, and total number of pages.

  How does multiprocessing improve a computers efficiency

How does multiprocessing improve a computer's efficiency? What techniques can used to make pipelining efficient when executing conditional BRANCH instructions?

  Create data video by recording interactive data exploration

Create a data video/movie, by recording/filming an interactive data exploration. It should not be long, but how interesting/revealing can you make it?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd