subject

Linuxzoo pipelines: write the command to execute each question

question 10: 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

question 11: 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 12: 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 13: 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 14: 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 15: 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.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:10, katherineweightman
When copying and pasting text, the first step is move your cursor type the text select the copy command select the paste command
Answers: 2
image
Computers and Technology, 22.06.2019 18:00, alexj29227405
Write a method named addall that could be placed inside the hashintset class. this method accepts another hashintset as a parameter and adds all elements from that set into the current set, if they are not already present. for example, if a set s1 contains [1, 2, 3] and another set s2 contains [1, 7, 3, 9], the call of s1.addall(s2); would change s1 to store [1, 2, 3, 7, 9] in some order. you are allowed to call methods on your set and/or the other set. do not modify the set passed in. this method should run in o(n) time where n is the number of elements in the parameter set passed in.
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, brittneyrenae7338
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words. size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words. size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
image
Computers and Technology, 23.06.2019 20:40, aurikmah2005
Instruction active describing list features which statements accurately describe the features of word that are used to create lists? check all that apply. the tab key can be used to create a sublist. the enter key can be used to add an item to a list. the numbering feature allows for the use of letters in a list. the numbering feature can change the numbers to bullets in a list. the multilevel list feature provides options for different levels in a list.
Answers: 2
You know the right answer?
Linuxzoo pipelines: write the command to execute each question

question 10: ls grep an...

Questions in other subjects: