how to delete temp and log files with terminal on vps?
12,820
On a debian based machine temporary and log files are probably in
/var/tmp
/tmp
/var/log
or some subdirectory of those paths. However there is no guarantee that a program writes them there. To remove them you probably need root
privileges and use rm
.
Related videos on Youtube
Author by
Noa
Updated on September 18, 2022Comments
-
Noa over 1 year
Anyone know how to delete any temp and log files or these kind of files on vps with terminal? I'm runnin debian on the vps. I can't locate those files.
-
Jenny D over 10 yearsWhat kind of temp and log files are you worried about? Is it e.g. your browser's cache, or files created by other programs you run?
-
-
Noa about 11 yearsthanks for the info! since i'm using putty to connect I must type the command to delete them
-
Jenny D over 10 yearsDO NOT recommend using
rm -rf
without knowing what it does and what the arguments mean!