Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7086489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:33:21+00:00 2026-05-28T07:33:21+00:00

The following script reverses an install script (removes everything the other script installed). The

  • 0

The following script reverses an install script (removes everything the other script installed). The script completes and does it task, but thereafter my terminal fails almost every command complaining that bash: /usr/bin/sudo: No such file or directory

I invoke the script as follows: bash -x remove-all.sh

Gives me a bugged terminal on both current Ubuntu and Suse
I don’t know enough about bash to know what causes this
Can you help?

Thanks, Yucca

Code:

#!/bin/bash
sudo umount -a -t vboxsf
sudo rm -rf ~/idea-IC-111.167
sudo rm -rf ~/Desktop/netbeans-7.1.desktop
sudo rm -rf ~/.netbeans
sudo rm -rf ~/.m2
sudo rm -rf ~/NetBeansProjects
sudo rm -rf ~/IdeaProjects
sudo rm -rf /usr/lib/maven
sudo rm -rf /usr/lib/jvm
sudo rm -rf /usr/bin/java
sudo rm -rf /usr/bin/mvn
sudo rm -rf /usr/bin/netbeans
sudo rm -rf /usr/bin idea.sh
echo 'done'

exit 0;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:33:21+00:00Added an answer on May 28, 2026 at 7:33 am
    sudo rm -rf /usr/bin idea.sh
    

    Aaaah! You’re removing /usr/bin recursively! Did you mean:

    sudo rm -f /usr/bin/idea.sh
    

    ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the following script does not embed image in the email. Instead it removes the
The following script works fine on Firefox, but fails on IE8 and I'm not
The following script will update the database, but it won't display the correct page
This following script almost does what I need. What I'm trying to do is
The following script gives me what I want but Perl also throws me a
The following script below is not running in IE7 but works perfectly fine in
The following script works on all browsers and devices, but since the release of
I have the following script that is working great, but I want to wrap
The following script portion read each line in $next . But when I try
The following script will delete files in a named directory that are older than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.