CMIS 325 Day 14 Name:_________________________________________ Paste your answser and pipeline. What files in the filesystem whose names end in .txt are not considered some kind of text by the file command? How many are there? Hints: 1. the files whose names contain .txt 2. reduce that to the files whose names end in .txt 3. file command them 4. reduce that to the non-text files 5. count them Then, how many different kinds of files are those? Hint: cut, sort How many files or folders in the system have names that contain a space: ___________________________ Show the username, PID and TIME of the five processes in the system that have used the most TIME as reported by 'ps ax'. ___________________________________________ PPID is the parent PID (viewable with the axl option of ps). Which process spawned the most number of child processes: __________ How many did it spawn:_____________ Make a list of each process and the number of sub-processes it spawned. hint: awk associative array to calculate frequency. ________________________________ SKIP BELOW: ************************* Do any of the Snn* symbolic links in the current runlevel's rc folder point to files whose names are not the same as the * part of the Snn* symbolic link: _______________________________________________ in other words, does each filename in one directory exist in the other directory. for i in `ls /etc/rc2.d/S* | sed 's?.*/S..??g'` ;do if ls /etc/init.d | grep $i >/dev/null ;then : ;else echo Missing $i ;fi ;done In general, is one list a subset of another? Make a pipeline that will test if every word of one file is in another file. ____________________________________________ Make a pipeline that determines if there are any copies of a file in some particular folder.