A commandline utility to find files and directories.

learn more… | top users | synonyms

3
votes
2answers
70 views

How to stock all files with the same suffix into a table?

i'm making a little shell script and i want to stock all files with same suffix in a table. i want something like that : path=/home/user/Documents suffix="_suffix.txt" and then a function that ...
0
votes
3answers
52 views

Using find to search for files containing a word

I want to use the find command to find all files on the system that have the word fsck. I tried find / -iname fsck and it started to search files but everything was permission denied. When I try ...
1
vote
6answers
383 views

How to open a found file with vi? Piping 'find' output to vi [duplicate]

I have a file, /home/user/important.txt. To find it, I use: find /home/user -type f -name 'important' Then, I want to open the file in the Vim editor using a pipe. How can I do this? Something ...
2
votes
1answer
21 views

Find the files of a particular user or group

How can I search the files based on the owner or group in command line? Right now I have tried ls -lR, that gives all the details of files in sub directories also, and I needed to manually search ...
3
votes
1answer
22 views

Lubuntu updatedb.locate may scap bind mounted nfs file systems

I noticed that cron.daily that run updatedb.locate was talking very long to complete (if ever completing). I have interrupted last run with find taking more than 16 hours of CPU time. After ...
3
votes
2answers
226 views

Using busybox's find to delete recursively some files

How can I find and delete all .jpg? -delete doesn't seem to work... [/share/Multimedia/Music] # find . -name '*.jpg' -delete BusyBox v1.01 (2015.01.25-18:47+0000) multi-call binary Usage: find ...
0
votes
1answer
23 views

How to find all files with the same extension within a directory in parallel

I want to grep files with a specific extension. I know how to do it using find command as blow: find . -type f -name "*.pptx" I am wondering if I can do above command in parallel (using more CPU). ...
2
votes
2answers
79 views

How to use 'if' inside '-exec' attribute of 'find'?

I have a directory with many pairs of files. Each non-text file has a textual description partner. For example a directory can look like this: a.jpg a.jpg.text b.ogv b.ogv.text cd ef.JpG cd ...
-4
votes
3answers
626 views

find all headers file begin with vowels in /usr/include

I need to find all headers from /usr/include that begin with vowels (a,e,i,o,u) Example: acpi.h aclinux.h ah.h ... I don't know how to do it , I tried something with grep but I didn't make it ...
1
vote
1answer
41 views

Finding files in sub directories

Still a newbie. Using a clean machine, purchased from System 76 with Ubuntu 14.04 LTS installed. Got it mid-May of 2014. Why can't I find files in the current and its subdirectories? I've tried ...
0
votes
0answers
42 views

lvm VG on boot disk (array) not found with vgdisplay but VM VG seen

I have weird problem with VM server and two raid arrays: OS is installed /dev/sda (raid-5 array) with vg-disk (group?) with id vg_server1 which is created during installation. Later on there is ...
1
vote
1answer
32 views

find command is not working properly

When I run the command find -L /home/yabir/Descargas/ -mtime 0 -mtime -12 to find for the files that have been modified 12 days before today in the Descargas folder I get nothing. I have this folder ...
0
votes
1answer
45 views

How to effectively find all PDF's on disk and copy to one folder?

I have a removable disk via usb connected to my laptop with Ubuntu. I want to find all PDF's on that additional disk and copy them all to a folder in my home directory. Is there a quick and easy way ...
0
votes
1answer
17 views

kubuntu find not working properly in home directory

Opening a terminal in my home directory, the following commands yield no results: ~$ find . -name 'mysql' ~$ find ./ -name 'mysql' ~$ find /home/username/ -name 'mysql' but if I chdir to my local ...
19
votes
1answer
759 views

What is the difference between using '+' and '\;' in -exec command?

I'm wondering to know that what difference is the between using + and \; at the end of -exec command when I use in find command? find .... -exec ... \; VS find .... -exec ... +
1
vote
0answers
28 views

Is there a way to view passwords in plaintext? [duplicate]

I need to figure out a password, but I'm not supposed to change the password itself. Is there anyway, perhaps through the common-password file or a command to show the plaintext password of a user?
0
votes
2answers
87 views

