Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu system cp: omitting directory problem     - Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler (Linux)

- MySQL + Heartbeat + DRBD deployment architecture (Server)

- Actual custom yum repository ---- gem commands commonly used parameters (Linux)

- SSH mutual trust configuration (Server)

- C language sorting instance (select, bubble, insert, binary, fast) (Programming)

- learning Linux ls command examples (Linux)

- Use 3G wireless network card under Linux (Linux)

- A command to install Sublime Text 3 on Manjaro / Archlinux (Linux)

- Security basics: simple analytical framework for Linux system firewall (Linux)

- Multipath configuration under Linux (Linux)

- About phpwind 5.01-5.3 0day analysis of the article (Linux)

- Oracle Data Guard LOG_ARCHIVE_DEST_n optional attribute parameters (Database)

- OpenSSL Introduction and compilation steps on Windows, Linux, Mac systems (Linux)

- Story timestamp and time zones: daily programmer (Programming)

- Manage SQL Server services login (start) account and password (Database)

- NIC configuration parameters under Linux (Linux)

- 29 practical examples Linux system / network administrator of nmap (Linux)

- Role Object of registerNatives () method (Programming)

- Oracle GoldenGate encryption (Database)

- About Git (Linux)

 
         
  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:      
 
- Axel install plug under CentOS 5/6 acceleration yum downloads (Linux)
- Mac OS X systems create Ubuntu USB boot disk for the Mac (Linux)
- Variables Python variables (Programming)
- Linux Network Programming - signal blocking and shielding (block, unblock) (Programming)
- RHEL5 / 6 Installation Notes (Linux)
- Linux run queue process scheduling (Programming)
- Cobbler remotely install CentOS system (Linux)
- Linux Getting Started tutorial: Experience Xen Virtual Machine chapter (Linux)
- MySQL and Oracle time zone settings compare (Database)
- Python Basics Tutorial - lambda keyword (Programming)
- NFS-based services and service utilization Corosync DRBD high availability cluster configuration, respectively (Server)
- Python regular expressions: how to use regular expressions (Programming)
- Arduino UNO simulation development environment set up and run simulation (Linux)
- Shell Common Command Summary (Programming)
- Nginx request processing (Server)
- Linux operating system set up to effectively prevent ARP attacks (Linux)
- PXE installation of Linux servers (Server)
- EXP-00091: Exporting questionable statistics Processing Method (Database)
- Spark On YARN cluster installation deployment (Server)
- Shared directory settings between Linux and Linux (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.