This is a discussion on How to copy . files from current directory within the Linux software forums, part of the Linux Getting Started category; Just stuck with a small trivial problem. I have a directory called dir1 and inside there are a few .hidden ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Just stuck with a small trivial problem. I have a directory called dir1 and inside there are a few .hidden files, normal files and directory files.
If I try to copy using " cp -rp dir1/.* /testdir/ ", then it copies the parent directory above the dir1 also... i.e, even .. My question is....what is the syntax to copy .hidden files and .hiddendirs below the current directory to another directory?. ricc |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linux Copy an audio cd / track to hard disk | Peterrodg | Getting started tutorials | 2 | 01-12-2008 11:50 PM |
| UNIX Display or list number of files in a current directory | raj | Getting started tutorials | 1 | 12-07-2007 11:55 AM |
| Need help writing simple copy script | z3cka | Shell scripting | 4 | 08-27-2006 03:29 PM |
| Linux use ghost or copy a partition to another drive | raj | Linux software | 2 | 07-17-2006 02:56 AM |
| DVD copy howto | tom | Getting started tutorials | 1 | 01-11-2006 11:43 PM |