A program to find files and directories.

learn more… | top users | synonyms

0
votes
0answers
16 views

Ubuntu cant find an Input Device [closed]

I've Ubuntu 12.04 installed. If you know a possible solution, feel free to reply. Thanks
19
votes
3answers
1k views

Did I just delete everything with find -exec mv?

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
0answers
52 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
14 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
24 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 ...
0
votes
5answers
96 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
41 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
53 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
89 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 ...
0
votes
2answers
42 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
31 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
60 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 ...
2
votes
1answer
96 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
63 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
49 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
41 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
0answers
64 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
66 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
56 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
52 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 ...
1
vote
3answers
66 views

Why do I see a difference in file count between Nautilus and find?

For a university project, I have to count all the files in a folder. I have used the command: find ./dirName | wc -l Although when I compare this to the file count provided by Nautilus it is ...
2
votes
1answer
38 views

How do I use the find command to effectively recurse when the pattern contains a wildcard?

I was under the impression that the following command will search for, and list all Java files starting from the current directory and recursing down. However, if I have a Java file in the root of my ...
1
vote
0answers
77 views

find command does not find string in subfolders

I have a file structure something like this: /apps/base/logs1 and /apps/base/logs2 Both logs1 and logs2 folders have .log files with some other files as well. I am trying to do this From /apps ...
0
votes
1answer
55 views

How do I remove files as a result of the find command?

I want to rm all the files that I get when I run find search-3S-beta |grep "\.log\." What would be the command?
7
votes
2answers
170 views

How do I exclude a directory by name using find?

I have a lot of directories on my system, with a structure looking like this: \-----data \------- 001abc \------- 002abc \------- 003abc \------- 004abc \------- ...
1
vote
1answer
46 views

Count lines in files from set

I need to count the number of lines in files from a set. I tried to execute find -name pattern -exec vc -l '{}' \; But this command returns find: `vc': No such file or directory
0
votes
1answer
81 views

Find and exec using pulled variable

So far I have a simple batch script that moves *.mkv files from their source folders to a folder called "Movies". Now I would like FileBot to rename them using the 'find' command, since it (filebot) ...
2
votes
1answer
95 views

I can't find a file in ubuntu 12.04

i used the code in terminal sudo mv filename.jpg /usr/share/backgrounds but when i check there, it is missing, also can't find in /home
3
votes
1answer
98 views

Cat all files in a directory, with a specific file at the beginning an end…?

Is there a way to cat all files in a given directory, but with a particular file at the beginning and end? For example, say I have: file1.js, file2.js, file3.js, file4.js, file5.js -- Effectively I ...
11
votes
2answers
130 views

Does apt-cacher change packages access time?

I tried to remove the long time unused packages from apt-cacher archive using find: $ find /var/cache/apt-cacher -atime +5 -type f -name ".*deb*" | wc -l 8471 $ find /var/cache/apt-cacher -atime +9 ...
3
votes
1answer
323 views

What is the difference between “find” and “locate” search methods in Catfish?

There seem to be two different methods of searching for files in Catfish What is the difference?
3
votes
3answers
88 views

bash escaping and find command

I trying to remove boring \-escaping from this command: find . \( -name '*.mp3' -o -name '*.jpg' \) -print by wrapping it in single quotes: find . '( -name *.mp3 -o -name *.jpg )' -print ...
0
votes
0answers
24 views

Finding gephi's settings file in ubuntu?

I am trying to increase the maximum amount of memory available to Gephi on Ubuntu. The official Gephi help says this is how to do it: On Linux, go into your application directory and then into the ...
2
votes
2answers
81 views

How to find all the files related to a software?

I'm not sure if it is possible, but if it is, how can I find all the files related to a software? For example, is there anyway to find all files that gedit needs and uses to work? Does such ...
1
vote
0answers
41 views

How can I synchronize all PDFs from one directory with Dropbox?

I want to synchronize all the PDFs from one directory (my Zotero library) to Dropbox. Finally, I want to have a list of all the PDFs, not the directory names. I successfully synchronized all my PDFs ...
4
votes
2answers
1k views

Find files in linux and exclude specific directories

I have a find looking like this: rm -f crush-all.js find . -type f \( -name "*.js" ! -name "*-min*" ! -name "*console*" \) | while read line do cat "$line" >> crush-all.js echo >> ...
1
vote
3answers
88 views

Recursively find every first file at each branch of a directory tree

Consider the following directory listing: /a/1 /a/2 /a/3 /b/1 /b/2 /b/3/a /b/3/b /c/a.whatever /c/b /c/c I want a command that will find the first (alphanumeric sort) file in each directory (inc ...
11
votes
3answers
1k views

Find directories that DON'T contain a file

Yes, I'm sorting out my music. I've got everything arranged beautifully in the following mantra: /Artist/Album/Track - Artist - Title.ext and if one exists, the cover sits in ...
2
votes
1answer
493 views

List of files modified between perticular time period

I am trying to get list of files modified between particular period of time as explain in this answer. I stored date and time in two variables [nn and nn1 (stupid naming)] and tried with find ...
2
votes
1answer
82 views

React to a modified directory

In linux everything is considered as file, Now if I want to find only folders/directories not the files then how can i do that? I am getting all the modified files with the following command. find ...
2
votes
1answer
362 views

How to find files between two dates using “find”?

I have an email account that has passed 60GB of emails, and currently I'm having a lot of trouble using an email client to archive emails of last year (2011). Via terminal, I am trying to use find to ...
1
vote
1answer
49 views

ubuntu alongside win7

I have two hard drives, one where win7(C) is installed and the other ubuntu 12.04(D). I cant find the other files on D like movies and etc using ubuntu but i do find them running win7. How can I find ...
1
vote
2answers
305 views

Using grep to find a string

I am trying to locate a file that (should) contains the string "1896.345", somewhere under /home/dir/. Any ideas of how I can do it? Thanks
1
vote
2answers
86 views

Can someone explain me the find command behavior that I use?

Can any one tell me why the following command won't run : find ./assign/*.c -exec cp ./assign2 {} \; and what's the difference when i do the following(which actually runs): find ./assign -type f ...
2
votes
1answer
179 views

find command to remove files says that some files don't exist

I have an OSX Mountain Lion Laptop connected to and ubuntu 11.10 system and tried to copy one .csv file from the OSX machine to the ubuntu machine. I stopped the file transfer as I realised it created ...
0
votes
1answer
493 views

Exclude some of the “find” results

I'm using find command along with -exec something argument. Can I exclude some directories/name that match regex (something like rsync's --exclude)? Will -prune be enough if I want to exclude many ...
2
votes
2answers
304 views

Find files/folders in folder except some specific folders

I'm trying to move all files from one folder to another, except some specific folders. I tried this to move all files except the .git, assets or build folders: find .. ! -regex ...
1
vote
2answers
107 views

What does this warning mean in find command?

I am trying to learn the find command, please help me with this warning: ankit@battlestar:/home/mount_150/studies$ find -iname "*.pdf" -exec cp -ar {} lcommands/ \; cp: `./lcommands/june.pdf' and ...
4
votes
2answers
204 views

Searching for a filename without a certain string

So when you want to search for a file with a filename containing the string xyz from a directory to all depths, you write sudo find path -name '*xyz*' How do I find all files without the string ...
0
votes
1answer
620 views

What does “paths must precede expression” mean when using find?

I want show all the files that have a .bak extension. kaykav@ubu2:~/Documents$ ls cdIndex1-60 met.bak tem.bak I type the cmd : $ find . -name *.bak I'm in the correct Directory for this. I get ...

1 2