A commandline utility to find files and directories.

learn more… | top users | synonyms (1)

0
votes
0answers
45 views

What Terminal changes can I make? [on hold]

I would like to know if any of you got some useful changes to make for the Terminal which makes it easier to use. Like changing the settings and adding features to make it all easier.
2
votes
3answers
67 views

Find all python files in linux file system [duplicate]

How can I search my entire Linux filesystem for all python files (files with extension .py)? I know I can do find -name filename but how can I do it for file type?
0
votes
0answers
25 views

Script to delete smaller 'duplicate files' recursively with suffix

I've got an issue on my system where a image import process occasionally fails, causing some imported files to be truncated. Re-running the import process often works, but changes the imported file to ...
2
votes
3answers
87 views

How can I find media files not encoded with a specific codec?

I would like to standardize my video collection on a specific video codec (for instance the x265 High Efficiency Video Codec). I know I can obtain the codec in use from a single file using for ...
3
votes
0answers
36 views

How to find the last valid information possibly spread over several log files

I have a fleet of busses that send me a monitoring log file every morning regarding the status of the vehicle the previous day. The log updates various information every 5 minutes. Among the data ...
2
votes
2answers
182 views

How can I list only folders with no sub folders in given path?

Problem:I have given dir structure ├── kat11 │ ├── kat21 │ │ └── Dokument\ bez\ nazwy │ └── kat22 │ ├── kat31 │ │ └── Dokument\ bez\ nazwy │ └── kat32 │ └── ...
1
vote
2answers
96 views

Archive files by age using tar command

H All, I am trying to archive files older than specific duration, when I am trying to untar the tar file it retains the directory structure from root folder. I don't want to retain parent folders ...
0
votes
2answers
34 views

What is the meaning of “/.cache/” in a path or directory?

I was looking for a file "file.odt" so I used the find command: sudo find / -name "file.odt" While my computer came up with several paths to a number of copies of the same file, it also came up ...
1
vote
1answer
33 views

Find files excluding some directories

I am working with the following directory structure: onathan@Aristotle:~/EclipseWorkspaces/ShellUtilities/ShellUtilities$ ls -R .: calculateTargetDay CustomizeIso ec makeExecutable Models ...
1
vote
1answer
103 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
45 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
399 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
1k 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
42 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
30 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
25 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
49 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
25 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
71 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 it'...
0
votes
2answers
30 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
80 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
62 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
30 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
61 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
110 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
159 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
55 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
76 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
118 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
97 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
179 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
1k 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
215 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
46 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
23 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
3k 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
754 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
59 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
101 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
81 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
340 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
42 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
217 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 ...