Category: Linux

Error “Cannot open access to console, the root account is locked” (SOLVED)

After a sudden power outage, unsuccessful update or adding a new disk to /etc/fstab, you may face the problem that your system does not boot, or rather, boots into the console or into a black screen. Sometimes the problem is compounded by the fact that the system administrator cannot even get into the emergency console. Let's see how to solve the...

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, and when the system stops...

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 addition, recoll relies on pre-indexing documents, which causes problems when working with removable media: the removable media...

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 tracking disk load in real time The top program allows...

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 phrase that everything in Linux is a...

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 implements a very convenient process search and filtering. In the top command, this is not...

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 of processes or threads currently served by the Linux kernel. You...

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: was the SSH password brute-forced (or the...

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 information about all users – otherwise, only the current user's schedule will be...

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 and all others), timestamps can also be of three different types (creation...
Loading...
X