Posts

Showing posts with the label Server Fault

Basic Cat Command Examples in Linux

The cat (short for “concatenate“) command is one of the most frequently used command in Linux/Unix like operating systems. cat command allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files. In this article, we are going to find out handy use of cat commands with their examples in Linux. General Syntax cat [OPTION] [FILE]... 1. Display Contents of File In the below example, it will show contents of  /etc/passwd  file. # cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin narad:x:500:500::/home/narad:/bin/bash 2. View Contents of Multiple Files in terminal In below example, it will display contents of  test  and  test1  file in terminal. # cat test test1 Hello everybody Hi world, 3. Create a File with Cat Command We will create a file called  test2  file with below command. # cat >test2 Awaits input from ...

Auditing systemd : How To Solving Failed Units with Systemctl Centos 7

Image
Auditing systemd Solving failed units with systemctl Systemd is an alternative service manager to the more traditional init system. To ensure the system is healthy, failed units should be investigated on a regular basis. Sooner or later a unit might fail and showing up the systemctl listing. In this article we have a look at how to solve it. How To Solve solving failed units with systemctl Command to show : systemctl --failed Why do services fail? During the start of the system, enabled services are started and queued to be executed. Most processes will start correctly and systemd logs the related status in the journal. However, in some cases a service might enter a “failed state”, as a result of another command not finishing properly. [root@localhost ~]# systemctl systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION * auditd.service loaded failed failed Security Auditing Service * httpd.service load...