adds test

This commit is contained in:
waldek 2021-05-11 07:57:06 +02:00
parent 695b5d9643
commit 74f2cb5633
1 changed files with 4 additions and 1 deletions

View File

@ -220,6 +220,7 @@
* D) `rn newfile.txt afile.txt` * D) `rn newfile.txt afile.txt`
* E) `touch newfile.txt afile.txt` * E) `touch newfile.txt afile.txt`
2. You want to copy a directory, `MyFiles`, to a USB flash drive that uses the FAT filesystem. The contents of `MyFiles` are as follows: 2. You want to copy a directory, `MyFiles`, to a USB flash drive that uses the FAT filesystem. The contents of `MyFiles` are as follows:
```bash ```bash
$ ls -l MyFiles/ $ ls -l MyFiles/
total 276 total 276
@ -227,12 +228,14 @@ total 276
-rw-r--r-- 1 rod users 42667 Nov 8 15:12 outline.pdf -rw-r--r-- 1 rod users 42667 Nov 8 15:12 outline.pdf
-rw-r--r-- 1 sam users 105979 Nov 8 15:12 Outline.PDF -rw-r--r-- 1 sam users 105979 Nov 8 15:12 Outline.PDF
``` ```
The USB flash drive is mounted at `/media/usb`, and so you type `cp -a MyFiles /media/`. What problem will occur when you attempt to copy these files?
The USB flash drive is mounted at `/media/usb`, and so you type `cp -a MyFiles /media/`. What problem will occur when you attempt to copy these files?
* A) The command will fail because it tries to create links. * A) The command will fail because it tries to create links.
* B) The `MyFiles` directory will be copied, but none of its files will be copied. * B) The `MyFiles` directory will be copied, but none of its files will be copied.
* C) One file will be missing on the USB flash drive. * C) One file will be missing on the USB flash drive.
* D) One file's name will be changed during the copy. * D) One file's name will be changed during the copy.
* E) Everything will be fine; the command will work correctly. * E) Everything will be fine; the command will work correctly.
3. You type `mkdir one/two/three` and receive an error message that reads, in part, `No such file or directory`. What can you do to overcome this problem? (Select all that apply.) 3. You type `mkdir one/two/three` and receive an error message that reads, in part, `No such file or directory`. What can you do to overcome this problem? (Select all that apply.)
* A) Add the `--parents` parameter to the `mkdir` command. * A) Add the `--parents` parameter to the `mkdir` command.
* B) Issue three separate `mkdir` commands: `mkdir one`, then `mkdir one/two`, and then `mkdir one/two/three`. * B) Issue three separate `mkdir` commands: `mkdir one`, then `mkdir one/two`, and then `mkdir one/two/three`.