[solved] delete a bunch of files at once through telnet?


Recommended Posts

Is there away I can delete a bunch of files at once through telnet.  For example cd /mnt/disk1/downloads   In my downloads folder I have a bunch of files I would like to delete and would like to try to do it though telnet.

rm /mnt/disk1/downloads/*

 

if not sure, type

ls /mnt/disk1/downloads/*

to see what will be deleted first.

 

In place of * (which matches every file) you can use *.xyz

where "xyz" = the extension of the files you want removed

 

or, type

mc

and use midnight commander to select, and then delete the files.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.