Empty trash in ubuntu

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution
ubuntu permissions rm delete
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution
ubuntu permissions rm delete
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution
ubuntu permissions rm delete
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm trying to empty my trash using the UI but it doesn't work. i tried to use this command rm -rf ~/.local/share/Trash/* but it does not success with messages like rm: cannot remove 'file.txt': Read-only file system. any solution
ubuntu permissions rm delete
ubuntu permissions rm delete
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 17 mins ago
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 26 mins ago
Achraf
11
11
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Achraf is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do
rm -rf ~/.local/share/Trash/*/*
Hope this helps.
same problemerm: cannot remove 'file.txt': Read-only file system. any solutioni think it's a permission probleme i have only read accesson that dir
â Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do
rm -rf ~/.local/share/Trash/*/*
Hope this helps.
same problemerm: cannot remove 'file.txt': Read-only file system. any solutioni think it's a permission probleme i have only read accesson that dir
â Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
add a comment |Â
up vote
1
down vote
The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do
rm -rf ~/.local/share/Trash/*/*
Hope this helps.
same problemerm: cannot remove 'file.txt': Read-only file system. any solutioni think it's a permission probleme i have only read accesson that dir
â Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
add a comment |Â
up vote
1
down vote
up vote
1
down vote
The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do
rm -rf ~/.local/share/Trash/*/*
Hope this helps.
The ~/.local/share/Trash directory contains 2 sub-directories, files and info. When you move something into the trash using the GUI, it actually moves it into the files sub-directory, and may put some meta-info into the info sub-directory. So, if you want to remove items in the Trash from the command line, you really want to do
rm -rf ~/.local/share/Trash/*/*
Hope this helps.
answered 13 mins ago
Lewis M
6155
6155
same problemerm: cannot remove 'file.txt': Read-only file system. any solutioni think it's a permission probleme i have only read accesson that dir
â Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
add a comment |Â
same problemerm: cannot remove 'file.txt': Read-only file system. any solutioni think it's a permission probleme i have only read accesson that dir
â Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
same probleme
rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dirâ Achraf
7 mins ago
same probleme
rm: cannot remove 'file.txt': Read-only file system. any solution i think it's a permission probleme i have only read accesson that dirâ Achraf
7 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
Is there a file.txt.trashinfo file in ~/.local/share/Trash/info? If so, what is in there for the Path?
â Lewis M
4 mins ago
add a comment |Â
Achraf is a new contributor. Be nice, and check out our Code of Conduct.
Achraf is a new contributor. Be nice, and check out our Code of Conduct.
Achraf is a new contributor. Be nice, and check out our Code of Conduct.
Achraf is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f480615%2fempty-trash-in-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password