The file /usr/share/dict/words holds a list of English words…

The file /usr/share/dict/words holds a list of English words. We want to use egrep to display only those which match the following rules;  The word has tow or more quote symbol ‘ in it Each quote symbol is followed by one or more character The word should not start with a quote symbol ‘ In addition; we are working with Ubuntu Linux on the bash shell using GNU egrep tool Here are some examples of the words which will be matched; bo’s’n bo’s’n’s bo’s’ns Which of the following is the best solution?

We want to list all the processes running on our system but,…

We want to list all the processes running on our system but, instead of displaying the default information on each, we want to display the following columns (in that specific order): Username of the user who started the process Niceness level of the process Process Identifier Start time of the process Name of the command that was issued to start it (along with its arguments) Please note: it is part of this exercise to have you search through the ps manpage for some of the necessary syntax if it has not all been introduced in the slides examples.

We want to use the touch command in order to set the time of…

We want to use the touch command in order to set the time of last modification of all the files in our current working directory to the current time. To this end, we issue the following command:  touch * However, we realize that hidden files are not affected. How do we change that without having to modify the “touch *” command that we are using?

A palindrome is a word that reads the same from right to lef…

A palindrome is a word that reads the same from right to left or left to right; e.g., radar.   We want to use egrep on one of the Linux dictionaries files, located at /usr/share/dict/american-english, in order to identify palindromes that are EXACTLY 5 letter-long. 

We want to use egrep to match lines of a text file named num…

We want to use egrep to match lines of a text file named numbers.txt that contain at least 1 number between 0 and 255.   Examples of numbers that would be matched: 255, 254, 123, 98, 5, 0.   As an additional constraint, such a number cannot be headed by zeroes.  Examples of numbers that would not be matched: 2134, 256, 092, 05, 005 and 000.  Provide the command line to do so. 

We have a folder named “/home/tux/pictures” that contains al…

We have a folder named “/home/tux/pictures” that contains all our photos. Over the years, we have imported them from various sources and various formats. We want to move out of this folder all the photos who are not of a well-known format like gif jpg or jpeg, and put them into a subfolder name “/home/tux/pictures/unknown_formats/”. Provide one line of shell that will move these files in the appropriate subfolder, regardless of what our current working directory is. Along with this one line of shell, provide any command to set specific options of the shell so that your solution works regardless of the default options being turned on right now.

We want to use the whatis tool to figure out what the comman…

We want to use the whatis tool to figure out what the command named foobar does. We know it exists both in sections 3 & 9 of the manual so we’d like to specify for whatis to only look into section 9. The textbook mentions that man -f or whatis can not be that specific but the whatis tool is actually able to let you specify a section number. Which of the following syntax will allow you to do so?