作业

  1. 1. The meaning of permission description of /tmp

drwxrwxrwt36 root root 1024000 Feb 17 03:16 /tmp

  1. 2.       Writea utility to collect “well-known” files into convenient directory holders

collect <directory>*

4   The utility shouldcollect all executables, libraries, sources and includes from each directorygiven on the command line or entered by the user (if no arguments were passed)into separate directories. By default, the allocation is as follows:

§  executables go to~/bin

§  libraries (lib*.*)go to ~/lib

§  sources (*.c, *.cc,*.cpp, *.cxx) go to ~/src

§  includes (*.h,*.hxx) go to ~/inc

4   The utility shouldask whether another directory should be used in place of these defaultdirectories.

4   Each move should berecorded in a log file that may be used to reverse the moves (extra points forwriting a reverse utility!). The user should have an option to use a log fileother than the default (~/organize.log).

4   At the end, theutility should print statistics on file allocation: how many directories wereprocessed, how many files in each category were moved and how long thereorganization was (the processing time in seconds).

4   The utility shouldwait only limited time for user input; if no input, then use defaults.


你可能感兴趣的:(linux)