User Tools

Site Tools


rm

If you want to send us your comments, please do so. Thanks
More on comments


rm

Errors

Read-only file system

rm: cannot remove 'file.txt': Read-only file system

This can be occurred by a filesystem that has been mounted read only. Check

mount | grep /dev/[device]

and look for ro in the part between the ( ) 's. If it is there and not rW then the filesystem is mounted read-only
Possible solution: add the --read-write option to the mount command
An other cause can be a faulty SDcard

Permission denied

rm: cannot remove 'somefile': Permission denied

You need the “w” permission on the directory the file is in because you write to the directory, not to the file

Does not remove

rm -f "/home/user//somefile.*.txt"

Remove the “ 's (the double quotes)


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
rm.txt · Last modified: 01-08-2021 22:08 by wim