Tag Archives: linux tutorials

How to create a hard links in Linux or Unix

How to create a hard links in Linux or Unix

I am a new Linux system user. How do I create a hard link in Linux / UNIX / Apple Mac OS X / BSD operating systems using the command line?

The post How to create a hard links in Linux or Unix appeared first on nixCraft.
Halal Vitamins

Powered by WPeMatico

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

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

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.

Halal Vitamins

Powered by WPeMatico

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

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

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.

Halal Vitamins

Powered by WPeMatico

Linux Find Out Which Process Is Listening Upon a Port

Linux Find Out Which Process Is Listening Upon a Port

How do I find out running processes were associated with each open port on Linux? How do I find out what process has open TCP port # 111 or UDP port 7000 under Linux using the CLI?

The post Linux Find Out Which Process Is Listening Upon a Port appeared first on nixCraft.
Halal Vitamins

Powered by WPeMatico

Ansible reboot Linux machine or server with playbooks

Ansible reboot Linux machine or server with playbooks

I need to reboot the VM or bare metal Linux machine/server using Ansible and wait for it to come back, but it does not work with playbook as descried here. How to reboot Linux server with Ansible? How do I reboot and wait for reboot to complete in Ansible playbook for multiple Linux servers?

The post Ansible reboot Linux machine or server with playbooks appeared first on nixCraft.

Halal Vitamins

Powered by WPeMatico

Check Debian/Ubuntu Linux package version using apt-get/aptitude command

Check Debian/Ubuntu Linux package version using apt-get/aptitude command

I am a new Debian / Ubuntu Linux sysadmin. I would like to find out what version I would install if I ran the apt-get command. How do I find out which versions of a package can I install using apt-cache/apt-get command? How do you check package version using apt-get/aptitude on Debian or Ubuntu Linux server?

The post Check Debian/Ubuntu Linux package version using apt-get/aptitude command appeared first on nixCraft.
Halal Vitamins

Powered by WPeMatico

Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ]

Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ]

How do I find out my SATA link speed? How do I make sure my sata hard disk is working at 6Gbps speed and how do I verify this on a Linux server running on HP or IBM amd64 hardware?

The post Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ] appeared first on nixCraft.
Halal Vitamins

Powered by WPeMatico