Задания 1
Получение справки
ls - List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.
-m fill width with a comma separated list of entries
-S sort by file size, largest first
-t sort by modification time, newest first
cp - Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.
-R, -r, --recursive copy directories recursively
-u, --update copy only when the SOURCE file is newer than the destination file or when the destination file is missing
-t, --target-directory=DIRECTORY - copy all SOURCE arguments into DIRECTORY
mv (до опций + -u, -t, -v).
mv - Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
-t, --target-directory=DIRECTORY - move all SOURCE arguments into DIRECTORY
-u, --update - move only when the SOURCE file is newer than the destination file or when the destination file is missing
-v, --verbose - explain what is being done
Задания 3
mv arg1 arg2 |
arg1 файл |
arg1 папка |
arg1 не сушествует |
arg2 файл |
arg1.1 is gone |
does not work |
does not work |
arg2 папка |
arg1 is now in folder arg2 |
arg1 is now in folder arg2 |
does not work |
arg2 не сушествует |
arg1 has a new name |
arg1 has a new name |
does not work |
cp arg1 arg2 |
arg1 файл |
arg1 папка |
arg1 не сушествует |
arg2 файл |
нечего ? |
тоже нет результата |
does not work |
arg2 папка |
arg1 is copied in arg 2 |
нечего |
does not work |
arg2 не сушествует |
copied arg1 but new name |
does not work |