Score:-4

getting the below error which is given in execute shell command

au flag

getting the error in Jenkins console output for the below execute shell command.

sudo -S rm -rf /home/sharmila/Trash-files/{*,.*}

I have created a folder by name "Trash files" and have added two dummy files in it. Objective is to delete the Trash files folder please help how to resolve error in Screenshot in Jenkins

Luuk avatar
cn flag
It is unclear what error you are getting, because the screenshot is missing. Also can you share a description of which files you are trying to delete?
Luuk avatar
cn flag
When this was working without error, probably all files in `/home/sharmila` would have been deleted (and in the subdirs of that directory)
sharmila pilla avatar
au flag
I have created a folder by name "Trash files" and have added two dummy files in it. Objective is to delete the Trash files folder
cc flag
"Trash files" is not the same as "Trash-files". If you insist on using spaces in names, you need quotes to preserve them.
Luuk avatar
cn flag
This question is answered already, see: [How do I remove a folder](https://askubuntu.com/questions/201775/how-do-i-remove-a-folder#:~:text=But%20in%20the%20sense%20of,f%20to%20erase%20a%20folder.&text=If%20you%20want%20to%20delete,the%20file%20or%20delete%20it).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.