Description

In this KB, we can find the step by step, on how to remove or delete a file that is under /var/tmp, from CLI.

Solution

1- Go to shell mode using >start shell

2- Remove the needed file by:

  • Specifying the directory and file name:
    • root@juniper% rm /var/tmp<filename>
    • root@juniper% ls /var/tmp>> to make sure file is not longer in there
  • Go to the directory, and from there, remove the file:
    • root@juniper% cd /var/tmp
    • root@juniper% ls >> to make sure you are under the right directory
    • root@juniper% rm <filename>
    • root@juniper% ls >> to make sure file is not longer in there

 

Same steps can apply to any other file on any other directory.

 

For Juniper Networks series

Modification History

8/30/2023