Trusted Contributor
groque1
Posts: 88
Registered: 09-09-2009
0

how do i delete a directory in junos

hi all, 

 

how do i delete a directory in junos? I tried file delete /cf/var/tmp/junos-10.0R1.8. 

 

basically what happend is when I was trying to install JUNOS10 it failed on my first verification, I made my changes etc and ran it with no-verification and now JUNOS10 is installed but it kept the old installation files and directories in my TMP folder. 

 

Its taking up roughly around 400MB how would I remove this? 

 

Thanks 

Distinguished Expert
muttbarker
Posts: 827
Registered: 01-29-2008
0

Re: how do i delete a directory in junos

Issue a "start shell" command from the operational mode prompt to drop back to the UNIX shell. Then you can use regular Unix commands like "rm /dir/file to remove whatever.....

Kevin Barker
JNCIS-SEC, FWV, SSL; JNCIA-ER, EX, IDP, UAC, WX

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.
Distinguished Expert
rkim
Posts: 505
Registered: 11-06-2007
0

Re: how do i delete a directory in junos

Shell command 'rm' will remove files. For directories use 'rmdir'.

 

-Richard

Recognized Expert
Screenie
Posts: 428
Registered: 01-10-2008
0

Re: how do i delete a directory in junos

OK rm -r <directoryname> then. Removes the dir and content of it. rmdir fails on none empty dir.

best regards,

Screenie.

JNCIA IDP EX AC WX DX (expired (:-) JNCIS FW SSL ER ES JNCI

If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.