How to check new uploaded files to my websites recently?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,477
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
Registered
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
Registered
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
Registered
Joined
Apr 21, 2018
Messages
153
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
Registered
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
Registered
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
Replies
6
Views
1,890
Replies
9
Views
2,043

Latest Hosting OffersNew Reviews

Sponsors

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