Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Cp files (>5 Mb size) from one directory to another Post 302195108 by era on Wednesday 14th of May 2008 09:44:38 AM
Old 05-14-2008
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.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check if 3 files have same size in directory

I need to determine if any three files have the same file size in a specified directly? I have got as far as listing the file sizes but where to go from here? ls -al |sort -n -r +4 | awq '{print $5}' Thanks in anticipation (5 Replies)
Discussion started by: oggle
5 Replies

2. Shell Programming and Scripting

files of size 0 need to be deleted inside a directory

Hiiii, I have written a script which takes backup of some log files. let say the backuplocation is --- /abc/backuplocation -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt23994.log -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt3601.log -rw-r--r-- 1... (2 Replies)
Discussion started by: namishtiwari
2 Replies

3. UNIX for Dummies Questions & Answers

listing files in a directory in bases of size

Hi , I want to list all files in the order of size . Just want to know which files occupies more size and which occupies less size . Is it possible with ls command ? :) Thanks, Arun. (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

4. Shell Programming and Scripting

Just listing size, timestamp & name of files in a directory

How can I list the files in a directory and just show the file size, date stamp, timestamp and file name.. I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
Discussion started by: Jazmania
4 Replies

5. Shell Programming and Scripting

Getting the total file size for certain files per directory

Hi, I am trying to get the total file size for certain files per directory. I am using find /DirectoryPath -name '*.dta' -exec ls -l {} \; | awk '{ print $NF ": " $5 }' > /users/cergun/My\ Documents/dtafiles.txt but this lists all the files in the directories. I need the total... (9 Replies)
Discussion started by: cergun
9 Replies

6. Shell Programming and Scripting

How to traverse directory structure and sum size of files?

How do I write a bash or ruby or perl or groovy script to print all the files in my directory tree that are one-to-two years old, the size of each file, and the sum of file sizes and then delete them? I was using find . -atime +365 -exec rm '{}' \; but the problem was that I could not... (5 Replies)
Discussion started by: siegfried
5 Replies

7. UNIX for Dummies Questions & Answers

How to get the set of files size as a sum in a directory.

Hi, Can someone help me to get the complete files size (sum) over a perod time (1 day,2days)in a directory. eg: Directory :ABC I have a1,a2,a3 files are created in last 24 hours so I need to get the some of all these files. I am using the below find command but its giving me the... (1 Reply)
Discussion started by: gaddamja
1 Replies

8. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

9. Homework & Coursework Questions

Sorting files by size in another directory

1. The problem statement, all variables and given/known data: I'm trying to use a directory path to enter a new directory and sort the files there. I'm using the language C with a system call in Unix to sort the files from smallest to largest. 2. Relevant commands, code, scripts, algorithms:... (1 Reply)
Discussion started by: TedFTW
1 Replies

10. Shell Programming and Scripting

How to check total files size in hdfs directory?

Is there a way to calculate the total file size of HDFS file directory in GB or MB? I dont want to use du/df command. Without that is there a way HDFS Directory - /test/my_dir (1 Reply)
Discussion started by: rohit_shinez
1 Replies
mount_hfs(1M)															     mount_hfs(1M)

NAME
mount_hfs: mount, umount - mount and unmount HFS file systems SYNOPSIS
specific_options] {special|directory} specific_options] special directory {special|directory} DESCRIPTION
The command mounts file systems. Only a superuser can mount file systems. Other users can use to list mounted file systems. The command attaches special, a removable file system, to directory, a directory on the file tree. directory, which must already exist, will become the name of the root of the newly mounted file system. special and directory must be given as absolute path names. If either special or directory is omitted, attempts to determine the missing value from an entry in the file. can be invoked on any removable file system, except If is invoked without any arguments, it lists all of the mounted file systems from the file system mount table, The command unmounts mounted file systems. Only a superuser can unmount file systems. Options (mount) recognizes the following options: Attempt to mount all file systems described in All optional fields in must be included and supported. If is specified, all HFS file systems in are mounted. If is specified in an entry's option list, this entry is skipped. File systems are not necessarily mounted in the order listed in Verbose mode. Write a message to standard output indicating which file system is being mounted. Force the file system to be mounted, even if the file system clean flag indicates that the file system should have run on it before mounting (see fsck(1M)). This option is valid only on HFS file systems. Specify the HFS file system type (see fstyp(1M)). Limit actions to local file systems only. Specify options specific to the HFS file system type. specific_options is a list of comma separated suboptions and/or keyword/attribute pairs intended for the HFS specific module of the command. The following specific_options are valid on HFS file systems. Use all default options. When given, this must be the only option specified. Mount read-write (default). Mount read-only. Allow set-user-ID execution (default). Do not allow set-user-ID execution. Enable, where possible, asynchronous writes to disk. Enable delayed or buffered writes to disk. This is the default. Enable relaxed posting of file system metadata. Enable rigorous posting of file system metadata. This is the default. Attempt to enable the creation of files greater than 2 gigabytes in size. File systems have to be created or configured to enable large files (see mkfs_hfs(1M) and fsadm_hfs(1M)). Attempt to disable the creation of files greater than 2 gigabytes in size. File systems have to be created or configured to disable large files. (see mkfs_hfs(1M) and fsadm_hfs(1M)). Enable user quotas (valid only for file systems). HFS supports user quotas only. Disable disk quotas (default). Mounting with the option also enables quotas for the file system, unlike some other systems, which require the addi- tional invocation of the command after the file system has been mounted (see quotaon(1M)). Running does no harm, but it is not necessary. Report the list of mounted file systems in the format. Prevent the display of error messages resulting from an attempt to mount already mounted file systems. Mount the specified file system as read-only. This option is equivalent to the specific_option. Physically write-protected file systems must be mounted in this way or errors occur when access times are updated, whether or not any explicit write is attempted. Report the regular output with file system type and flags; however, directory and special fields are reversed. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. Options (umount) recognizes the following options: Attempt to unmount all file systems described in All optional fields in must be included and supported. If is specified, all HFS file systems in are unmounted. File systems are not necessarily unmounted in the order listed in Specify the HFS file system type (see fstyp(1M)). Verbose mode. Write a message to standard output indicating which file system is being unmounted. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. DIAGNOSTICS
complains if the special file is not mounted or if it is busy. The file system is busy if it contains an open file or some logged-in user's working directory. EXAMPLES
Mount a local HFS disk: Unmount a local HFS disk: WARNINGS
Some degree of validation is done on the file system, however, it is generally unwise to mount file systems that are defective, corrupt, or of unknown origin. AUTHOR
was developed by HP, AT&T, the University of California, Berkeley, and Sun Microsystems. FILES
Static information about the file systems Mounted file system table SEE ALSO
fsadm_hfs(1M), fsclean(1M), mkfs_hfs(1M), mount(1M), quotaon(1M), mount(2), fstab(4), mnttab(4), fs_wrapper(5), quota(5), disk(7). STANDARDS CONFORMANCE
mount_hfs(1M)
All times are GMT -4. The time now is 04:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy