Here is the folder and its content.I don't understand why I cannot remove these files and this folder.
ls -ltr
results in:
total 16672704
-rwxrwxrwx 0 17064381527 Eyl 2 18:10 101737-31-HO-EO_L03_99_merged.bam
-rwxrwxrwx 0 8395632 Eyl 2 18:10 101737-31-HO-EO_L03_99_merged.bam.bai
-rwxrwxrwx 0 4503304 Eyl 2 19:52 101737-31-HO-EO_L03_99.g.vcf.gz
-rwxrwxrwx 0 49778 Eyl 2 19:54 output.txt
sudo rm -rf * results in:
rm: cannot remove '101737-31-HO-EO_L03_99.g.vcf.gz': No such file or directory
rm: cannot remove '101737-31-HO-EO_L03_99_merged.bam': No such file or directory
rm: cannot remove '101737-31-HO-EO_L03_99_merged.bam.bai': No such file or directory
rm: cannot remove 'output.txt': No such file or directory
Using sudo rm -rf merged_bam_bai
to delete the whole folder doesn't help either.
My Ubuntu version is 18.04.5 LTS
merged_bam_bai
isn't your working directory? – Zeiss Ikon Sep 02 '21 at 17:35ls -l
output is strange. After the permissions field (-rwxrwxrwx
), there is a number of 0 links to the file (there should be at least 1), and there are no owner/group fields. Is this directory maybe some network share? If yes, it may be mounted read-only, that's why you can't delete. – raj Sep 02 '21 at 18:16