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.

Share:
12,820

Related videos on Youtube

Noa
Author by

Noa

Updated on September 18, 2022

Comments

  • Noa
    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
      Jenny D over 10 years
      What 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
    Noa about 11 years
    thanks for the info! since i'm using putty to connect I must type the command to delete them
  • Jenny D
    Jenny D over 10 years
    DO NOT recommend using rm -rf without knowing what it does and what the arguments mean!