Unpacking src.tar.gz to /usr

Problem
I copied src.tar.gz to /usr, and unpacked the src into all the /usr, the wrong place. src.tar.gz should be unpacked in /usr/src.

The Fix

Leave src.tar.gz in /usr and do this:

cd /usr && tar zft src.tar.gz|xargs rm && tar zft src.tar.gz|xargs rmdir   


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd> <div> <img> <h1> <h2> <h3> <h4> <h5>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options