A program to find files and directories.

learn more… | top users | synonyms

2
votes
3answers
58 views

Get absolute path of files using 'find' command

Is there a way to get absolute path of a file that is being searched? For example: find .. -name "filename" It gives me results like ../filename but I want the full path. What I need is to find ...
0
votes
2answers
41 views

find/tar combination to backup certain files at one level, and all files in one subdirectory

Our server's directory structure is like this /home/site1/public_html /home/site1/logs /home/site1/cgi-bin etc...(it's the standard when using virtualmin) What I want to schedule backups for is ...
1
vote
2answers
41 views

Find word that has more than 50 characters

I am trying to use find in combination with grep to find all the php files in my web server which have a word (any sequence of characters except whitespace) with more than 50 characters. I have this ...
2
votes
3answers
33 views

Find all .htaccess files that contain a particular string?

How would I find all the .htaccess files (recursively from current folder) that contain a particular string ('common.php') in my case? What would be the command to do so?
1
vote
1answer
47 views

Where are the uploaded files from redmine stored? and its not in “/redmine/files”

I am doing a migration from redmine 1.3.2 stable to 2.4.3 for that I need to migrate as well the uploaded files. In every documentation I can find it says that the uploaded files are in the ...
0
votes
1answer
43 views

find -exec not working properly, why?

I am trying to list all the file names (the basename, not the full path) below my home directory using find. I tried to do: find ~/ -type f -exec echo $(basename "{}") ";" However I end up having a ...
0
votes
1answer
50 views

How can I combine find command with gzip

I am trying to compress a specific files: find /media/mount/storage -newermt "2013-08-01 00:00:00" -path '*/*wind.txt' -print0 | xargs -0 gzip -l >> file_system.tar.gz but I am getting the ...
0
votes
1answer
24 views

Can't find Bluetooth file

This may sound dumb, but i have searched everywhere for /etc/bluetooth/audio.conf . I cannot find it. I have tried searching and doing everything of the manner, but I cannot find it. Please help.
0
votes
1answer
22 views

Need Help regarding Finding tools

When I type command find / -name ??.conf the output is a lot of files such as : find : /home/simmer/local/share/gvfs.metadata : Permission Denied Don't get the desired result, And if I use the ...
0
votes
1answer
44 views

Find directory and delete it's content but not itself

How do I find a directory and delete all it's content but not the directory itself? find -type -d -name 'Tmp' -exec rm -rf {} \; But this also deletes 'Tmp' directory. Thanks in advance.
1
vote
2answers
45 views

Find out where the directory is in Linux?

When I executed the command to give the pid of my processes running, it gave me like this - user@machineA:/$ ps -eo pid,command | grep exhibitor | grep java | grep -v grep 1615 java -jar ...
0
votes
4answers
162 views

How to find a file whose size is less than 10 MB?

I need to find a file in my current directory whose size should be less than or equal to 10 MB. ls -lh gives me the file size of each file but not sure how to find the files whose size are less than ...
0
votes
0answers
28 views

Which app scans all disks searching any kind of media files (photos, videos, etc.)?

Is there an app which scans disks looking for all kinds of media files (photos, videos, etc.) the same way Picasa does for pictures? I could write a bash script to perform such thing, but I'm not ...
1
vote
3answers
110 views

Find directories that DON'T contain a file but YES another one

I have quite a large music collection and would like to find the directories in which I still have compressed files (*.rar) unprocessed. Hence looking for a command that lists directories in which i ...
1
vote
2answers
76 views

How to use 'grep' with characters like * and _?

I need to find some text in one or more files. This is what I use: grep -irI "hello" ~/ However, if I want to find a string containing characters like * or _ then these seem to be ignored. Let's ...
4
votes
3answers
212 views

Find files with a minimum filename length

I'd like to find all files in a certain folder which have a filename of at least n characters (extension included). Is there any way to achieve this with find?
3
votes
2answers
146 views

find does not work with my variable

