We have already covered what loginctl is and its syntax. Now let's look at how to view session information. This task is accomplished with one simple command. It should not be difficult for you to view all active sessions. It allows you to view all active sessions at a given time. As you can see from the screenshot above, there are two active sessions. The first one is responsible for automatically logging into the GUI when Gnome is running, the second session is the console session in TTY3.
The loginctl program is part of the systemd set of utilities that allow you to manage your system. It allows you to manage current user sessions, view the list of active users, lock the screen or interrupt sessions altogether, and terminate user processes.
In the step-by-step instructions, let's understand how to put Java 8 and Java 11 on CentOS Stream and switch between versions.
In the last article we discussed the main differences between the two operating system architectures - x32 and x64. Despite the obvious advantages of each solution, there are still debates among users about which one to choose. Some prefer x64, others x32. Returning to the previous topic, it should be said that the choice depends on the amount of RAM.
OS bitness is required for the instruction set for the processor, these instructions will be used to work with the data and memory of the PC. There are two bit sizes - i386 (x32-bit) and x86_64 (x64-bit). x32-bit is obsolete and supports working with no more than 4 GB of RAM. x64-bit is more modern and is used everywhere. All processors support both architectures, but there are Linux distributions that no longer work together with x32-bit.
It is known that programs with graphical interface are more convenient to use, because they are designed for high requirements, plus the terminal allows you to solve certain tasks much faster. So there is a utility wc, it can count the number of lines in a file. The number of lines does not tell much, but in the case when several commands are combined, you can count the lines, taking into account the necessary parameters. How to count lines in a Linux file? Let's highlight a couple of simple but effective examples of using grep, sed and awk commands.
These networks are transmitted by packets. Packets pass through several other network nodes before reaching their destination to end up at the beginning of the destination's local network and then directly to the destination. It is not uncommon for such packets to go astray. In order to direct them to the right path in the network, each packet is given a certain lifetime.
You probably know about what journaling is. So, it is in file systems it is needed so that it is possible to recover the file system in case of a failure. This is especially useful in cases where data write operations were performed during the failure.
Every Windows user is familiar with the fact that there is a disk defragmentation. It is necessary for the hard disk to function quickly, and it is necessary to defragment the disk on which the OS is installed. The Ext4 file system in Linux is not prone to fragmentation. But in practice, it is known that some fragmentation accumulates in case of prolonged work on the system.