Linux Commands

So far, this page is simply for reference. I’ll probably grow this list as I get asked the “how do i?” questions more often.

Compress *.tar.gz
tar -zcvf archive-name.tar.gz directory-name
tar -zcvf archive-name.tar.gz *

Decompress *.tar.gz
tar -zxvf file.tar.gz
tar -zxvf file.tar.gz -C /tmp

Finding Disk Usage
Will give you your partition sizes and usages:
df

Will help narrow down which folders contain the most data:
du -hs * | sort -h

Add Comment Register



Leave a Reply

Your email address will not be published. Required fields are marked *

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>