How to check new uploaded files to my websites recently?

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
1,196
Points
63
I have 10 websites and having some freelancers working on it, recently I see my server increase disk space quickly, I doubt someone uploaded more files to one of my websites but I don't know how to check. Does any one help me to find out which files are uploaded recently?
 

rowebca

New member
Joined
Nov 4, 2018
Messages
12
Points
3
One example is command --find-- something like:
Bash:
find -type f -mtime 30 # last 30 days
. You can use --ls--command...many ways to do it.

Regards
 

rowebca

New member
Joined
Nov 4, 2018
Messages
12
Points
3
You can use:
Bash:
find /where/are/yourfiles/ -type f -name '*.png' -mtime +30
This will show all your png files from /where/are/yourfiles/ older than 30 days.

Regards
 

castordor

Well-known member
Joined
Apr 21, 2018
Messages
122
Points
28
Using the ls command, you can only list today’s files in your home folder as follows, where:
  1. -a – list all files including hidden files
  2. -l – enables long listing format
  3. --time-style=FORMAT – shows time in the specified FORMAT
  4. +%D – show/use date in %m/%d/%y format
Bash:
# ls  -al --time-style=+%D | grep 'date +%D'
Source: https://www.tecmint.com/find-recent-modified-files-in-linux/
 

rowebca

New member
Joined
Nov 4, 2018
Messages
12
Points
3
The OP said "Does any one help me to find out which files are uploaded recently "he wasn't precised what he wanted.

You can do it but in another type, of course the most used / precised is -find-, but if you want to display let's say the last 25 files uploaded you can do something like:

Bash:
ls -halt | head -n 25
Regards,
 

NoFrillsCloud

Member
Joined
Nov 13, 2019
Messages
15
Points
3
You mentioned in the other thread that you are using cPanel/WHM.

The easiest way to check this without needing to resort to entering commands into SSH is just to check the individual cPanel accounts and see which account uses the most space.
 
Newer Threads
Latest Threads
Replies
0
Views
1
Replies
0
Views
14
Replies
4
Views
39
Replies
0
Views
1
Recommended Threads
Replies
10
Views
923
fwh
Replies
0
Views
1,791
Replies
0
Views
411
Replies
1
Views
1,491

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top