Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-28-2025, 10:14 AM
|
#31
|
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,359
|
Quote:
|
Originally Posted by Matthew Wai
No, I did not see the person on the street. I saw his or her question on a Chinese forum. My post #1 contains a link to the question.
|
No one here is probably going to follow a link to a Chinese website.
Quote:
Originally Posted by Matthew Wai
The command is not 100% correct because "cd" is missing. The preposition "within" does not serve as a replacement for "cd".
|
Again, stop trying to split hairs. You were told, specifically, to go into the Trash folder and the command will work fine from within that folder. Period. Again, you seem to be trying to spin this as somehow being 'vague', when multiple people here have told you the same thing repeatedly. If we have to spell out everything for you, from sitting down at your computer, turning it on, typing in your password, etc., in order for it to be 'valid' for you, there's not much we can help you with. As yancek said, this is easily run..either do it or don't. And saying "within" means the command will work from WITHIN that folder...if the context isn't clear enough there is, again, little we can help you with.
The question from the 'he-she-friend-stranger-whatever' as translated, seems to indicate Windows, since Linux does not HAVE a "Recycle Bin".
If you don't believe us, then why bother asking???
Last edited by TB0ne; 07-28-2025 at 03:08 PM.
|
|
|
|
07-28-2025, 03:50 PM
|
#32
|
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi, Debian, antiX, Ubuntu
Posts: 2,326
|
Quote:
Originally Posted by Matthew Wai
The command is not 100% correct because "cd" is missing.
The preposition "within" does not serve as a replacement for "cd".
|
You are an idiot. What else would within mean? It means in the directory. You can get there by changing directory, or maybe you open a shell in there in the first place, like from your file manager - no need to change directory at all then, as long as you are in the right folder. I can't believe you keep arguing this point. "within" and "in" mean the same thing in this context.
Last edited by enigma9o7; 07-28-2025 at 03:52 PM.
|
|
|
1 members found this post helpful.
|
07-28-2025, 08:51 PM
|
#33
|
|
Senior Member
Registered: Jan 2008
Location: Baja Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 2,698
|
It seems that both the OP and the person he is trying to help are Chinese, and that English is not the first language of either. Subtleties can get lost in translation. I suspect that the primary problem here is that the OP is asking a Windows question in a Linux forum. I haven't used Windows since XP, so I can't be of any help with that.
|
|
|
1 members found this post helpful.
|
07-28-2025, 11:19 PM
|
#34
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Quote:
Originally Posted by enigma9o7
What else would within mean?
|
The meaning of "within" does not make "within" a command.
"cd" is necessary whatever "within" means.
|
|
|
|
07-28-2025, 11:39 PM
|
#35
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Quote:
Originally Posted by TB0ne
And saying "within" means the command will work from WITHIN that folder...if the context isn't clear enough there is
|
If "cd" had been added into the command, things would have been clearer.
Quote:
Originally Posted by TB0ne
The question from the 'he-she-friend-stranger-whatever' as translated, seems to indicate Windows, since Linux does not HAVE a "Recycle Bin".
|
"Recycle Bin" was output by Google Translate, which did not know that the OS was not Windows.
|
|
|
|
07-28-2025, 11:47 PM
|
#36
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Quote:
Originally Posted by sgosnell
Subtleties can get lost in translation.
|
I have not used Google Translate to translate the posts written in English.
|
|
|
|
07-28-2025, 11:57 PM
|
#37
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Quote:
Originally Posted by TB0ne
If you don't believe us, then why bother asking???
|
The idea of using a wildcard character did not cross my mind until I saw "rm -fr *" in post #4.
|
|
|
|
07-29-2025, 02:53 AM
|
#38
|
|
Member
Registered: Oct 2021
Posts: 114
Rep:
|
The general assumption when posting an answer is that whoever did the question have some knowledge about what he/she is trying to do.
If you are an absolute beginner you better say it. Then the answers will include additional information and further explanations.
That being said, the commands in post 1 are like a joke. Let me explain:
Code:
user@user-PC:~$ ls ~/.l*/s*/T*/f*/|while IFS= read -r X;do echo "${X}";done
This is deliberately obscure and nonsensical: It lists a directory and then redirects the output to a loop that reads every line and just writes it on the screen. And please, avoid any wildcard in the path.
This command should be:
Code:
user@user-PC:~$ ls ~/.local/share/Trash/files/
The second one should "work" but is also absolute nonsense
Code:
user@user-PC:~$ cd ~/.local/share/Trash/files
user@user-PC:~/.local/share/Trash/files$ file="HKEY_CURRENT_USER\Software\kingsoft\Office\6.0\plugins\kcopilotentrylite\aibrandcfg"
user@user-PC:~/.local/share/Trash/files$ rm -rf "${file}"
First line is ok, it just changes the directory
Second line, creates an environment variable with the name of a file
Third line, uses that variable to remove one file. The options -rf are useless here.
This is more reasonable
Code:
user@user-PC:~$ cd ~/.local/share/Trash/files
user@user-PC:~/.local/share/Trash/files$ rm "HKEY_CURRENT_USER\Software\kingsoft\Office\6.0\plugins\kcopilotentrylite\aibrandcfg"
user@user-PC:~/.local/share/Trash/files$ rm "HKEY_CURRENT_USERSoftwarekingsoftOffice6.0pluginskcopilotentryliteaibrandcfg"
But why bother for two files in the trash bin anyway? Can't he/she remove them using the GUI, what about the "empty trash" button?
If WPS office generates these files every time it runs, what is the point of getting rid of them?
|
|
|
|
07-29-2025, 06:04 AM
|
#39
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Quote:
Originally Posted by Racho
But why bother for two files in the trash bin anyway? Can't he/she remove them using the GUI, what about the "empty trash" button?
|
He or she posted screenshots showing that the files could not be removed by using the "Empty" button.
Quote:
Originally Posted by Racho
If WPS office generates these files every time it runs, what is the point of getting rid of them?
|
Perhaps he or she intended to install a different version of WPS Office.
Quote:
Originally Posted by Racho
This command should be:
Code:
user@user-PC:~$ ls ~/.local/share/Trash/files/
|
Your command and mine output the same information in different formats. See below:
Code:
Matthew_Wai@My-PC:~$ ls ~/.local/share/Trash/files/
Screenshot_20250725192642.jpg Screenshot_20250725193201.png Screenshot_20250725193600.png
Screenshot_20250725192721.png Screenshot_20250725193241.png Screenshot_20250725193619.png
Screenshot_20250725193112.png Screenshot_20250725193525.png
Matthew_Wai@My-PC:~$ ls ~/.l*/s*/T*/f*/|while IFS= read -r X;do echo "${X}";done
Screenshot_20250725192642.jpg
Screenshot_20250725192721.png
Screenshot_20250725193112.png
Screenshot_20250725193201.png
Screenshot_20250725193241.png
Screenshot_20250725193525.png
Screenshot_20250725193600.png
Screenshot_20250725193619.png
Matthew_Wai@My-PC:~$
|
|
|
|
07-29-2025, 07:08 AM
|
#40
|
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 26,460
|
Quote:
Originally Posted by Matthew Wai
Your command and mine output the same information in different formats.
|
And? Both are correct.
Otherwise yes, that command is just terrible, use: ls -1 ~/.l*/s*/T*/f*/
|
|
|
|
07-29-2025, 07:33 AM
|
#41
|
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,359
|
Quote:
Originally Posted by Matthew Wai
If "cd" had been added into the command, things would have been clearer.
|
Apparently not, since we're now on three full pages of this junk, where you've been **EXPLICITLY TOLD** to go into the Trash folder. Can't be more plain and simple. You claim to be a Linux user who's helping some random person...so if you know Linux, why couldn't you actually think about what "go into the Trash folder" means, and TELL THEM to use the "cd" command???
Quote:
|
"Recycle Bin" was output by Google Translate, which did not know that the OS was not Windows.The idea of using a wildcard character did not cross my mind until I saw "rm -fr *" in post #4.
|
Did you actually read/understand/pay attention to what's been told to you by many in this thread??? Should we type out each step, from you getting up in the morning until you turn on your computer, so we can then tell you what icon to click to get a terminal, so you can then be spoon-fed a command??? Would that be what you need???
Sorry, no...the sentence " "rm -fr *" should work fine within the Trash folder. Any folder beneath it will just get recreated when new files get deleted. " is 100% correct, clear, and not vague at all. You go into the Trash folder and type in exactly what's there....that's it. If you can't understand that and want to continue this nonsense about "within", there's no point in posting here at all for you, since we'll never be able to explain anything in a way you could understand.
|
|
|
|
07-29-2025, 01:11 PM
|
#42
|
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi, Debian, antiX, Ubuntu
Posts: 2,326
|
Quote:
Originally Posted by Matthew Wai
The meaning of "within" does not make "within" a command.
"cd" is necessary whatever "within" means.
|
Are you really this stupid? Just stop this nonsense. within a directory means in a directory. simple as that. If you keep arguing something thats been explained to you over and over it just makes people like me wish people like you didn't exist at all as you appear too stupid to be alive.
|
|
|
|
07-29-2025, 04:01 PM
|
#43
|
|
Senior Member
Registered: Jan 2008
Location: Baja Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 2,698
|
Quote:
Originally Posted by Matthew Wai
"Recycle Bin" was output by Google Translate, which did not know that the OS was not Windows.
|
Quote:
Originally Posted by Matthew Wai
I have not used Google Translate to translate the posts written in English.
|
I didn't say you did, but obviously, since you're trying to help someone on a Chinese forum, translation is being done by someone. We cannot tell what your level of English proficiency is. My Chinese proficiency is absolutely nil.
Last edited by sgosnell; 07-29-2025 at 04:07 PM.
|
|
|
|
07-29-2025, 09:57 PM
|
#44
|
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,473
|
Moderator Response
Let's rein in our comments, insults are out of bounds here at LQ.
It seems to me the question has been adequately answered a page or two ago, so unless someone has something new to add let's drop the debate about specific meaning of words in a multilingual discussion by proxy to a third party - what is the point in that?
@Matthew Wai: While all questions are generally welcome here at LQ, picking a question from a non-english forum and reposting it on LQ, apparently not having been asked to do so by the original person seems like a recipe for confusion and pointless discussion, as demonstrated by this thread. In future please ask in first person or with direct participation of the person needing help.
|
|
|
1 members found this post helpful.
|
07-31-2025, 06:20 AM
|
#45
|
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259
Original Poster
Rep: 
|
Thanks to all of you, including those who have insulted me and do not want me to stay alive!
The person who needs help has just posted a reply, saying that the problem was already solved.
It is worthwhile to swallow the insults.
|
|
|
|
All times are GMT -5. The time now is 06:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|