![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| listing files in a directory in bases of size | arunkumar_mca | UNIX for Dummies Questions & Answers | 1 | 02-13-2008 03:38 AM |
| Find files size 0 within a directory | astonmartin | Shell Programming and Scripting | 3 | 02-07-2008 12:49 PM |
| files of size 0 need to be deleted inside a directory | namishtiwari | Shell Programming and Scripting | 2 | 01-28-2008 12:11 AM |
| bash script working for small size files but not for big size files. | davidpreml | Shell Programming and Scripting | 1 | 11-01-2006 07:06 AM |
| How to check if 3 files have same size in directory | oggle | Shell Programming and Scripting | 5 | 02-16-2005 08:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Cp files (>5 Mb size) from one directory to another
Hi All,
I have a requirement like below, I want to transfer few file of size > 5 Mb from one directory to anotehr directory. Please let me know the command how can i do that Sorry if it looks silly Senthil |
| Forum Sponsor | ||
|
|
|
|||
|
The mv command should be fairly agnostic to the sizes of the files. If you are moving from one file system (mount point) to another and the destination has issues with large files, you might get weird error messages, but that would be like when you are talking gigabytes.
|
|
|||
|
There are various variants of the find command, but see if the following finds the files you want for a start.
Code:
find path/to/directory -type f -size +5000 |
|
|||
|
copying files
Hi,
If the files in the same directory you can use one of these comands: go to the path where is the file is located by cd comand then do cp [the path] [the file name [the pathe where you want to keep][the file name] you can also use mv in the same way If the files are in different filesystems you have to use: FTP comand good luck |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|