A commandline utility to find files and directories.

learn more… | top users | synonyms (1)

-1
votes
0answers
26 views

Printing e-mails [closed]

Able to print from Ubuntu 14.4 on Epson DX8400 but cannot print any e-mails. Any help in non tech language would be gratefully received. Contacted Epson and they were as useful as a chocolate teapot. ...
1
vote
1answer
90 views

How can I copy all files and folders from one directory to another with similar structure with `find` and `xargs`?

For example, I use find command find /usr/share/icons -iname 'foxitreader*' find the files: /usr/share/icons/hicolor/32x32/apps/FoxitReader.png /usr/share/icons/hicolor/48x48/apps/FoxitReader.png ...
0
votes
0answers
21 views

dolphin “Find ” not working

how do you get "find" to search for anything. when i type anything it says that it found nothing. I've tried kde-baseapps, systemsettings , and kfind. im using ubuntu 16.04 and the version of ...
0
votes
3answers
380 views

What does this “find” command do?

I am so beginner on Linux and I have run the following command while I am on /root: find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \ I meant to run that on a ...
0
votes
1answer
45 views

Concatenate find command with other commans

I am trying to index my file system. What I want to do, is: execute the command find, and for each entry save the last access time, last modified time, compute the hash and other operations. In order ...
1
vote
1answer
292 views

How to find a specific text in files with specific extension?

