Category: Linux

Do I need to restart the server after updating the Linux kernel (SOLVED)

Unlike Windows, in which a program must not be running to update this program, in Linux you can update running programs without any problems – this will not lead to any errors. In Linux, you can delete files in use (including executables) and while they are in use, they will be kept in the cache, (more…)

Full-text search in MS Word files and archives in Linux

Unlike Windows, where “Full-text search for documents in a folder” is possible, Linux “out of the box” does not support full-text search in office formats. This search and indexing of office documents can be implemented using recoll package, but it requires configuration. In (more…)

How to find out which process is causing high disk usage in Linux

Monitoring input and output operations

Excessive load on the disk can be caused by such a reason as a virus infection or incorrect program settings. In any case, you need to start by identifying the process (program) that most reads and writes to disk.

iotop – analog of top for (more…)

How to use lsof to view open files (on Linux everything is files)

If everything in Linux is a file, then there must be more to this operating system than just files on your hard drive. In this tutorial, you will learn how to use lsof to view all other devices and processes that are being treated as files.

Everything in Linux is files

The oft-quoted (more…)

htop command guide: how to view processes in Linux interactively

Is htop better or top?

The htop command is similar to top in function: they both display real-time information about processes, display system resource consumption, and allow you to search, stop, and manage processes.

Both commands have their own advantages. For example, the htop program (more…)

How to use the top command to monitor Linux processes

“top” program for showing Linux processes in real time

The top program shows the program and service processes running on Linux.

With top, you can see the dynamics of a running system in real time. The program displays a summary of the system information, as well as a list (more…)

How to check IP history for SSH sessions

How to list IP history of SSH sessions

If a Linux server has been hacked, it becomes necessary to collect information, for example, to get the time and IP addresses of the last SSH sessions. This can help not only identify the source of the danger, but also, for example, answer the question: (more…)

How to list all Cron tasks

Show all Cron jobs for all users

To display every item in the cron schedule for each user, use the following command:

for user in $(cut -f1 -d: /etc/passwd); do sudo crontab -u $user -l 2>/dev/null | grep -v '^#'; done

Elevated privileges are required to display (more…)

File attributes on Linux

File attributes on Linux file systems

Each file has a specific set of properties in the file system. For example, these are access permissions, owner, name, timestamps. In Linux, each file has quite a few properties, for example, access permissions are set three times (for the owner, group (more…)