Here is this weird thing happening here. I mounted RHEL 6.6 DVD on a directoy
, I am trying to copy it's content to another folder by using command:
But while I run
on both locations it show me difference in number of files. Any specific reason for that. Also I ran diff on both location and it didn't give me anything. To add more I found difference in sizes of Packages folder also, where numbers of files are uniform.
Size of what? The size of a folder in ls is filesystem-specific, and not really meaningful. Directory entries on a CD/DVD are very different from on a Linux partition.
* may be skipping some files, it does not match any file beginning with . For that matter, ls does not list any file beginning with . either (unless you force it with -a).
Sometimes I use this trick:
-C to tar means "change directory" so you can change its point of view before archiving or extracting files... Then you pipe it straight into another tar to extract it.
I was talking about the Packages folder's size which is present inside RHELDVD mount /a
You are correct about the size but I was thinking how number of files, subdirectories inside a folder vary.
Quote:
Originally Posted by Corona688
Size of what? The size of a folder in ls is filesystem-specific, and not really meaningful. Directory entries on a CD/DVD are very different from on a Linux partition.
* may be skipping some files, it does not match any file beginning with . For that matter, ls does not list any file beginning with . either (unless you force it with -a).
Sometimes I use this trick:
-C to tar means "change directory" so you can change its point of view before archiving or extracting files... Then you pipe it straight into another tar to extract it.
Is that all? You can ignore that. How many blocks it takes is very filesystem-dependent, and CD/DVD filesystems are strange enough a hard drive filesystem is going to be radically different.
If you wanted to, you could back up the entire DVD to hard drive bit-by-bit, filesystem and all, as an ISO file. dd if=/dev/cdrom of=/path/to/filename.iso bs=4M
I am facing an issue of getting lesser band width while copying file from RHEL server to another RHEL machine.In our system , there are 4 no of RHEL 5.9 Enterprise server and 2 network interface in each servers are bonded.
Out of 4, 2 machines (Server A and Server B) are with in same network and... (2 Replies)
Hello All
A similar question like this was asked before but I need to change part of the question.
I've two folders, Folder A contains some image files in 150 subfolders;
Folder B contains text files in 350 subfolders.
All image files in Folder A have the same filename as the text... (5 Replies)
Hi all,
Im studying rhcsa as of now, so yum installation and dependencies are messing me to not workit out.
i have dual os, win 7 & rhel 6.
i have tried this installation of vsftpd package with rhel 6 dvd in VM rhel 6 in win 7 as well as host rhel 6.still the same issue.
below error... (6 Replies)
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Copying all the normal files from 1 folder to another on a unix platform. I pass in 1 or 2 arguments, the folder... (0 Replies)
Hello everyone,
I have a big folder in a linux server that contains dozen of big files (total folder size ~ 50 GB)
I have a couple of files of 2.5 GB and some others from 100 MB to 1 GB. (that said it's obvious that it's impossible having two 2.5 GB files in one dvd)
The purpose is to... (7 Replies)
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
Hi all,
I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt.
I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)