Exclude Packages from apt-get upgrade

If you need to prevent a package from upgrading during ‘apt-get upgrade’, you need to put that package on hold: $ sudo apt-mark hold package_name When you run ‘apt-get upgrade’ with a package on hold, the output will look like this: $ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… […]

How To Find The Largest Top 10 Files and Directories On a Linux System

The du (i.e., disk usage) command reports the sizes of directory trees inclusive of all of their contents and the sizes of individual files: -h, –human-readable print sizes in human readable format (e.g., 1K 234M 2G) -s, –summarize display only a total for each argument -x, –one-file-system skip directories on different file systems The sort […]

Resize, Modify & Convert Images from the Linux Terminal

ImageMagick is a set of command-line utilities for modifying images. ImageMagick can perform modifications of an image from a terminal, perform batch processing of multiple images, or be used in a bash script. Converting Between Formats The following command takes a PNG file in the current directory and creates a JPEG file from it: convert […]