Linux – Find Out CPU Architecture Information

You can use /proc/cpuinfo file or use the lscpu command to get info about CPU architecture. It will display information like: Number of CPUs Threads Cores Sockets NUMA nodes Information about CPU caches, CPU family, model and stepping. Alternatively, it Continue reading Linux – Find Out CPU Architecture Information

Linux – Set your PATH Variable using set or export command

  The syntax for setting path under UNIX / Linux dependent on which shell you are using. BASH / SH shell uses following syntax: export PATH=$PATH:/path/to/dir1:/path/to/dir2 For tcsh or csh, shell enter: set PATH = ($PATH /path/to/dir1 /path/to/dir2) You can Continue reading Linux – Set your PATH Variable using set or export command

Ubuntu – Execute a PHP 5 Script From the Command Line

To execute a PHP script from the command line in Ubuntu you must have php5-cli installed. (CLI stands for “Command Line Interface”.) Once cli is installed, you can execute your script like so: Inside the script you can run other Continue reading Ubuntu – Execute a PHP 5 Script From the Command Line