Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
463 views

Find with regex not working on CentOS 7 [closed]

I have problem with find and regular expression. I would like to find files in /etc, which name begin of a or b. I tried this commands: find /etc -type f -regex '^a' find /etc -regextype sed -regex &...
PawelC's user avatar
  • 199
0 votes
2 answers
270 views

I accidently gave all my project files a .gz format, how to revert it?

So I've accidently gave all my files, php, js, html, css files a .gz ending, so they look like: .bowerrc.gz index.php.gz main.css.gz etc... Using Centos 6.4, how can I revert back all the files? I ...
deb0rian's user avatar
  • 143
26 votes
5 answers
90k views

How to rsync files / folders from a specific date forward?

I would like to rsync folders from a specific date and forward. for example. I want to rsync my folders that were created from 3 days ago (and of course 2 days ago, one day ago etc.). I know I need to ...
edotan's user avatar
  • 1,988
-4 votes
3 answers
9k views

Find in all sub directories [closed]

I have a directory with many sub directories, I want to find a file in this directories so I use this command: find ./ -name test.php but this command search just in the top level directory, how ...
MajAfy's user avatar
  • 107
7 votes
4 answers
15k 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 ...
wrangler's user avatar
  • 3,240
0 votes
2 answers
1k views

find command to find php files but exclude a certain directory

How do I run a find command to find php files but I exclude a folder i.e. /usr/local/bin?
edotan's user avatar
  • 1,988
7 votes
4 answers
28k views

Why does "find -mtime" not work as expected on files with different timezones?

I have some files on a server with the date several months ago, but they are invisible to find -mtime 7 search. When I list them with ls -l, they look perfectly normal: -rw-r--r-- 1 root root ...
Vladislav Rastrusny's user avatar
4 votes
1 answer
43k views

How to search in centos or linux

I have found that sometime i can find files using locate but sometimes it dont find. Which directories it find the file using locate or find Suppose i want to find the files or directories having ...
user avatar