Sign in to follow this  
Followers 0

Sletting av mange filer i en mappe

3 posts in this topic

Har ett spørsmål til angående sletting av mange filer i en mappe via ssh.
Er det mulig å liste opp filene mens de blir slettet i en mappe?

Share this post


Link to post
Share on other sites

Denne skal fungere fint:
find /home/brukernavn/mappe/. -exec rm -rfv {} \;

Den vil fjerne alle filer/mapper i "mappe" og liste dem opp etterhvert som de blir slettet.

Share this post


Link to post
Share on other sites

Tusen takk! Akkurat det jeg var ute etter og det fungerte helt topp :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  
Followers 0