nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Check how many CPUs are there in Linux system

Posted: 15 Oct 2018 11:49 AM PDT

I am a new Linux user. How do you check how many CPUs are there in Linux system using the command line option?

The post Check how many CPUs are there in Linux system appeared first on nixCraft.

CentOS 7 Run Script When Network Interface is Up (Network Manager)

Posted: 15 Oct 2018 12:21 AM PDT

I want to run a shell script or other program immediately after my network interface goes up on a CentOS 7 / RHEL 7 server. I created /sbin/ifup-local, but it is not working on a CentOS 7 box but works perfectly on CentOS 6. I am using NetworkManager with CentOS 7. How do I run ifup-post or ifup-pre scripts?

The post CentOS 7 Run Script When Network Interface is Up (Network Manager) appeared first on nixCraft.

Ubuntu -bash: do-release-upgrade: command not found

Posted: 14 Oct 2018 10:23 PM PDT

I am using Ubuntu Linux 16.04 LTS cloud server. I followed this page to upgrade Ubuntu 16.04 to 18.04 but, I am getting an error that read as ' -bash: do-release-upgrade: command not found.' Why am I not getting the Ubuntu 18.04 upgrade using do-release-upgrade and how do I fix this problem?

The post Ubuntu -bash: do-release-upgrade: command not found appeared first on nixCraft.