14,954
edits
| Line 67: | Line 67: | ||
tional attributes: context, links, xattr, all | tional attributes: context, links, xattr, all | ||
-R, -r, --recursive | -R, -r, --recursive | ||
copy directories recursively</pre></ref> | copy directories recursively</pre></ref><ref>[https://superuser.com/questions/61611/how-to-copy-with-cp-to-include-hidden-files-and-hidden-directories-and-their-con unix - How to copy with cp to include hidden files and hidden directories and their contents? - Super User]</ref> | ||
** If the folder {{kbd | key=new_dir}} exists already, system will create the folder {{kbd | key=old_dir}} and all files and sub folders under {{kbd | key=old_dir}} will copy to the path {{kbd | key=new_dir}}/{{kbd | key=old_dir}}. | ** If the folder {{kbd | key=new_dir}} exists already, system will create the folder {{kbd | key=old_dir}} and all files and sub folders under {{kbd | key=old_dir}} will copy to the path {{kbd | key=new_dir}}/{{kbd | key=old_dir}}. | ||
** If the folder {{kbd | key=new_dir}} NOT exists, all files and sub folders under {{kbd | key=old_dir}} will copy to the folder {{kbd | key=new_dir}}. | ** If the folder {{kbd | key=new_dir}} NOT exists, all files and sub folders under {{kbd | key=old_dir}} will copy to the folder {{kbd | key=new_dir}}. | ||
| Line 80: | Line 80: | ||
* {{kbd | key=mv ''/path/to/file /path/to/new_folder_name''}} ({{Linux}}) | * {{kbd | key=mv ''/path/to/file /path/to/new_folder_name''}} ({{Linux}}) | ||
* {{kbd | key=rename ''old_folder_name new_folder_name''}} ({{Win}})<ref>[http://www.computerhope.com/renamehl.htm MS-DOS ren and rename command help]</ref> | * {{kbd | key=rename ''old_folder_name new_folder_name''}} ({{Win}})<ref>[http://www.computerhope.com/renamehl.htm MS-DOS ren and rename command help]</ref> | ||
=== Delete files or directory === | === Delete files or directory === | ||