Unix command to find certain files

hello,
i have a powerbook g4 running leopard... i want to find all files related to a certain program or app. What would the unix command be to find all files related to a certain program or app.
Also... is there unix commands to find all related preferences or cached items?
Any help would be great.

find / -name "*.doc"
where "*.doc" would find all files ending in .doc
and / is the root (top most) directory. You may specify a different starting point
find $HOME -name "*.pdf"
or even multiple starting directories
find ~username1 ~username2 ~username3 -name "*.zip"
You may specify more than one type of file to locate
find $HOME \( -name "*.dmg" -or -name "*.plist" \)
You may also want to look at the xargs command, as well as find's "-print0" option and xargs' "-0" option
find $HOME -name "*.txt" -print0 | xargs -0 grep "magic"

Similar Messages

  • Using UNIX command to copy desktop files/folders

    Hello All. I need help using UNIX command(s) to copy text documents and or folders from my lab computers to my desktop at home. Since I have such a slow connection, I think this will work best. I need help with the cp command and the path mostly. Since all files would be in folders on the desktop (including documents (that "missed" the folders), I believe I could simply copy desktop contents? Thanks, J Langlois

    What you want to do is SCP (secure copy) your documents to your remote host.
    send this command to the computer with the documents
    scp ~/Desktop/FILEOR_FOLDERNAME USERNAME@REMOTE_COMPUTER:~/Desktop/
    Replace all the stuff in UPPERCASE with the correct vales for your situation.
    Mini (Intel Core Duo)   Mac OS X (10.4.8)  

  • Unix command to find version of Informatica, Cognos and DataStage on SUN 5.

    How do I find the version of Informatica, Cognos and DataStage using a unix command on my Unix machine SunOS 5.8.
    I don't want to use front end to find this information.

    Um ... typically you would ask the Informatica, Cognos and DataStage people. (All of whom are not part of Oracle afaik ... [yet])

  • I have just  upgraded to Maverick and now I cannot find certain files. These JPG's  are there on my hard drives however . I rely heavily on the search facility and this is slowing me down.

    I have just upgraded to Maverick and now I cannot find certain JPG 's . These files do exist however I can find them manually . I rely on the search facility and this is slowing me down, I am having to trawl through stuff to find the file I want , before I would put in part of the title and the machine would find it.

    In addition to what Allen says, you may find these search tools helpful:
    http://apps.tempel.org/FindAnyFile/
    http://www.devontechnologies.com/products/freeware/ - EasyFind
    http://www.osxbytes.com/ - iFileX (note the MacUpdate link provided on osxbytes page has a Malware advertisement forMacKeeper, do not download).
    Note: you posted to the Classic operating system forum.   That refers to Mac operating systems from 2005 and earlier in Classic mode, and Mac operating systems as boot systems on certain 2003 and earlier Macs.  Mavericks forum questions normally get answered here:
    OS X Mavericks

  • What is the Unix command to concatenate two files and merget it in to one ?

    Hi Experts,
    I have three jobs and each job creates a file. I want to run one more job which clubs these three files and merges it in to one.
    I know the process of opening each file and appending it in to the target file using DATASET concept.
    Instead of that, I want any UNIX Shell command so that I can call that directly from ABAP and execute it
    Any help on this would be highly appreciated
    Thanks in advance.
    Babu Kilari

    Hello Babu,
    We can very well call an OS command from within ABAP, but in your case, I don't think that is really required. Please find below a logic that might be helpful to you.
    You have three files, whose contents needs to be merged into a single file.
    Read the contents of each file and store it into an internal table.
    DATA: command LIKE rs37a-line.
    DATA: BEGIN OF tabl OCCURS 0,
              line(2000),
          END OF tabl.
    command = 'cat /tmp/file1.txt'.
    CALL 'SYSTEM' ID 'COMMAND' FIELD command
                  ID 'TAB'     FIELD tabl-*sys*.
    Internal table 'tabl' will contain the contents of the file.
    Accumulate all the contents into a single file and upload to the application server using OPEN DATASET, TRANSFER DATASET and CLOSE DATASET.
    Let me know if you need a more detailed explanation.
    Regards
    Sabu.

  • Command to find File versions in Linux

    Will any one tell me the command to find the file versions of the following files:
    - POXVDCKB.pls
    - POXWPA9B.pls
    I am new to Financials app. Thanks in advance
    Regards,
    BMP

    oa.jsp is helpful in determining the version of Self Service Framework you are using. To check that out, use the table listed below:
      OA.jsp Version    Framework Version   Patch Number
         115.61           11.5.10.5RUP         5473858
         115.60           11.5.10.4RUP         4676589
         115.58           11.5.10.3RUP         4334965 / 5125546
         115.56           11.5.10H             3262919
         115.39           11.5.10G             3516965
         115.36           5.7H                 2771817 (11.5.9)
         115.27           5.6E                 2278688 (11.5.8)
         115.26           5.5.2E               2227335
         115.20           5.5.2C               2085104
         115.19           5.5.2B               2041847
         115.11           5.5.1E
         115.10           5.5.1B
         115.9            5.5.1A
         115.8            5.5.0E
         115.7            5.5.0D
         115.6            5.5.0C
         115.5            5.2.3D
         115.4            5.2.3C You can also check the version of OA Framework you currently have installed by logging in to your 11i instance and navigate to OAInfo.jsp using the following:
    http://hostname.domainname:port/OA_HTML/OAInfo.jsp

  • Command to find the top unix processes  doing high disk read and writes

    I would like to know 'the unix command to find the top unix processes doing high disk reads or/and writes
    If any one knows the solution please help me?
    -Swamy

    From the oracle side you can obtain OS process id for sessions having some waits for user I/O
    select p.spid, s.sid, s.sql_id
    from v$session s, v$process p
    where s.paddr=p.addr
    and s.sid in
    select sid from v$session_wait
    where wait_class='User I/O'
    );and to see sessions that are currently waiting on user I/O use
    select p.spid, s.sid, s.sql_id
    from v$session s, v$process p
    where s.paddr=p.addr
    and s.sid in
    select sid from v$session_wait
    where wait_class='User I/O'
    and wait_time=0
    );HTH, Peter

  • Finder can not  find and display certain files. Why? Any fix,please?

    I've discovered to my surprise that Finder can not  find and display certain files. Computer is Mac book OS X (10.6.8)
    No matter what Finder settings I use, there are files which it can not detect and display.
    Here are just some examples of files sitting in the HD but Finder can not display them:
    Located in  preference panes :
    fibre channel 1.7
    Located in :    /Library/StartupItems/BRESINKx86Monitoring
    BRESINKx86Monitoring
    FxLicenseManager
    Located in    /Library/StartupItems/FxLicenseManager
    EAP8021X
    Located in    /System/Library/PrivateFrameworks/EAP8021X.framework
    The questions:
    What to make of this inability of Finder to ,well, find? (again - I tried all possible settings of Finder!)
    Is there any way to fix it?
    Thanks for any competent suggestion!

    Well, guys,
    Interesting suggestions but the problem remains -Finder (aka Spotlight) is not capable to find certain files.Period.
    I consider it as a fault of the system because in comparison, a search facility of a plain Windows based machine is capable to dig out and display any file, no matter now deeply hidden...
    As far as the suggestion above by softwater  goes , well, I've used the additional foptions  extensively and nothing produced the result needed -that's why I created this discussion.
    If someone still believes that using Finder with all its options is good enough, here is a test for you to perform on your own Mac:
    -Open  /Library/StartupItems/ and have a look inside - most likely you have a bunch of items. Write down the names of one or two of them. For this test I've chosen
    FxLicenseManager  located in    /Library/StartupItems/. You can use any file you want grom this location...
    - Then go to  Finder and set it to display everything in Library of the HD. Remember - for this test you pretend you don't know any file name in this folders.
    If the Finder works properly it shall display  folders  of Library >Startup items with all stuff inside, including the FxLicenseManager file I used for this test.
    Finder displayed nothing. It is obvious that for Finder, certain locations are off limits. That's why I consider Finder as a faulty.
    Of course if someone can set the Finder's  options to do the above search and succeed, I'll be glad to try ...:-)
    At this point, what I gather from this discussion is that :
    1. Finder (Spotlight) feature is not to be trusted,despite number of fancy but rather useless options.
    2. If you need to really find everything usually not displayed by Finder you better get real  searching software.

  • How do you find what files are open?

    I have a disk utility that needs to unmount my secondary drive but it is unable to stating there are open files. I know there is a UNIX command that shows what files are open but I can't find the command. Any help would be greatly appreciated.

    Welcome to Apple Discussions!!
    The command you are after is lsof. Read the manual to find out about the options (there are an awful lot, but most of them you won't need).
    Message was edited by: Michael Conniff

  • Unix command to delete files with .cache extension

    I was wondering if anyone knew of a unix command that can be sent to another computer that will delete all files on the hard drive with a certain extension such as .cache.
    Like: rm *.cache
    Thank you!

    Well, I don't recommend it, but if you want to fubar the computer, send this as root:
    find / -name "*.cache" -exec rm -f {} \;

  • Terminal - how to find my external hard drive using unix commands

    just discovered terminal and using cd and ls commands, which are the only commands i know, i realized that i can't find my external hard drive. i thought it would be listed on my desktop, as it is in the OSX interface, but it isn't there.
    not that im skilled enough to use terminal yet, but i thought the first step would be being able to navigate the computer's files.
    really curious as to where my external hard drive is and how i can find it using unix commands in terminal.
    i was trying to figure it out myself, then i thought surely someone knows this and could tell me in a sec.
    thanks.
    ibook   Mac OS X (10.4.4)  
    ibook   Mac OS X (10.4.4)  

    "ls /Volumes" will list all volumes, including internal and external hard drives and mounted disk images. I find "disktool -l" more useful in scripts, as it tells you which volume names correspond to which "mount points" under /Volumes. Usually they're the same, but if you have two volumes with the same name, or you try to remount a removable volume before it is fully unmounted, you'll end up with a mount point that consists of the volume name with a numerical suffix.

  • Unix Command to search file

    Hi
    Can anyone tell me how to get filename from server using
    UNIX command in ABAP program.I have requirement to search file in server using date criteria.
    should i use 'FIND' command to search file??
    Plz do needful..

    You need to use SM69 to define command and use it in your report.
    Regards,
    Christophe

  • Unable to access certain files in Finder without extra steps.

    I am new to Mac and I have a very basic issue. I cannot access certain files in my library just by opening Finder and going to the location. To expose the files, I must go to my desktop, and click "Go" on the Finder bar at the top left. After the list has dropped down, I must press and hold the "Option" key to expose the "Library" option. If I then click the location, my complete library opens with the files I cannot find while executing in the other fashion. This makes things a pain when doing tasks such as posting content to the internet as all the files are not present. I must then take the long way to the file, drag it to a place as my desktop, and open it from there to upload to the internet. Sorry for the essay, wondering if there is anyway to get all the files in my library and its contents shown in Finder without taking "the long way."

    chflags nohidden ~/Library
    chflags nohidden ~/Library
    sudo chflags nohidden ~/Library
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    For security purposes, I removed the name of my computer to the left of the commands.

  • What Unix command is used to assert a file or folder's color label assignment?

    I'm doing some scripting to automate processes on my XSan.  One of the functions I find I'm doing over and over frequently is changing file ownership, permissions, changing the color of the parent folder based on the status of the files in it, and then locking the file.  I know the UNIX equivalents for three of the four commands:
    chown-- for the file ownership
    chmod-- for the permissions
    chflags-- for the lock bit
    but I've been looking through man pages all day and can't find what command asserts the file or folder's "label" color attribute.  I'd rather do this in command line that in Automator, as it's faster and I have hundreds of folders containing files that I need to lock down.  My boss is considering replacing XSAN with Compellent, and I'm trying to show how easy MacOS is to manage when you can script everything involved in maintaining it.  This will go a long way towards making that case.

    Wrong forums. Try https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 48

  • How to generate a empty file in AL11 using ABAP and unix command

    Hi Experts,
    when load infopackage triggers it will search file from AL11 if file is available it will get loaded successfully.  When there is no file in AL11 error while opening file (orgin A) and the load will fail.  At this level i have to write a abap code using unix command to generate a empty file.
    Is there any way to achieve the above requirement.
    Thanks
    Vara

    Hi,
    If i get your requirement properly then you want to create a blank file if there is no file on the application server so that your infopackage does not fail, am i correct.
    If this is your requirement then this can be easily done if you use process chain to load the file via infopackage. Follow the following steps:
    1. Add a ABAP program before the infopackage and check if the file is present on the server or not. Use a simple ABAP statement OPEN DATASET <FNAME>. Check the SY-SUBRC after this statement if it is not 0 then it means that the file does not exist on the application server.
    2. Once you have established that the file is not present create a flat file using a code similar to the below one
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE D_MSG_TEXT.
    IF SY-SUBRC NE 0.
      WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
      EXIT.
    ENDIF.
    * Transferring Data
    LOOP AT INT_table.
      TRANSFER INT_table-field1 TO FILENAME.
    ENDLOOP.
    * Closing the File
    CLOSE DATASET FILENAME.
    3. Add your infopackage step after this ABAP program in your process chain.
    I hope this helps.
    Best Regards,
    Kush Kashyap

Maybe you are looking for

  • Can my family members share our purchases on separate computers with separate accounts?

    We have several apple products in our home and a  new one today.  Is it possible to use these products on different computers sharing all of our purhcases or do we need to stay on one computer on one account?  I know we can do that with the home shar

  • Menu Over Video... Always Has To Restart

    For the last year I have constantly been having an issue where the content I am playing cannot be stopped (mostly video apps but sometimes music) and when I press the menu button, the menus appear but they are over top the content that will not stop

  • No Intel OS will install on white 1.83 1,1

    Scratching my head on this one.... trying to wipe and reinstall OS on a white Macbook 1.83 core duo I salvaged from the recyclers. It runs fine and had an OS on it (I think it was Tiger, IIRC), and I put a new admin account on it just to get a handle

  • ORG values for parameters not set in configuration

    Hi All, We are creating parent / child roles for FICO & MM for a project. The business requirement / configuration is such that the org values are available only for Company code and Purchasing organization. What is the appropriate way to set this up

  • Process Yard and Wave management

    Hi Experts, I have learnt EWM Module. But i dont know how to process for yard and wave management. can anyone please share some process steps... I have confiquered everything by checking help.sap.com thanks in advance....