I'm trying to find the number of dirs and files in a given dir. I'm running my bash script like this: ARCHIVE=/path/to/archive ./myScript in my script I am doing this: #find the number of ...
0
votes
3answers
395 views

how or where will i find C:\Program Files(x86) in Ubuntu 13.04?

How or where will I find C:\Program Files(x86) in Ubuntu 13.04? I cannot find it. I need it as I have installed a game there and I need to uninstall it. I have already tried to post a similar question ...
0
votes
1answer
84 views

retrieve data put into non-directory file by using -mv command

I used the command below to move my data to a directory: find . -name '*.mat' -exec mv {} ./ooutputs \; However the directory of ./ooutputs does not exist. A file named ootputs is then created ...
0
votes
1answer
55 views

Please help identify on which partition I have ubuntu installed

I need to reinstall my GRUB since I cannot boot windows 8 anymore (something happened with my installation of Ubuntu). I want to follow this advice - Boot error > no such device: grub rescue in ...
0
votes
3answers
3k views

Cron to send email if file doesn't exist

I have a cron job that executes a shell script like following 00 01 * * * sh /backup/script.sh Now I need to add a functionality in cron so that if this script doesn't exist then it generates an ...
4
votes
6answers
3k views

Filenames with spaces breaking for loop, find command

I have a script which searches all files in multiple subfolders and archives to tar. My script is for FILE in `find . -type f -name '*.*'` do if [[ ! -f archive.tar ]]; then tar -cpf ...
0
votes
2answers
170 views

Command for find in page (Ubuntu 12.04)

I'm keybinding some shortcuts and I just want to know what the "find in active window" command is. <-- windows equivalent is ctrl-f
2
votes
1answer
59 views

How to reliably determine all folders not used in last 7 days?

