22nd February 2009
in
System, Uncategorized, cli
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[...]
Tags: memory, top
2 Comments
21st February 2009
in
cli
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
[...]
Tags: files
2 Comments
20th February 2009
in
System, cli
In Linux, you can clear the cache of the memory by using
sync; echo 3 > /proc/sys/vm/drop_caches
[...]
Tags: cache, memory
8 Comments
19th February 2009
in
System, cli
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 */
[...]
Tags: directories, files, ls
1 Comment