Tag: linux
-
How to find the user id – uid – for a user in Linux
This one is straight-forward for CentOS, Ubuntu and others distros: id -u [username] e.g. id -u bob That will give a numeric result like 500 or 1001.
-
How to find number of cores in Ubuntu (or other versions of Linux)?
If you’re using a virtual server (whether online or your own physical machine) it can be handy sometimes to check how many CPU cores are available; here are two easy methods of doing this. The first: nproc This will return a single number, whether it be 1, 2, 4 or otherwise. For…