'Info' file count varies between original and copied folders

Unlike Snow Leopard, Lion and Mountain Lion 'Info' counts hidden files in folders (usually .DS files).  However copied folders, often to different locations, computers, etc, do not count to the same total as the original folder.  How can I stop 'Info' counting hidden files in a folder, so that I can check acturately folder contents between original and copied folders.  I do not want to have to open each folder and check the count at the bottom of the window, this is very time consuming when dealing with many folders
I hope there is an easy answer ??

You can do this simply in Terminal with the command
ls [directory] wc -l
This will only count the files and folders at the top level (i.e., not the contents of folders within it) and it won't count hidden files.
Examples:
if you want to count how many files are in your home user folder
ls -1 ~/ | wc -l
If you want to count how many files are in your desktop folder
ls -1 ~/Desktop | wc -l
If you want to count how many files are in a folder called 'Temp' on your Desktop:
ls -1 ~/Desktop/Temp | wc -l
If you want to count how many files are in your Trash:
ls -1 ~/.Trash | wc -l
If you want more sophisticated counts, such as subdirectories, type
man ls
into Terminal to read the manual on the various options you can use with the 'ls' command.

Similar Messages

  • I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    I bought a mac air retina to replace a mac pro. How can I get all files of the back up and copy them to the new mac?

    Mail window may be in the Full Screen mode.
    Move the mouse pointer to the top right corner of the Mail window and hold it there.
    Menu bar should drop down and click the blue double arrow icon.
    Full Screen toggle shortcut:  control + command + F

  • 45 min long session of log file sync waits between 5000 and 20000 ms

    45 min long log file sync waits between 5000 and 20000 ms
    Encountering a rather unusual performance issue. Once every 4 hours I am seeing a 45 minute long log file sync wait event being reported using Spotlight on Oracle. For the first 30 minutes the event wait is for approx 5000 ms, followed by an increase to around 20000 ms for the next 15 min before rapidly dropping off and normal operation continues for the next 3 hours and 15 minutes before the cycle repeats itself. The issue appears to maintain it's schedule independently of restarting the database. Statspack reports do not show an increase in commits or executions or any new sql running during the time the issue is occuring. We have two production environments both running identicle applications with similar usage and we do not see the issue on the other system. I am leaning towards this being a hardware issue, but the 4 hour interval regardless of load on the database has me baffled. If it were a disk or controller cache issue one would expect to see the interval change with database load.
    I cycle my redo logs and archive them just fine with log file switches every 15-20 minutes. Even during this unusally long and high session of log file sync waits I can see that the redo log files are still switching and are being archived.
    The redo logs are on a RAID 10, we have 4 redo logs at 1 GB each.
    I've run statspack reports on hourly intervals around this event:
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~ Wait % Total
    Event Waits Time (cs) Wt Time
    log file sync 756,729 2,538,034 88.47
    db file sequential read 208,851 153,276 5.34
    log file parallel write 636,648 129,981 4.53
    enqueue 810 21,423 .75
    log file sequential read 65,540 14,480 .50
    And here is a sample while not encountering the issue:
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~ Wait % Total
    Event Waits Time (cs) Wt Time
    log file sync 953,037 195,513 53.43
    log file parallel write 875,783 83,119 22.72
    db file sequential read 221,815 63,944 17.48
    log file sequential read 98,310 18,848 5.15
    db file scattered read 67,584 2,427 .66
    Yes I know I am already tight on I/O for my redo even during normal operations yet, my redo and archiving works just fine for 3 hours and 15 minutes (11 to 15 log file switches). These normal switches result in a log file sync wait of about 5000 ms for about 45 seconds while the 1GB redo log is being written and then archived.
    I welcome any and all feedback.
    Message was edited by:
    acyoung1
    Message was edited by:
    acyoung1

    Lee,
    log_buffer = 1048576 we use a standard of 1 MB for our buffer cache, we've not altered the setting. It is my understanding that Oracle typically recommends that you not exceed 1MB for the log_buffer, stating that a larger buffer normally does not increase performance.
    I would agree that tuning the log_buffer parameter may be a place to consider; however, this issue last for ~45 minutes once every 4 hours regardless of database load. So for 3 hours and 15 minutes during both peak usage and low usage the buffer cache, redo log and archival processes run just fine.
    A bit more information from statspack reports:
    Here is a sample while the issue is occuring.
    Snap Id Snap Time Sessions
    Begin Snap: 661 24-Mar-06 12:45:08 87
    End Snap: 671 24-Mar-06 13:41:29 87
    Elapsed: 56.35 (mins)
    Cache Sizes
    ~~~~~~~~~~~
    db_block_buffers: 196608 log_buffer: 1048576
    db_block_size: 8192 shared_pool_size: 67108864
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 615,141.44 2,780.83
    Logical reads: 13,241.59 59.86
    Block changes: 2,255.51 10.20
    Physical reads: 144.56 0.65
    Physical writes: 61.56 0.28
    User calls: 1,318.50 5.96
    Parses: 210.25 0.95
    Hard parses: 8.31 0.04
    Sorts: 16.97 0.08
    Logons: 0.14 0.00
    Executes: 574.32 2.60
    Transactions: 221.21
    % Blocks changed per Read: 17.03 Recursive Call %: 26.09
    Rollback per transaction %: 0.03 Rows per Sort: 46.87
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 99.99 Redo NoWait %: 100.00
    Buffer Hit %: 98.91 In-memory Sort %: 100.00
    Library Hit %: 98.89 Soft Parse %: 96.05
    Execute to Parse %: 63.39 Latch Hit %: 99.87
    Parse CPU to Parse Elapsd %: 90.05 % Non-Parse CPU: 85.05
    Shared Pool Statistics Begin End
    Memory Usage %: 89.96 92.20
    % SQL with executions>1: 76.39 67.76
    % Memory for SQL w/exec>1: 72.53 63.71
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~ Wait % Total
    Event Waits Time (cs) Wt Time
    log file sync 756,729 2,538,034 88.47
    db file sequential read 208,851 153,276 5.34
    log file parallel write 636,648 129,981 4.53
    enqueue 810 21,423 .75
    log file sequential read 65,540 14,480 .50
    And this is a sample during "normal" operation.
    Snap Id Snap Time Sessions
    Begin Snap: 671 24-Mar-06 13:41:29 88
    End Snap: 681 24-Mar-06 14:42:57 88
    Elapsed: 61.47 (mins)
    Cache Sizes
    ~~~~~~~~~~~
    db_block_buffers: 196608 log_buffer: 1048576
    db_block_size: 8192 shared_pool_size: 67108864
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 716,776.44 2,787.81
    Logical reads: 13,154.06 51.16
    Block changes: 2,627.16 10.22
    Physical reads: 129.47 0.50
    Physical writes: 67.97 0.26
    User calls: 1,493.74 5.81
    Parses: 243.45 0.95
    Hard parses: 9.23 0.04
    Sorts: 18.27 0.07
    Logons: 0.16 0.00
    Executes: 664.05 2.58
    Transactions: 257.11
    % Blocks changed per Read: 19.97 Recursive Call %: 25.87
    Rollback per transaction %: 0.02 Rows per Sort: 46.85
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 99.99 Redo NoWait %: 100.00
    Buffer Hit %: 99.02 In-memory Sort %: 100.00
    Library Hit %: 98.95 Soft Parse %: 96.21
    Execute to Parse %: 63.34 Latch Hit %: 99.90
    Parse CPU to Parse Elapsd %: 96.60 % Non-Parse CPU: 84.06
    Shared Pool Statistics Begin End
    Memory Usage %: 92.20 88.73
    % SQL with executions>1: 67.76 75.40
    % Memory for SQL w/exec>1: 63.71 68.28
    Top 5 Wait Events
    ~~~~~~~~~~~~~~~~~ Wait % Total
    Event Waits Time (cs) Wt Time
    log file sync 953,037 195,513 53.43
    log file parallel write 875,783 83,119 22.72
    db file sequential read 221,815 63,944 17.48
    log file sequential read 98,310 18,848 5.15
    db file scattered read 67,584 2,427 .66

  • Signal to phone varies between 4G and 1X. Can that be improved without using antennae.

    Signal strength varies from 4G to 1X, is there an adjustment in the phone to correct or is it necessary to buy xtra antennae.

    Thank you for replying.
    Signal varies in 61822 and 33917 zip codes. The incline plane emblem next
    to battery icon never shows strength greater than just the tip of the
    indicator except when I go to Verizon corporate store where they have a
    booster. It happens in and out doors. I have not removed the sim card. This
    is a Motorola RAZR M with a number on back - CEO 168
         [image: Verizon Wireless
    Community]<http://community.verizonwireless.com>
    <http://www.verizonwireless.com/b2c/index.html>
    <http://www.verizonwireless.com/b2c/explore>
    <http://www.verizonwireless.com/b2c/store/controller?item=phoneFirst&action=viewShopIndex>
    <https://wbillpay.verizonwireless.com/vzw/nos/topline.jsp>
    <http://support.verizonwireless.com/clc/>    Re:
    Signal to phone varies between 4G and 1X. Can that be improved without
    using antennae.  created by Verizon Wireless Customer
    Support<https://community.verizonwireless.com/people/vzw_customer_support>in
    Android - View the full
    discussion<https://community.verizonwireless.com/message/1026021#1026021>

  • Secure the file/data transfer between XI and any third-party system

    Hi All,,
    I would like to use to "secure" SSH on OS Level the file/data transfer between XI and any third-party system Run OS Command before processing and OS command After processing. right now my XI server installed on iSeries OS.
    with ISeries we can't call the Unix commands hope we need to go for AS400 (CL) Programming. If we created the AS400 programm how i can call that in XI.
    If any one have idea pls let me know weather it will work or not.
    Thanks in adavance.
    Venkat

    Hi,
    Thanks for your reply.
    I have red some blogs like /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi to call the Unix Shell script in XI.
    But as i know in iSeries OS we can write the shell script we need to go for AS400 programe. If we go with AS400 how we need to call that programe and it will work or not i am not sure there i need some help please.
    Thanks,
    Venkat

  • Data, Original and Modified folders?

    sorry, this may be a dumb question, but what's the difference between Data, Original and Modified folders? when I do a search for a specific folder, i find that I will find all the folders and there looks like duplicates but they are filed in Data, Original and sometimes additionally under Modified.
    thanks!

    A Note about the iPhoto Library Folder:
    In this folder there are various files, which are the Library itself and some ancillary files. Then you have three folders
    Originals are the photos as they were downloaded from your camera or scanner.
    (ii) Modified contains edited pics, shots that you have cropped, rotated or changed in any way.
    (iii) Data holds the thumbnails the the app needs to show you the photos in the iPhoto Window.
    Please remember that Finder searches do not really understand your iPhoto Library. If you use iPhoto the correct way to search for photos is via the iPhoto Window.
    Regards
    TD

  • Byte count difference between Unix and Windows

    Hi,
    I use sun.net.ftp.FtpClient to transfer files from a windows machine to a unix server.
    The transfer works fine.
    However, due to a problem I had a few days ago with the file not completing it's transfer but no side (not my FtpClient object nor the UNIX Ftp server) has thrown an exception or reported an error, I need to verify the transfer is complete.
    from the byte count I see that on my machine, the file size is 120743 bytes, and on the server side it's 121047 bytes.
    The file has 14172 records, when the last one is an empty line.
    There is a 304 bytes difference between the 2 reports.
    I downloaded the file I transferred there manually and compared the 2 and they match.
    How can I know from my program if the transfer is complete?
    Thanks,
    Omer.

    The file size isn't 304 byte, that's the difference between the 2 files.
    I use FtpClient.binary() to set the mode to binary prior to sending the file.
    The file has 14172 records which should add up to a total difference of 14172 bytes (maybe 1 or 2 more if there is a difference in the EOF), but not 304.
    here's the code:
    putClient=new FtpClient(host, port); //initialize the client object
    putClient.login(user, password);
    putClient.binary(); //set transfer mode to binary
    putClient.cd(remotePath); //change directory to the target one
    FileInputStream fileIn=new FileInputStream(sourcePath + File.separator + sourceFileName);
    long fileSize=fileIn.getChannel().size(); //get the size of the file
    TelnetOutputStream telnetOut=putClient.put(remoteFileName);//acquire an input stream from the server
    byte[] byteBuff=new byte[8192]; //8 kb buffer
    int readSuccesfull=0;
    while((readSuccesfull=fileIn.read(byteBuff))!=-1){ // now transfer the file
    telnetOut.write(byteBuff, 0, readSuccesfull);
    totalByetsSent+=readSuccesfull;
    fileIn.close();//release the file stream resource
    TelnetInputStream inStream = putClient.list(); // acquire a stream for verifying the file was received
    /* now I read the lines of the list() command and parse the lines for the size and date and I get that the file that I sent has a size of 121047, and the line that represents it is this:
    -rwxrwxrwx   1 owner    group          121047 Jan 10 17:49 ivory.txt
    However, the size from my machine's report is 120743 which I get from the fileSize variable*/According to what has been said here, and to my intuition, the size on UNIX should be smaller than the size on Windows, but yet, it's not the case.
    This would add up fine if the file that I downloaded from the server wouldn't match the file that I sent, but they do.
    I'm pretty much a noob at developing and even more a noob at Java, so there is a very good chance that I do something wrong here, could be with the use of the FileChannel.size() method usage.
    Thanks.

  • Retrieve files  from a text list and copy them to other location?

    Hi,
    I work as a photographer: my clients often send me their final selections of my pictures as a text list (i.e. file001.jpg file 004.jpg file 054.jpg and so on), so I have to go back and pick each picture "by hand": this is a huge waste of time since I'm dealing with hundreds of picks in thousands of files.
    My question is: is there a way to retrieve and copy the selected files automatically? I was thinking about feeding the list of files to Automator, but I can't seem to find a way to do it.
    any hints?
    thanks in advance
    Andrea

    ok I seemed to have it sorted out...
    Niel, I'm no programmer at all, but thanx to your script I was able to come up with this:
    tell application "Finder"
    set source_folder to choose folder with prompt "Select folder with all pictures"
    set the_files to every paragraph of (read (choose file with prompt "Select text file with the names of the pictures to be copied"))
    set target_folder to choose folder with prompt "Select destination folder"
    repeat with this_file in the_files
    try
    duplicate item this_file of source_folder to target_folder
    end try
    end repeat
    end tell
    that seems to work!
    needs some fine tuning, like including subfolders of the first folder chosen!
    THANX AGAIN!
    Message was edited by: SAPO!!

  • Bigger difference between original and corrected footage than in Fcp?

    I have tried asking this on the color forum, but have been very unsuccessful, maybe someone here knows why?
    Why is it that when Im color correcting In COLOR and enable and disable the grading I get a bigger difference between the original and corrected footage than when I send it back to final cut and compare the result of the cc with the original footage.
    In Final cut sometimes it looks almost the same as the original but when Im in Color the difference is always bigger?
    When I send it back to FCP its like I get 80 or 85% percent of what I had in color.
    Any ideas???

    Maybe if you had read what I wrote to you you would have noticed me saying that this happens independent of infrastructure. I tried several different set ups it happens in all of them
    Im telling you its not the setup but here goes, the last one I worked on was a mac pro, inked through Fiber Jet SAN with 14TB of usable storage. fully integrated control surface giving DaVinci type ease of operation and control of multiple parameters simultaneously.
    latest eCinema 23" LCD HD Reference Monitor.
    Again i tried different configurations (Blackmagic, AJA,) and different monitors
    Funny thing I have the same exact problem on my simple Macbook Pro.
    I first thought set up, but it wasent
    I tought it could be the codecs but it wasent. (or maybe it is the xd cam footage)
    Now Im wondering if these two softwares manage color and the color space in a different way?

  • Deleted files from the Original and Data folders - help?

    Hello,
    I imported my fiance's iphoto library to try to recover photos that I lost from when my hard drive crashed. They first were not importing into iphoto (while the files were on the harddrive), so I placed them in my Originals/Data iphoto folders. Now I have 6-8 versions of files that I don't even necessarily need, mostly thumbnails and a few of the original files.
    I know I have made a lot of mistakes... so at this point what do I do- I've stopped manually deleting folders from these categories, but I do not want to lose what precious pictures I had from before the harddrive failure, and how do I get back to a iphoto library without duplicates?
    Please advise!!! Thank you!

    My library still opens within iPhoto- will it continue to do so? Do I need to do anything now (since I have already messed with the Originals and Data folders?)
    In addition, iPhoto now shows me blanks for some pictures/events, is there a way to have iPhoto scan the entire computer and realize files are missing and to ignore them?
    Therefore it is not a fully functioning iPhoto library - it is corrupted
    3 - if you do not have a fully functioning iPhoto library then quit iPhoto and drag the iPhoto library to the desktop, launch iPhoto and create a new library and then open the bad iPhoto library on the desktop and open the originals folder and drag each folder from it onto the iPhoto icon in the dock (or the iPhoto event window) to create events with all of your photos, then back up and run duplicate annihilator
    Since you have corrupted your library you can do anything you want to it before you create a new one from the remaining photos
    LN

  • File sharing problem between XP and MAC when using Airport Extreme

    I recently got a Time Machine to replace my flaky Linksys Wireless N router and since I've done that I can't connect to my PC running Windows XP and was able to before. I have made sure my firewall settings are correct and have gone through many different settings on Time Machine but still no luck.
    I have my PC directly connected via ethernet to the Time Machine and my Mac is wireless. I'm able to ping the IP address of the Mac from my PC but can't ping in the opposite way.
    Any suggestions would be greatly appreciated.
    Thanks!!

    btw the error is
    "Attempting to copy to the disk "Guy_s iPod" failed. The file name was invalid."
    and then it says
    "The iPod "Guy's iPod II" cannot be updated. The disk could not be read or written to."

  • SAP tolerance on var between invoice and po

    Hi Guys,
    when the difference between PO and Invoice,we have defined the tolerence of $50.00(with BD Key in OMR6),if the difference with in the tolerence limit the invoice posted else not.
    Now the problem is
    -Will the tolerance also hit the network number and activity code?
    - How is the account determination process for this function? u2013 is c/code an option?
    -          If not, how do we handle Traciu2019s request?
    -          What does user actually ask? How does SAP handle this particular request?
    -          What if any can we do to accomplish this?
    please explain the above and guide me how to solve this.
    Thanks in advnce.
    Regards,
    Babu
    09930154536

    How is the account determination process for this function? u2013 is c/code an option?
    Company Code, Tolerance Key & Currencies are Criterias for the above.
    If not, how do we handle Traciu2019s request?
    What does user actually ask? How does SAP handle this particular request?
    Invoice Verification is a Functionality such That It Does not Require anu User / Manual Inputs. Based on the Configuration It will work Fine.
    What if any can we do to accomplish this?
    Yes
    Regards,
    Ashok

  • .ipa file will install in iTunes and copy to iPhone or iPad but shows as greyed out with "installing" or "waiting" underneath.

    Hey All:
    I have an .ipa file that is legit and "signed" (at least I think so) but for some reason will not work on any device. I basically drag the .ipa file into itunes app section and it will show there as a working app.
    I select the button that says "install" so that when it syncs it puts it on my ipad or iphone. Once I move over to the iphone or ipad the icon is greyed out with the words waiting or installing under the icon.
    Waiting for a half a day at one point before I finally gave up and deleted it from my devices.
    Can someone point me in a direction as to what I might be doing wrong? The only thing I can think is that its' not io7.1 compatable but that is all I got.
    Thanks
    Paul

    I am assuming you where generating the .ipa file using a UniversalDistribution  Provisioning Profile with an iOS Developer Enterprise Account. If so I had the same problem - turned out it was a Certificate issue - what worked for me was when creating the Certificate which I did manually using Keychain Access I left the Common Name field blank and the .ipa installed properly on my devices. Hope this helps.

  • How can I merge original and modified folders in iphoto library?

    I see 2 folders within iPhoto library - originial and modified. Original folder keeps all pictures in original and modified has the edited version for picture I edit. So iPhoto basically keeps 2 version for any picture I modify, which takes a lot of space.
    I would like to have just one copy for each picture (original picture or only modified version of the picture if I edit) - this way I think I would save a lot of memory. Could someone please advise
    1. if there is any iPhoto settings that I change, so that it starts saving only 1 copy for each picture
    2. If I could something with my already existing pictures - i.e. if there is a way I can delete "original" version of only those pictures for which "modified" version is available.
    Let me know if anything is not clear or you need any more information. Thanks in advance.

    Don't use iPhoto.
    Iphoto is a Digital Asset Manager designed to protect your original file at all costs. In other words it treats the original like a film shooter treats the negative. This is hard-wired into iPhoto, it's the very heart of the programme. If you don't want that feature, don't use iPhoto/
    Note that there are different versions of the photo, they are not copies. The Original is required for the Non-Destructive editing feature in iPhoto.
    So, specifically, no you cannot merge the two folders - and by the way, doing so won't save any memory at all, just some diks space.
    1. if there is any iPhoto settings that I change, so that it starts saving only 1 copy for each picture
    There isn't.
    2. If I could something with my already existing pictures - i.e. if there is a way I can delete "original" version of only those pictures for which "modified" version is available.
    There isn't.
    If space is an issue: use an external drive for the Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Or, just use an app that works the way you want.
    Regards
    TD

  • IPhoto 09 library package original and modified folders

    Why is there an 'original' folder and a 'modified' folder in the library?

    Picasa uses a hack to access the iPhoto Library rather than the standard APIs that Apple provides for other applications. Because the access to the Library is via an unsupported method, this means that at any point in the future an update to iPhoto could render the Library inaccessible to Picasa. You could find your photos inaccessible to you until the makers of Picasa re-work their hack.
    Picasa is an excellent application, but you need to be aware of some differences between it and iPhoto.
    1. iPhoto is integrated throughout the OS and is available in every Open... or Attach... dialogue in the OS.
    2. iPhoto is colour managed.
    3. iPhoto can integrate with a wide range of online sharing sites.
    4. iPhoto has Keepsakes: books, calendar and so on
    5. iPhoto has an excellent range of Slideshows.
    Finally, and this may or may not be important to you, but when you install Picasa you accept an End User licence that allows Google to update the application when it wants to, with no further recourse to you. Should their be a problem with an update, as can happen to any software developer from time to time, you have no way of refusing that update.
    Regards
    TD

Maybe you are looking for

  • Problems printing envelopes with HP 4480 all in one

    I purchased the HP 4480 all in one because I was told it would  do the job(we hold a reunion each year and write to over 110 people. However I have had nothing but trouble (30 envelopes wasted already) it jams-jams-jams) sometimes at the back and som

  • Adobe Premiere has encountered an error... over and over again

    Hello I've been a happy Adobe Premiere Pro CC customer for 4 months until recently when I strated experiencing a problem with re-opening saved projects. I can easily start new project save them, work on them and so on but as soon as I close them and

  • Checking for corrupt image or element

    Hi Hoping someone may be able to help, I have a 256 page book which I created in InDesign CS3, the book is made up of several documents. I need to export to a PDF, each time I try it fails as there is a corrupt image. Is there anyway I check the docu

  • How to add data in the saved spreadshee​t file

    Hi all, I am having trouble in adding data onto an already saved spreadsheet file. I don't want to overwrite the old file but modify it, such that the new data is stored below the old data. Or As I am saving the data in a 2-D array in the VI, where t

  • Consuming web services

    Hi All, What is the best way of reading from 4 different web services using XML (different formats) and display the result in a common list? I would like to order the list base on couple fields. What about if the web services doesn't respond or the r