Vim Essentials: Tips and Tricks for Boosting Productivity

Do you spend a lot of time working in a command-line environment, editing and managing files using text editors? If so, then you know that having a good command over these tools can significantly increase your productivity and add value to your work. That’s where Vim comes in. If you’re new to Vim or just looking to brush up your skills, then come take a dive with me as we explore how Vim can benefit you and make your work more productive and enjoyable.

The Benefits of a Career in Technical Support

Technical support job may not be the first choice that comes to mind when anyone considers getting into the tech industry, but it is a great career option. Here we are making a case for technical support jobs and why it is the perfect entry to the tech industry. If you are interested in starting your career in tech, you’re at the right place.

Using rsyslog with CLI ​

Refer to understanding linux logging for understaning more about syslogs and linux logging

Here we discuss about using rsyslog wih cli, and how it can be used to log messages through CLI and also send priority messages

Log Messages

We can run the command logger to log messages from command line

[root@midas rsyslog.d]# logger "hello this is the message"
[root@midas rsyslog.d]# cat /var/log/messages | grep hello
Sep 29 19:36:38 midas /usr/libexec/gdm-wayland-session[2503]: hello,, this is secured , please dont use if you dont have unauthorized access
Oct  1 21:50:36 midas root[4555]: hello this is the message
[root@midas rsyslog.d]#

Sending rsyslog messages with priority

Priority is a critical part of logging, we need to set the priority of the message basis its severity.

Emergency Priority

Messages with emergency priority are configured such as they get rerouted to console, terminals, and ssh sessions. rsyslog allows such messages to be sent through cli which allows them to be immediately viewed by the other uses.

Run the following command from any terminal

[root@midas rsyslog.d]# logger -p emerg "this is the emergency message"

You will get following message on all the terminals

[centos@midas ~]$
Broadcast message from systemd-journald@midas (Sat 2022-10-01 21:55:43 IST):

root[4607]: this is the emergency message

Message from syslogd@midas at Oct  1 21:55:43 ...
 root[4607]:this is the emergency message

Understanding Linux Logging

Linux operating system is a popular choice for servers, logging of operating system, application, and base system events becomes crucial when hosting large commercial applications, Linux provides, multiple logging options, to help administrators and application support teams to record and track important events and assess the performance of he system and overall setup. here we will try to understand key logging features as made available by Linux OS

Default Network Ports for Common Services

Today all computers are interconnected and have to communicate with each other over a network. before passing this information these systems first establish a connection each end of which is a socket, A port is a logical address that is assigned to a specific service on the computer, and along with the IP address, it creates this socket, In this article, we understand more about ports and the common default or well-known ports used by services.