LinuxQuestions.org
Weather apps tell you it'll rain. Wyndo tells you when to go.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Closed Thread
  Search this Thread
Old 07-28-2025, 10:14 AM   #31
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,359

Rep: Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379

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 View Post
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.
 
Old 07-28-2025, 03:50 PM   #32
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi, Debian, antiX, Ubuntu
Posts: 2,326

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
Quote:
Originally Posted by Matthew Wai View Post
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.
Old 07-28-2025, 08:51 PM   #33
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 2,698

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
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.
Old 07-28-2025, 11:19 PM   #34
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enigma9o7 View Post
What else would within mean?
The meaning of "within" does not make "within" a command.
"cd" is necessary whatever "within" means.
 
Old 07-28-2025, 11:39 PM   #35
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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 View Post
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.
 
Old 07-28-2025, 11:47 PM   #36
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgosnell View Post
Subtleties can get lost in translation.
I have not used Google Translate to translate the posts written in English.
 
Old 07-28-2025, 11:57 PM   #37
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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.
 
Old 07-29-2025, 02:53 AM   #38
Racho
Member
 
Registered: Oct 2021
Posts: 114

Rep: Reputation: 53
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?
 
Old 07-29-2025, 06:04 AM   #39
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Racho View Post
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 View Post
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 View Post
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:~$
 
Old 07-29-2025, 07:08 AM   #40
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 26,460

Rep: Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608Reputation: 8608
Quote:
Originally Posted by Matthew Wai View Post
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*/
 
Old 07-29-2025, 07:33 AM   #41
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 28,359

Rep: Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379Reputation: 8379
Quote:
Originally Posted by Matthew Wai View Post
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.
 
Old 07-29-2025, 01:11 PM   #42
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi, Debian, antiX, Ubuntu
Posts: 2,326

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
Quote:
Originally Posted by Matthew Wai View Post
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.
 
Old 07-29-2025, 04:01 PM   #43
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 2,698

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Quote:
Originally Posted by Matthew Wai View Post
"Recycle Bin" was output by Google Translate, which did not know that the OS was not Windows.
Quote:
Originally Posted by Matthew Wai View Post
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.
 
Old 07-29-2025, 09:57 PM   #44
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,473
Blog Entries: 24

Rep: Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439Reputation: 4439
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.
Old 07-31-2025, 06:20 AM   #45
Matthew Wai
Member
 
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 259

Original Poster
Rep: Reputation: Disabled
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.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trash is Full. Empty Trash before moving more files/folders to Trash. wdarledge Slackware 45 12-13-2017 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions