Article Tags
Home Technical Articles Operation and Maintenance
How to view all currently logged in users in Linux system

How to view all currently logged in users in Linux system

Today we will briefly introduce several methods to list logged in users in a Linux system. In a multi-user Linux system, sometimes there is a need to query the users currently logged in to the system. For example, a user needs to be logged out for some reason. Today we will briefly introduce several methods to list logged in users in a Linux system. Among the methods we have introduced, almost all commands rely on data that exists in the /var or /proc directory. If you know anything about directory structure in Linux, you will know that these two directories contain data about the processes running on the system. 1. Use the w command to view the logged-in users in the Linux system. This is the simplest method. You only need to type a letter command to query the current username.

Feb 13, 2024 am 10:39 AM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
A Linux command artifact running on Windows-Cmder

A Linux command artifact running on Windows-Cmder

1. Introduction Many engineers are accustomed to using Linux to issue some commands, and it is simply unbearable to use Windows cmd again. To run Linux commands on Windows, the currently popular methods include: GunWin32, Cygwin, WSL (BashonWindows), GitBash, and PowerShell. WSL: Cygwin: GitBash: PowerShell or simply install a virtual machine and install ubuntu inside it. Today, I will introduce to the students a god-level command line tool for Windows - Cmder. 2. CmderCmder is a command line tool for Windows.

Feb 13, 2024 am 09:57 AM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
Backup is that simple: teach you how to use Linux rsync command easily

Backup is that simple: teach you how to use Linux rsync command easily

In daily use of modern computers, data backup is particularly important. For Linux users, the rsync command is a common method for backing up and synchronizing files. It enables fast and efficient data synchronization between different systems or local folders. Solution background: Data synchronization is required between server A and server B (either 1-to-1 or many-to-many, here is a simple 1-to-1 example). This solution is often used for remote disaster recovery. There are roughly two types of synchronization solutions based on application scenarios, scheduled synchronization and real-time synchronization. Scheduled synchronization has the characteristics of fixed synchronization time, poor real-time performance, and low resource consumption; real-time synchronization has the characteristics of strong real-time performance, intensive synchronization, and high resource consumption. 1. Scheduled synchronization 1. Install software: yuminstallr

Feb 13, 2024 am 09:33 AM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
Use Linux AWK commands to make data processing more efficient!

Use Linux AWK commands to make data processing more efficient!

In Linux systems, we often need to process and analyze data in various formats. At this time, a simple and powerful tool comes in handy - AWK. AWK is a text processing tool that can quickly process text files and is very suitable for various tasks such as log analysis, data extraction, and statistical reports. In this article, we will introduce you to the basic usage and common application scenarios of AWK, so that you can easily master this data processing tool. 0. Basic usage awk is a powerful text analysis tool. Simply put, awk reads the file line by line. (Space, tab) is the default delimiter to slice each line, and then perform various analyzes on the cut parts. The format of processing awk command is as follows awk[-Ffield

Feb 13, 2024 am 08:48 AM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
Xiaosi LINUX shares: Detailed guide to installing Debian and Debian 11

Xiaosi LINUX shares: Detailed guide to installing Debian and Debian 11

Hello everyone, I am, and in today’s sharing, I will give you a detailed introduction to how to install Debian and its latest version Debian11 on a Linux system. Debian is a popular Linux distribution known for its stability and strong community support. Famous, whether you're a beginner or an experienced Linux user, this guide will provide you with detailed steps and helpful tips, so let's get started! Install Debian: 1. Download the Debian image file. You need to download the image file suitable for your hardware architecture from the Debian official website. You can choose the ISO file that suits you and make sure to download the latest stable version. 2. Prepare the USB drive in order to start computing from the USB drive

Feb 12, 2024 pm 09:03 PM
bios设置
CentOS installation PBX and CentOS installation OpenSSH-Server

CentOS installation PBX and CentOS installation OpenSSH-Server

LINUX is an open source operating system with strong stability and flexibility. It is widely used in servers and embedded devices. CentOS is a free enterprise-level operating system built based on the RedHat Enterprise Linux (RHEL) source code. In this article, We will explore how to install PBX (PrivateBranchExchange) and OpenSSH-Server on CentOS. Install PBX on CentOS PBX is a telephone switching system used to manage telephone communications within a company or organization. Installing PBX on CentOS can provide powerful telephone functions, such as call transfer, voicemail, automatic answering, etc. the following

Feb 12, 2024 pm 09:00 PM
centos pbx
The most commonly used Linux commands: can solve more than 95% of problems

The most commonly used Linux commands: can solve more than 95% of problems

Operating System OverviewLinux Operating System InstallationLinux File SystemLinux Command OperationLinux Permission ManagementUser and User Group User Operation Command Permission OperationLinux Process ManagementLinux Other Common CommandsComplete Linux System Software InstallationCommon Software Installation Software InstallationCommon CommandsOperating System OverviewOperating SystemOperatingSystem OS, for short, is a piece of software in layman's terms, but unlike general software, an operating system is a computer program that manages and controls computer hardware and software resources. It is the most basic system software that runs directly on "bare metal". Any other Software must be supported by the operating system to run. Linux Operating System Installation About Linux Installation

Feb 12, 2024 pm 07:40 PM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
How to find a file in Linux

How to find a file in Linux

For newbies, using the command line in Linux can be very inconvenient. Without a graphical interface, it is difficult to browse between different folders and find the files you need. In this tutorial, I will show you how to find a specific file in Linux. The first step is to connect to your Linux via SSH. There are two ways to find files in Linux. One is to use the find command, and the other is to use the locate command. find command Use the Linux find command to search the directory tree using different search criteria such as name, type, owner, size, etc. The basic syntax is as follows: #findpathexpressionsearch-term The following is the basis for using the find command

Feb 12, 2024 pm 03:20 PM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
How to install and use HTTPie and HTTP Prompt on Linux

How to install and use HTTPie and HTTP Prompt on Linux

HTTPie is a command line HTTP client built for modern web APIs. It provides intuitive commands and user-friendly interface. In this guide, you'll learn about HTTPie's features and how it compares to cURL. You will also learn how to install and start using HTTPie on your Linux system. Before you begin, please create an account if you have not done so already. Follow our guide to setting up and securing a compute instance to update your system. You may also want to set the time zone, configure the hostname, create a limited user account, and enforce SSH access. Please note that the steps in this guide are written for non-root users. Commands that require elevated privileges are prefixed with sudo. If you are not familiar with sudo commands,

Feb 12, 2024 pm 03:03 PM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
NAS is at risk of being invaded and controlled. ASUSTOR urges users to update repair applications immediately

NAS is at risk of being invaded and controlled. ASUSTOR urges users to update repair applications immediately

According to news from this website on February 8, ASUSTOR, a network storage brand under ASUS (Note from this website: formerly known as "ASUSTOR"), recently issued a security announcement, urging users of its NAS and other devices to immediately upgrade the SurveillanceCenter monitoring center application to the latest version. , to prevent attackers from exploiting vulnerabilities in older versions of applications to gain control. ▲Asote AS3304Tv2NAS, picture source Asote official website According to the announcement on the Asote English official website, "SurveillanceCenter application is pushing an emergency update to deal with a serious vulnerability detected in the software. This vulnerability may allow attackers to escalate privileges and Gain control of the device to execute code on the ADM (operating system) to install malware

Feb 12, 2024 pm 02:42 PM
华硕 nas 爱速特 asustor
chroot command on Linux: How to run and test applications in an isolated space

chroot command on Linux: How to run and test applications in an isolated space

If you are a Linux enthusiast, you may often need to install or uninstall various applications or services on your system. But, did you know that every application or service depends on some shared object files provided by other software packages? If these object files are missing or damaged, your application or service may not work properly or even start. Therefore, knowing how to run and test applications or services in an isolated space is a very useful skill that can help you maintain and optimize your Linux system. This article will introduce a powerful command line tool called chroot, which allows you to create an independent environment on Linux and run and test applications or services in it. What

Feb 12, 2024 pm 12:12 PM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
How to SSH to a specific directory in a Linux server and execute commands?

How to SSH to a specific directory in a Linux server and execute commands?

Have you ever encountered such a scene? Use the SSH command to enter the server, then use the cd command to enter the corresponding directory, and then continue your work. This operation is particularly common for novices, and it was the same before. In this article, experienced drivers will lead you to perform more efficient operations and achieve the results you want in just one step. Moreover, not only can you quickly enter a specific directory on the Linux server, you can also execute a corresponding command when connecting to the server. Inefficient operation method If you don’t know the method introduced in this article, you are likely to operate it in two steps: Step 1: Use the SSH command to enter the remote server sshuser@remote-system Step 2: Use the cd command to enter

Feb 12, 2024 am 10:39 AM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门
CentOS PAM installation and CentOS how to install

CentOS PAM installation and CentOS how to install

LINUX is a powerful operating system that is widely used in various servers and embedded devices. CentOS is an open source operating system based on the Red Hat Enterprise Linux (RHEL) source code. Its stability and security make it an ideal choice for enterprise and individual users. The first choice, in CentOS, PAM (PluggableAuthenticationModules) is an important component, which provides a flexible authentication mechanism and access control functions. CentOSPAM Installation Installing PAM in CentOS is very simple, you can follow these steps: 1. Open a terminal or log in to your CentOS server via SSH

Feb 11, 2024 pm 10:30 PM
centos pam
Check the version of Linux system you are running

Check the version of Linux system you are running

For Linux systems, if you installed it yourself, you will know which distribution is installed and the version number. But if it is a remote Linux server connected using ssh, then its version is not so obvious, and you need to use some method to check it. Freeoperationgsystem.Theword "Linux" islinedwithgoldlettersonwoodenplanks.3DillustrationgraphicsThe simplest way is to check the file/etc/os-release, which records system-related information:cat/etc/os-releaseThe output is similar to

Feb 11, 2024 pm 08:50 PM
linux linux系统 linux命令 shell脚本 linux教程 嵌入式linux linux入门

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Hot Topics

Java Tutorial
1662
14
PHP Tutorial
1262
29
C# Tutorial
1236
24