Let's say I'm searching for all files with .log extension that contain the text of abc. When searching for files with any extension would look like (Ref.: http://unix.stackexchange.com/a/16140/38353 ...
1
vote
2answers
28 views

Identifying which directory a filename comes from

I have a .txt list of filenames which come from two different directories. They come from a server database and share a single characteristic (database flag), but I really need to know which of the 2 ...
0
votes
2answers
38 views

searching a file [duplicate]

I want to find in the system a file, and I know part name of it. How could I do that? I tried unsuccessfully the command: find / "*partname*" The problem is probably very easy however I cannot find ...
1
vote
1answer
25 views

Find the GIT Repository in specific directory and exec git bundle command

I am using ubuntu 12.04 TLS in which i have a git repository in a specific directory, what i am trying is to take the scheduled backup of the repository and place it in specific directory that can be ...
0
votes
1answer
21 views

Opening a file using xdg-open

I have a bash script which reads a file extension and list files of that extension using 'find' command. After that it reads name of the file. Now after this how can I open that file using name and ...
1
vote
1answer
30 views

How does one properly copy a file into multiple folders and subfolders without overwriting the file contents in the destination folders?

I actually tried an existing answer from: How to copy a file to multiple folders using the command line? where I used the command: find folder -exec cp file.txt {} \; I wanted to use this because I ...
0
votes
1answer
23 views

Find file based on content of entire file, not per line

Can I search for files with a rexexp that is matched against the entire file? Let's say that I have these files: //file1 foo bar //file2 bar foo I want to find files that end with "foo". If I use ...
1
vote
1answer
55 views

How to rename a part of file using find command in directory and sub directories [duplicate]

I have a lots of log file in a directory and it's sub directory named as dataupload_sales_.xxx.com.dat. I wanted to change all files xxx.com part to yyy.com in current and sub directories. i hope ...
0
votes
2answers
27 views

find does not go through all files in folder structure

I want to convert a massive bunch of wmf files (120860!) to svg in many subfolders (27 subfolder with many sub-subfolders each). I have this bash script that does for i in `find -iname "*.wmf"`; do ...
0
votes
1answer
65 views

Why is rsync copying directory structure when my find result only shows me files?

I have an annoyingly complicated find command I've cobbled together that I pipe to rsync with the intention of copying files and syncing new versions. I'm trying to write something that is efficient ...
3
votes
2answers
59 views

Output of running commands in Terminal

I use this line to delete files find . -type f -iname \*.vi -delete and this line to move files find . -name "*.doc" -exec mv {} /path How can I see the process as it happen, I mean I don't ...
1
vote
1answer
28 views

How to find only 'permission granted' files

I'm trying to find files that I'm able to edit, I tried the commands below but still getting 'Permission denied' results. find -name "*.config" | grep -v "Permission denied" find -name "*.config" ...
0
votes
2answers
55 views

find all '&' characters in files and folders

i have a Ubuntu server with samba file sharing. i want to find all files and folders that have '&' in their name an replace it with 'and'. can any one help me on this situation. thank you all i ...
0
votes
2answers
87 views

How to find .php files with numbers in the filename

I've been having files being included in one of my systems. An example of these is default76.php Most times there are just 2 digits before the extension. I need a way to find these files and print ...
0
votes
1answer
46 views

Find command replaces text unwantedly

I am running an Ubuntu EC2 instance. I often use find and replace to update, and tweak things which are used in all files. However, when I have to replace PHP code, I inevitably have to replace the ...
0
votes
0answers
29 views

how to find a file and ftp from ubuntu server?

I am not a unix scripting guy, so I have this question to you all. How I can find a file and ftp it to a ftp server? ncftpput -R -v -u "username" x.x.x.x xyz/ Downloads/[find /home/owner/Downloads ...
0
votes
1answer
83 views

Empty curly braces and semicolon in bash [duplicate]

What does {} \; string mean in bash? I've seen it a couple of times, for example, to find and delete all files by name one must execute find . -name "FILE-TO-FIND" -exec rm -rf {} \; What does ...
3
votes
1answer
48 views

Finding linked files

Trying to find where /usr/include/freetype2/ft2build.h file is linked in my system: sudo find -L / -samefile /usr/include/freetype2/ft2build.h This dives many errors File system loop detected ...
3
votes
1answer
74 views

Delete files that were created before today

I want to search files whose creation date is prior than today. I do : find $HOME -type f -name "myFile_*.sql.zip" -mtime +1 but it doesn't return anything, it should at least return one file. ...
1
vote
1answer
102 views

Ubuntu find and replace in files of current directory recursively

I am running Ubuntu 14.04 and Magento website in my Local System. Now I have a module directory in which I want to replace every occurrence of "Magento\Module" with "MyCompany\Module" in all files ...
1
vote
1answer
80 views

Ubuntu print output of “find” and “exec” to file [duplicate]

I have a command which list outs events of "Magento 2", which is working fine in the terminal. I want it's output to be printed into a file but none of the below code works: find . -type f -exec ...
3
votes
2answers
167 views

How to include/exclude many different files/folders using terminal

I am doing a search for files that have been edited in the last day using the find . -type f -mtime 0 function in terminal. I want to exclude some files and folders in the query, such as .DS_Store ...
4
votes
1answer
780 views

Search files content for possible BTC key strings

I have 4 BTC addresses on two of my drives that I cant bloody find. I saved them under stupid name so they would be hard to find if someone had access to my system. Now I cant find them. Is there a ...
3
votes
2answers
143 views

copy files by date

How can I copy files in a folder based on when the file was last edited? Lets say I want to copy all my files that I last edited today from c: to my folder bak. How can I achieve that? I know that a ...
0
votes
2answers
43 views

how to have chown only effect folders, not files?

I have to chmod a structure of subfolders which contain more sufolders and also files naturally. Now I need to change access rights (owner:group, no acl at this point) to this complete structure in ...
0
votes
1answer
20 views

make clean in several subdirectories

I want to clean several (>20) subdirectories with make clean. I thought about someting like this: find ./ -type d -maxdepth 1 | xargs "make clean" but it doesn't work. Could you please help me?
0
votes
1answer
2k views

Where does Desktop Telegram save sent pictures?

i use telegram with my pc. i know that telegram save all pictures in a folder on android. is telegram save pictures on pc too ? and if yes, where is it ?
9
votes
3answers
728 views

How to combine the output of multiple `find` commands?

find -type f -name "*.avi" -exec md5sum {} + > checklist.chk find -type f -name "*.mp4" -exec md5sum {} + > checklist.chk How to combine these two commands? Either by combining both search ...
0
votes
1answer
55 views

Finding and copying files in Terminal

I have a .txt file (called list.txt) containing a list of filenames, including their paths. Such as: /Users/Me/Downloads/0001.pdf /Users/Me/Downloads/0010.pdf /Users/Me/Downloads/0053.pdf ...
1
vote
2answers
88 views

How can I use “mv” to gather all the files found by “find” in the same folder?

I can find all the files I want using find however I want to use mv to move them all to a certain folder. How can I do that?
5
votes
2answers
3k views

What does grep do?

Here is the description of grep from GNU.org: grep searches input files for lines containing a match to a given pattern list. When it finds a match in a line, it copies the line to standard output ...
1
vote
1answer
80 views

One-word command to search for a file

I know there's a command to search for a file anywhere. It's a quite simple, 1 word command. Sadly, I forgot what it is. So, let's say I want to search for a file name testingthis. The file could be ...
2
votes
1answer
199 views

Command to change permissions only on files not directories

I have the following command find . -type f -print0 | xargs -0 chmod 644 which would successfully change to 644 the permissions on all files in ., provided that the filenames contained no embedded ...
0
votes
0answers
40 views

Directory showing with find but not with ls

I have a 2TB ntfs disk mounted. The fstab entry looks like this /dev/disk/by-uuid/7AD35DE723741E22 /home/herb/2TB ntfs defaults,uid=1000,gid=1000 0 2 I installed a service with a web front end on the ...
2
votes
1answer
179 views

How can I recursively copy files by file extension?

I would like to copy all files with a certain extension that are in sub directories to a different folder. I don't want to maintain the directory structure, I just want to copy all files found to a ...
1
vote
1answer
54 views

assign variable with find option [duplicate]

shopt -s nullglob shopt -s failglob find . -maxdepth 1 -type f -name '*[0-9][0-9]o' -printf 'x' | wc -c I need to assign the numeric result of the find command to a variable. For example: a=find . ...
1
vote
2answers
50 views

How to find gaps in list?

So, I have allot of files (167k) and now they are now in proper order, thanks to Serg's script in here - http://askubuntu.com/a/686829/462277 . And now I need to find gaps between filenames, the ...
1
vote
1answer
76 views

Help with MKV to MP4 Remux script

Overview: I'm trying to remux my mostly MKV library to MP4. I have a script that has gone through and extracted subtitles from the video files. I have another script that will remux any .mkv files ...
0
votes
1answer
26 views

Recover lost video

I used youtube-dl to download a video. It saved in my Home directory. Then I did sudo mv file_name /Videos but it's not in my Videos directory and also not in Home. I am using sudo find / but it's ...
3
votes
6answers
666 views

Find all files with specific extensions that contains a string

I'd like to know how could i find all files whose extension can be .xml and .py that contain the string "Jason" under a path "./" recursively? Or how could i exclude .po from the search?
2
votes
1answer
531 views

How can I find world writable files and folders and set the sticky bit?

I want to do the following: Need to find all world writable files and folders from / root. If found, I need to check whether the sticky bit is set or not. If the sticky bit is not set, then set it. ...
3
votes
1answer
124 views

A utility to find duplicate folders (NOT files)

I know about rdfind that can find duplicate files in two directories. But I need a similar utility that finds duplicate folders (folders that have same name and same path relative to main directories) ...
22
votes
1answer
469 views

find vs. locate

There are the commands find and locate to search for files on the disk. I know that find recursively processes all needed subdirectories to search files and therefore is slow but up-to-date, whereas ...
1
vote
3answers
243 views

Alias to search files by name and open them in vim

I already have an alias to (more) quickly search files : alias f='find . -iname' I use it as such: $ f *statis* ./main/statistics.py ./test/test_statistics.py Now, I would like to have another ...
1
vote
0answers
92 views

Highlight search results in Ubuntu Gnome's terminal?

Is there a way/plugin to highlight the searched strings in Gnome's terminal on Ubuntu (When using Ctrl+F or similar keys)? Not just a single result, but all which appear inside the window?