Browse Source

mv: fix -i example and add -n example (#2482)

Matthew Peveler 6 năm trước cách đây
mục cha
commit
26c0f8eefd
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      pages/common/mv.md

+ 6 - 2
pages/common/mv.md

@@ -10,9 +10,13 @@
 
 `mv -f {{source}} {{target}}`
 
-- Do not prompt for confirmation before overwriting existing files but write to standard error before overriding:
+- Prompt for confirmation before overwriting existing files, regardless of file permissions:
 
-`mv -fi {{source}} {{target}}`
+`mv -i {{source}} {{target}}`
+
+- Do not overwrite existing files at the target:
+
+`mv -n {{source}} {{target}}`
 
 - Move files in verbose mode, showing files after they are moved: