1
vote
1answer
63 views

Results of not using '{}' in find /mnt/tmp -atime +91 -exec rm -f {} \;?

I have been using the following code for the longest on a system I took over: find /mnt/tmp -atime +91 -exec rm -f {} \; However, researching further I see everyone saying the curly braces should ...
3
votes
1answer
77 views

How to list every file that is written to, on Linux?

What is the best way of getting a list of all files which have been written to, since power on? Is a simple find (with mtime) best for this, or are there other ways? (find won't list files which are ...
1
vote
2answers
62 views

Fetching all PHP files and store their size

I like to monitor every php file with their size (and if a new file has been added). On my server are more than 200 000 of em so find takes very long. This is what I do: ls -1 --size $(find -P . ...
0
votes
1answer
331 views

rsync files created or modified from windows share on cifs mount

I want to rsync the files to my local linux box, but I only want files that have been created or modified within the past 30 days. I'm mounting a windows share from linux using this command: mount ...
2
votes
4answers
2k views

Find the location of libmysqlclient.so.X file in Linux environments

I'm putting together a script that has a requirement of knowing libmysqlclient.so.[15|16|18] .so file. It's usually located in /usr/lib/ , /usr/lib64/ or a mysql/ subdirectory of the aforementioned ...
3
votes
3answers
698 views

sh script to remove just txt files using find and exec rm warns me of missing argument to exec

find /full/path/dir -name '*.txt' -exec /bin/rm {} \; Fine in a shell, but pop it in a sh script along with some similar lines, to get it to run nightly from a cronjob, and it reports: find: ...
1
vote
3answers
288 views

Find in files, Linux

Say I want to find all files that mention "Jonathan Appleseed" in a Linux system. I see examples using grep, but I can't quite grep yet how to search (all directories from HERE). So I want to look ...
0
votes
4answers
473 views

Subversion Path on Ubuntu Server

Might be a dumb question. But I installed SVN 1.4.6 via apt-get. Everythings working dandy with no issues. I want to backup all the SVN files so I figured to backup /svn which is where appache is ...