Find and execute multiple scripts in parallel

G'day, I have tried to solve this problem all morning but have not had success. I would like to search for certain scripts in a particular folder and execute them all in parallel. The scripts have ...
0
votes
1answer
48 views

Trying to organize files by extension using a script (grep, for, foreach, find), but I'm overwhelmed. Looking for advice [duplicate]

I want to iterate through all files in the Source directory and stick them into the Dest directory. Example list of files: /source/folder/text.txt /source/folder/document.pdf ...
2
votes
1answer
91 views

Find not removing files in folders through bash script

I'm very new in bash scripting and I'm really stuck on the find method from Ubuntu. I want to search in the folder /opt/ for all folders to see if they are older than a specific date. If they are ...
2
votes
1answer
83 views

Shell script to move all images excluding ones with size in name using find?

I have a server backup of a WordPress site that has about 1000 images in the uploads directory. When an image was uploaded through WordPress it would create multiple sizes of the image such as: ...
0
votes
1answer
47 views

Can a directory's mtime be older than that of file inside?

I have this very silly and very basic question but I thought better to ask before I start pruning my NAS. I want to delete all directories in which all files are older than 30 days. For files I ...
0
votes
1answer
60 views

Use find command but exclude certain directories [closed]

I am trying to run the make command, but it says make: *** No targets specified and no makefile found. Stop. After doing some research, it seems that the error is because I need to run ./configure ...
19
votes
2answers
2k views

Why I can find *main.o but cannot *.o?

This one is correct: $ find . -name *main.o ./main.o So, why I can't find *.o? $ find . -name *.o find: paths must precede expression: main.o Usage: find [-H] [-L] [-P] [-Olevel] [-D ...
3
votes
1answer
123 views

Find a file which contains a string and delete it in Ubuntu

