How to check your hard drive space in Ubuntu 12.04 shell

Type the following command from your shell prompt:

Output:
The device mounted on / is the root folder of your file system.

If you want to see the file system types as well:

Output:

How to check running tasks, CPU & RAM usage in Ubuntu 12.04

Check CPU Usage

Type “top” to see a multitude of information, constantly updated:

Output:

Hit the “1” key to see CPU usage by core:

And “q” to exit out:

To see a static list of the top 20 CPU-hogging tasks running on your system:

Output:

Or to list all tasks with both CPU & RAM usage:

For information about your CPU:

Output:

 

Check Memory (RAM) Usage

Type the following into your into your shell:

The output will look as follows:

In my case, I’ve got a total of 4GB of RAM and an 8GB swap file.

How to list users, add users, edit users and more in Ubuntu 12.04

To list all users you can use:

[Read more…]

Find files containing a text string in subfolders using ‘grep’ in Ubuntu 12.04

Go to the folder you want to search in using cd:

For a simple list of files containing the example string “tags”:

[Read more…]