Custom .screenrc Configuration File

Screen may be the most useful Linux applications when it comes to getting things done through the terminal. This custom screenrc configuration file will provide you with a permanent caption line at the bottom of each window. This caption line will enable you to easily keep track of each terminal window and provide other helpful information . . . → Read More: Custom .screenrc Configuration File

A Simple Script To Get A Terminal Dictionary

First, make sure that you have the Lynx web browser:

sudo apt-get install lynx

Now, make the following script:

#!/bin/sh

lynx -dump “http://wordnet.princeton.edu/perl/webwn?s=$1″ | grep -B 1000 References | grep -A 1000 relations | less

Now you can define any word from the terminal. For example, suppose I want to know the definition of ‘psychoanalysis’, I can simply run:

./define psychoanalysis

and get . . . → Read More: A Simple Script To Get A Terminal Dictionary

How To Check Which Software Package Is Using More Space

If you’re running out of disk space and you want to quickly see what packages are using the most space on your hard drive, use the following command

dpkg-query –show –showformat=’${Package;-50}\t${Installed-Size}\n’ | sort -k 2 -n | grep -v deinstall | awk ‘{printf “%.3f MB \t %s\n”, $2/(1024), $1}’

That will sort the packages by size, putting the . . . → Read More: How To Check Which Software Package Is Using More Space

Using Terminal To Check The Size Of A Directory

You can also use a Terminal command to check the size of an individual directory. For instance, if you wanted to check the size of your Documents directory, you would use this command:

du -hs Documents

This will give you the combined size of your Documents folder, along with . . . → Read More: Using Terminal To Check The Size Of A Directory