Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu system cp: omitting directory problem     - AngularJS asynchronous service testing and Mocking (Programming)

- How to set the default Fedora from the command line (Linux)

- Java objects to garbage collection (Programming)

- Linux - use chroot command (Linux)

- awk pattern matching (Programming)

- STL spatial Configurator (Programming)

- CentOS / Debian configuration Gitlab 7.1x to build self Git repository (Linux)

- Linux / Unix: chroot command examples to explain (Linux)

- Use dump restore mode fast backup and recovery system FreeBSD (Linux)

- Handle large data problems Bit-map method (Programming)

- Linux shell scripts bubble sort (Programming)

- Linux user management (Linux)

- How to install and use the Snort in Ubuntu 15.04 (Linux)

- Let VMware ESXi virtual switch support VLAN (Linux)

- Preview function to confirm the stop resource Oracle 12c new feature crsctl (Database)

- ASM learning overview (Database)

- Getting Started with Linux system to learn: how to check in a package is installed on Ubuntu (Linux)

- How to improve the performance of Ruby On Rails (Linux)

- How to remove the Linux memory Cache, Buffer and swap space (Linux)

- mysqldump MySQL command-line tool (Database)

 
         
  Ubuntu system cp: omitting directory problem
     
  Add Date : 2018-11-21      
         
       
         
  Ubuntu system cp: omitting directory`XXX 'problem-solving

When you copy a folder in the Linux system prompt as follows:

[Linuxhost @ ubuntu] # sudo cp White / usr / share / icons

cp: omitting directory `White '

Where White is what I want to copy the folder name, occurs because the warning is because there are catalog White catalog, it is not a direct copy.

Solution:

Recursive copy, add -r parameter after the cp command, like this:

[Linuxhost @ ubuntu] # sudo cp -r White

Here -r recursively on behalf of the meaning.

Similarly, when we remove the directory under linux systems also need to add -r parameter, if the directory is empty, it will be deleted directly, if the directory is not empty, then cascading deletes. However, when there will be a cascade delete problem is that if the directory exists under a lot of files or subdirectories, the system prompts one by one. If you want to delete without prompting step, then you can use the rm -rf command. f is the force of meaning, representing the force delete, silent!

chmod when I wanted to give permission cascade can also use -R note the capital R
     
         
       
         
  More:      
 
- Linux, C programming language library file handling and preparation of Makefile (Programming)
- Windows 8.1 and Ubuntu 14.04 dual system uninstall Ubuntu Tutorial (Linux)
- Python maketrans () method (Programming)
- impdp error ORA-39001, ORA-39000, ORA-31619 (Database)
- Memcached installation, configuration and monitoring (Server)
- Linux installed Cisco Packet Tracer (Linux)
- Create and modify Oracle temporary table space (Database)
- Common DDOS attacks (Linux)
- Four safety delete files under Linux tools (Linux)
- Monitoring Linux System 7 command-line tool (Linux)
- Ubuntu 10.04 to Ubuntu 10.10 Upgrade (Linux)
- iOS custom keyboard emoji expression (Programming)
- Log device files under Linux - logger (Linux)
- Hibernate learning introductory tutorial (Programming)
- RHEL5.8 physical opportunities to Read-only file system (Linux)
- Use 3G wireless network card under Linux (Linux)
- To install HDRMerge 0.4.3 under ubuntu (Linux)
- Upgrading Oracle 11.2.0.1 to 11.2.0.3 (Database)
- Not safe procedure under Linux (Linux)
- Linux installation JDK1.6 rpm.bin assembly (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.