Posts

Showing posts from October, 2022

Command for services in linux machine

  How to List Services in Linux Let’s look at a potential scenario. While running your Linux system, you can no longer access localhost. Chances are that the HTTP service was disabled, and causing the problem. To troubleshoot issues like this one and many others, it’s good to know how to list all services in Linux. Fortunately, CentOS and Ubuntu – two of the most popular operating systems in their areas – share systemd. That means that the commands we are going to present are compatible with both systems. First, we have to connect to our server using SSH. If you’re having trouble, check out our  PuTTY tutorial . Once inside, we need to be the root user to list service in Linux. su Now we can list all services in Linux. To do it, run the command: sudo systemctl list-unit-files --type service --all When the command is run, we will see all the services that are on the system. However, we will also see that some have a defined status. Let’s learn what all these mean. Enabled ...

Essential Linux Commands That Every User Should Know

What Is a Linux Command? A Linux command is a program or utility that runs on the CLI – a console that interacts with the system via texts and processes. It’s similar to the Command Prompt application in Windows. Linux commands are executed on Terminal by pressing  Enter  at the end of the line. You can run commands to perform various tasks, from package installation to user management and file manipulation. Here’s what a Linux command’s general syntax looks like: CommandName [option(s)] [parameter(s)] A command may contain an option or a parameter. In some cases, it can still run without them. These are the three most common parts of a command: CommandName  is the rule that you want to perform. Option  or  flag  modifies a command’s operation. To invoke it, use hyphens ( – ) or double hyphens ( — ). Parameter  or  argument  specifies any necessary information for the command. Keep in mind that all Linux commands are case-sensitive. The 40 Mo...