My CMS is full of SPAM scripts and they are almost in every folder. I figured out, that I can find those scripts by using this find/grep command: sudo find . -type f \( -name '*.php' -or -name ...
0
votes
3answers
44 views

What's the easiest way to list files of a given extension, save that list to a text file, but omitting the actual extensions when in the text file?

This is for a counterstrike server, where mapcycle.txt contains all the maps found in the maps/ folder, but the list of maps must not contain the .bsp extension. Example of maps/ folder: map1.bsp ...
0
votes
1answer
30 views

find is using a LOT of resources - how do I find out why?

My Ubuntu 12.04 LTS system has been running very slow lately. I keep having to reboot it, and then within 24 hours it's slowed down again. I've gone in and run top and what keeps coming up at the ...
3
votes
3answers
494 views

For loop with unix find

Trying to do a mass convert from M4A to OGG in a large music collection, I have: #!/bin/sh for i in `find /home/family/Music -name *.m4a -print0` #do ffmpeg -i "$i" -acodec libvorbis -aq 6 -vn -ac ...
5
votes
1answer
234 views

Finding all .cpp files in the users home directory

How we will find more accurately all .cpp files in the users home directory that were modified no more than 5 minutes ago?
0
votes
0answers
48 views

I can not install windown back. I get error message “cannot find backlight controller” “Support for cores revisions 0x17 and 0x18 disabled by module”

I tried to install ubuntu to my win8 pre installed computer and I am new at ubuntu so I chose lvm option while installing. and now ubuntu deleted all data about win8 and does not let me install ...
2
votes
1answer
133 views

Renaming multiple files

My security cameras recorder (located in distant place), FTP`s to my server video files after any event. It automatically creates sudirs with name containing date of day. Using find and ffmpeg ...
1
vote
1answer
31 views

Efficiently finding the first file (in the lexicographical sense) among multiple directories

I have hundreds of folders and each folder contains thousands of files. I want to identify the "first" file among all files of all folders, "first" being defined by the lexicographical order of the ...
0
votes
1answer
153 views

Change the permissions of files and directories excluding one directory

I'm trying to change the permissions of files and directories, excluding one directory though. What I've got is: find ! -name test -exec chmod -R 700 {} \; test being the directory that I need ...
0
votes
3answers
81 views

What is wrong in follwing -exec command

I m getting error in follwing command cd /opt/lampp/htdocs/EspoCRM-2.5.2 && find data -type d -exec chmod 775 {} error: find: missing argument to `-exec'
1
vote
4answers
72 views

What the -exec in `find … -exec …` do?

I am learning searching and I'm confused this command. find -name "*.swp" -exec rm {} ';' Can you explain to me what this command means?
5
votes
3answers
570 views

How to pass '*' wildcard to path parameter of find command via a variable in script?

I want to use find to find files in a set of folders restricted by wildcards, but where there are spaces in the path name. From the command line, this is easy. The following examples all work. find ...
0
votes
1answer
37 views

combine multible commands in one run one of them is find

I want in one line a command to use find to get a file name from a txt file , search for it , and play it then after closing the video I need to run a certain script I managed the first part but ...
1
vote
1answer
781 views

find: paths must precede expression:

I found the following line here: find * -maxdepth 0 -type d -exec tar czvf {}.tar.gz {} \; \; It is meant to tar gzip each folder in the current directory individually. But running it returns the ...
0
votes
2answers
91 views

Compute folder size for a given file extension only

I have a folder containing all my PHP projects, I'd like a command that would output the folder size of each project but only for the *.php files inside it. Ideally the output would be something like ...
0
votes
0answers
43 views

No Downloads, Documents, … folders in Home folder after installing dvsdk

Today I have installed dvsdk package in Home folder. For installing i have changed the mode using chmod 777 and executed ./[package_name]... After that, it asks where to install, I chose home ...
3
votes
3answers
95 views

How to list all properties of folders

How to list the properties of folders in a directory. Like, I want to 'find ./ -type d' and at the same time 'll' them.
4
votes
2answers
549 views

Why locate is faster than find? [duplicate]

I was looking for a file in my source and tried both locate and find. Surprisingly locate was searching in entire machine and was faster than find, which was searching only in current directory and ...
0
votes
1answer
24 views

find photos shot by a certain type of camera via terminal

I have a huge collections of photos shot with different cameras on my computer. Now, I would like to find all photos which has been shot with a certain camera via the terminal. I think it should be ...
0
votes
2answers
87 views

Find and exec in found folder

I'm trying to find files containing *.nef and move them to a subdirectory name NEF of the folder in which the file is found. I've started testing with the following command, but this always copies to ...
0
votes
2answers
337 views

Terminal - Search entire directory for keyword

I am working on a Ruby on Rails project so I have to manage multiple files. I think I made a syntax mistake somewhere but I'm not sure well. It would be awesome if I could search for a keyword through ...
0
votes
1answer
99 views

Does the mlocate.db generated by my updatedb cron job also applies to 'find'?

Reviewing the find man pages for Linux and for Unix, I came across the fact that the mlocate.db seems to apply to 'find' based searches as well as to 'locate' executions in certain flavors of Ux. So ...
0
votes
3answers
52 views

Filter only path of files (without directories path) from output using pipe |

rpm -qpl dhad-9.0.27891-2.x86_64.rpm allows to display all file paths and directory paths of this package . Example of output : /opt/dhad/tv_bin/wine/lib/wine/winmm.dll.so ...
0
votes
1answer
125 views

How Can I Combine 'SRM' and 'Find'?

I'm using SRM to securely delete files and directories. Most of the data is on FAT and NTFS volumes since I dualboot with Windows (I'm trying to use Ubuntu as much as possible and stay away from ...
0
votes
1answer
110 views

Lot of “file not found” when using sudo find / -type s

In the attempt to understand why I keep getting the following error error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' while using the command sudo find ...
1
vote
2answers
69 views

how can i find all files that contain embedded crc32's

how can I find all files that contain embedded crc32's e.g. Mydocument190_[F285E17D].pdf using the find command to clarify the crc32's are always within brackets [F285E17D] and the file names may ...
0
votes
1answer
46 views

finding some files and sorting the result by size and copy it to folder

well I want to use the cmd "find" to search some files and in the same time I want to sort the result by size sudo find ~ -name $i -exec du -sh {} \; | sort -nr | head -1 I used the cmd "du" for ...