Fix ‘Bash Sudo: Command Not Found’ on Linux

The sudo command in Linux allows you to run commands as another user (it is most commonly used to run a command with elevated privileges as root). In some cases, when you try to run a command with sudo, an error message is displayed:

-bash: sudo: command not found

Continue reading “Fix ‘Bash Sudo: Command Not Found’ on Linux”

How to Mount Windows SMB Share on Linux with CIFS

In this article, we’ll look at how to mount a shared network folder hosted on a Windows computer in Linux. Windows uses the SMB (Server Message Block) protocol, formerly known as CIFS (Common Internet File System) to share and access shared folders over the network. On Linux, you can use the cifs-utils or Samba client to access Windows network shares via SMB protocol.

Continue reading “How to Mount Windows SMB Share on Linux with CIFS”

‘Failed to connect to bus: No such file or directory’ Error on Linux

The error ‘Could not connect to bus: No such file or directory‘ is quite common on Linux operating systems. This error can occur when managing the service through systemctl or when the computer is switched off.

Continue reading “‘Failed to connect to bus: No such file or directory’ Error on Linux”

Adding a New Disk Drive to a Linux Machine

In this article, we will look at how to attach an additional hard disk to an existing Linux machine: create a partition table, format, and mount the partition with fstab. An Ubuntu virtual machine running on a VMware ESXi host is used in this example.

Continue reading “Adding a New Disk Drive to a Linux Machine”

How to Use Netcat (nc) Command with Examples?

Netcat (or nc) is a classic Unix networking tool that allows you to make TCP and UDP connections, receive and send data, check open ports on a remote computer, test firewall rules, etc. In this article, we will look at some typical examples of using the netcat CLI tool.

Continue reading “How to Use Netcat (nc) Command with Examples?”