I'm writing a script for cleanup job. The script needs to cleanup all folders which are not accessed for more than 7 days. Currently I'm using - for sub_folder in * ; do if [ -z $(find $sub_folder ...
1
vote
1answer
407 views

Ubuntu doesn't find installed drivers for Brother MFC-255CW printer

I am brand new to Ubuntu, but I a fairly experienced computer user. Following the instructions provided by the Brother website, I was able to install the drivers (CUPSwrapper and LPR) for the ...
0
votes
1answer
446 views

How to list all files within subdirectories without the path?

I have 1000 directories and 5-15 sub directories within them containing mp3 files. I want to make a list of all the songs without their paths. Is it doable? Or is there a way to obtain the word after ...
0
votes
1answer
256 views

SD Card vanished after placement of .nomedia file

This is not really a Ubuntu problem but since I moved from Windows to Ubuntu I naturally would like to use Ubuntu to solve this problem. I bought a 32gb sandisk micro sd card for my galaxy note 2. ...
0
votes
1answer
39 views

Search and Replace Similar but Different Phrases

How do I search and replace a common, but different, phrase to a single phrase in multiple files from the terminal. For instance, I want to change the following: File1, File2, File3: --Link2-- ...
2
votes
2answers
439 views

How to move unknown files to unknown directories based on folder name?

I am trying to write a script that will search a directory for a folder, and move the folders contents one directory up from their location. this is what i have so far: find ./localFolders -name ...
3
votes
1answer
44 views

What is the significance of $ and {} in `find ${x} *`

I have the following : x=/ find ${x} * Now this is similar to find / * What is the significance of $ and {} in find ${x} *
1
vote
1answer
124 views

bash: File not found

Thats all on the screenshot.Sorry for pt-br.
25
votes
3answers
4k views

Did I just delete everything with find -exec mv?

I tried to figure this out on my own. Here's the command I used in the terminal: find . -name "*.jpg" -exec mv {} pictures \; I did not create a directory named pictures first. What happened was a ...
0
votes
1answer
345 views

CTRL+F Find/Search not active after clean install of Ubuntu 13.04

2 days after a completely clean install of 13.04 and no relevant changes to the system (keybd shortcuts etc.), CTRL+F does not work anywhere, with the exception of Chrome, where it opens the ...
0
votes
1answer
303 views

Where are flex libraries located?

I find myself with a very weird problem in my hands. I wanted to install both flex (the fast lexical analyzer) and bison, and that's why I ran: sudo apt-get install bison flex The installation goes ...
0
votes
0answers
42 views

How to find the location of a device

I have a programmer to program AVR micro-controllers, and to upload a HEX file to the micro-controller I have to know where it is, something like this: /dev/ttyUSB003. I tried dmesg but I couldn't ...
1
vote
5answers
753 views

JPG batch compression & rename (find -exec, xargs, piping?)

this is my first post so I hope you'll be kind enough to forgive me if I make some formatting mistakes or else. This is one question I've had for quite some time and while looking for answers I have ...
3
votes
1answer
327 views

Recursively apply the msgfmt command to all .po files in directory with find -exec

I have the following directory structure: webiste/ locale/ en/ LC_MESSAGES/ translation.po de/ LC_MESSAGES/ ...
0
votes
1answer
564 views

find -exec grep does not work

I need to use a find command in a script with ssh and grep together. Something like this: ssh user@host find /var/log -type f -mtime 1 -exec grep -i -F error warn {} \; But it says, that there is no ...
2
votes
2answers
1k views

How to search for both within filename (find) and file (grep) using a single line of code?

I'm pretty sure I've done this in the past (and that an answer is out there somewhere), but can't remember right now. I'm looking for a one-liner to search for (and return / echo) matches in both the ...
1
vote
2answers
129 views

How to find ghostscript files in ubuntu?

I'm working with the terminal and im trying to find ghostscript files in all the computer. How can I do that? I know that I must use the comand "find", but is there anything else I should type?
0
votes
0answers
82 views

Dash (superkey) doesnt find any software and my software-center doesn't start

Can anybody help me? I have only access to software that is already shown in the starter..
4
votes
2answers
102 views

find files and print info

I can easily find files with given string in name: me@comp:/usr/local/hydra/hydra-7.4.2$ find -D stat -name "*hack*" ./hack881663129.txt ./hack881663129_7.txt ./hack881663129_5.txt ...
5
votes
3answers
6k views

How to exclude/ignore hidden files and directories in a wildcard-embedded “find” search?

Starting from (notice the wildcards before and after "some text") find . -type f -name '*some text*' how can one exclude/ignore all hidden files and directories? I've already been googling for far ...
2
votes
2answers
472 views

how to find exact file without listing folders

my current folder is the top of the folder tree structure somewhere inside I have an *.rpm file. how do I find that *.rpm file in a way that'll list only its full path when found and not list every ...
1
vote
2answers
134 views

How to take the first n files from a directory with a letter in alphabetical order to another directory

I need to take the first 3 files from a directory starting with letter b in alphabetical order to another directory. I've come up with this command: find ...
3
votes
1answer
238 views

Finding all directories with a certain string then changing permissions

I'm trying to combine two things. I have to set permissions on a number of directories, all of which have "domain-" in their name. I wanted to "find all directories in the current directory that ...
0
votes
1answer
175 views

Remove files in multiple directories except some sub-folders

I'm using Ubuntu Server 12.10 and I need to configure a cron job to delete some files in samba shares that belong to some criteria. I'm configured some samba shares in /media/raid/. The folders are: ...
1
vote
1answer
269 views

Search files in subfolder and export results to file

I have a folder with hundreds of subfolders. I need to locate recursively within the subfolders those that don't have certain files inside (for instance *ch.pdf or *.jpg) and export the results to a ...
2
votes
2answers
108 views

Move certain subfolders to another folder

I have a main folder with several subfolders (that have a numbered name format), and i need to retrieve just the ones that start with 6, to a folder. Can i make this recursevely?
0
votes
2answers
268 views

Recursive list of files with names that don't contain a certain string

I have: a directory with many nested subdirectories and files. I would like: a list of all files whose name doesn't contain a certain string. Example file structure: foo/ foo/bar/foobar.txt ...