Web Design

Archive for February, 2009

What uses your resources?

By using top or htop you can find out what processes are using your resources and in what ammount. Another way to do this is by launching the following command: ps -eo pcpu,pid,user,args | sort -r -k1 | more This will ou[...]


How many files?

You can easily find out how many files are in the current directory by typing the following in your Terminal session: ls -l | wc -l [...]


Clear the memory cache in Linux

In Linux, you can clear the cache of the memory by using sync; echo 3 > /proc/sys/vm/drop_caches [...]


List only directories from the command line

If you’re in a Terminal session and would like to only list the directories of the current folder you’re in, do a ls -d */ [...]