Home System Tutorial LINUX How to fix ps command showing UID instead of username

How to fix ps command showing UID instead of username

Jan 13, 2024 pm 04:45 PM
uid username ps command

How to fix ps command showing UID instead of username

How to fix ps command showing UID instead of username

How to fix ps command showing UID instead of username

When using the ps command, it is found that some users display the user name, and some users display the UID, such as the webmaster when the nmon program is running, but ps does not directly display uid 500

Found through man: Accounts with 8-digit usernames can display the complete username, and accounts with 9-digit usernames display UID

Use the following commands to solve;

ps -o ruser=userForLongName -e -o pid,ppid,c,stime,tty,time,cmd

Note: "userForLongName" is filled in casually, Linux will automatically check the length of this string, which is 15, then user names with less than 15 characters can be displayed normally

Now run the ps command result;

How to fix ps command showing UID instead of username

The above is the detailed content of How to fix ps command showing UID instead of username. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem that Windows 11 prompts you to enter the administrator username and password to continue? How to solve the problem that Windows 11 prompts you to enter the administrator username and password to continue? Apr 11, 2024 am 09:10 AM

When using Win11 system, sometimes you will encounter a prompt that requires you to enter the administrator username and password. This article will discuss how to deal with this situation. Method 1: 1. Click [Windows Logo], then press [Shift+Restart] to enter safe mode; or enter safe mode this way: click the Start menu and select Settings. Select "Update and Security"; select "Restart Now" in "Recovery"; after restarting and entering the options, select - Troubleshoot - Advanced Options - Startup Settings -&mdash

How to change your name on Instagram 14 days ago How to change your name on Instagram 14 days ago Apr 16, 2023 pm 02:40 PM

In the early days of social media, you could change your profile name multiple times, but now changing your name on any social media app comes with its own set of restrictions. If you've been wanting to change your display name or username on Instagram, the post below will explain how often you can change them, how to do it, and what you can do when you can't change your name on the platform . How to change display name and username on Instagram? Instagram offers two places for your name - your display name and your username, and luckily you can change both easily in the mobile app. The display name is what you would normally enter true

Fix: Issues with Oobekeyboard Ooberegion Oobelocal oobe settings issues on Windows 11/10 Fix: Issues with Oobekeyboard Ooberegion Oobelocal oobe settings issues on Windows 11/10 Apr 17, 2023 am 09:01 AM

OOBE or out-of-box experience is a process designed for users to guide them through the various stages of post-installation steps. This includes rights and agreement pages, login pages, WiFi or network connection options, etc. If you receive any OOBEKeyboard, OOBELOCAL, or OOBEREGION issues, you will not be able to proceed to the final installation steps. Don't worry. There are some simple fixes you can use to resolve this issue. Workarounds - Before you do anything else, try these normal solutions - 1. When you get an error prompt, go ahead and click on the "Try Again" prompt. Keep trying at least 7 to 8 more times. 2. Check network connectivity. If you are using an Ethernet connection or Wi-Fi

Where can I check the uid of Tomato Novel? Where can I check the uid of Tomato Novel? Feb 28, 2024 pm 04:25 PM

When using the Tomato Novel software, log in to your account so that you can enjoy more personalized services and convenience. After logging in to your account, you can also view your UID (Unique User Identifier), which is very important information. Sometimes this uid is very important, so where can you view your UID in Tomato Novels? Users who want to know, please follow this article to learn more about the viewing steps! Where to check the answer of Tomato Novel uid: [Tomato Novel] - [My] - [Feedback and Help] - [Feedback] - [Click 5 times]. Specific steps: 1. First open the Tomato Novel software. After entering the home page, we need to click [My] in the lower right corner; 2. Then in the My page, we slide to the page

How to get your Steam ID in a few steps? How to get your Steam ID in a few steps? May 08, 2023 pm 11:43 PM

Nowadays, many Windows users who love games have entered the Steam client and can search, download and play any good games. However, many users' profiles may have the exact same name, making it difficult to find a profile or even link a Steam profile to other third-party accounts or join Steam forums to share content. The profile is assigned a unique 17-digit id, which remains the same and cannot be changed by the user at any time, whereas the username or custom URL can. Regardless, some users don't know their Steamid, and it's important to know this. If you don't know how to find your account's Steamid, don't panic. In this article

How to fill in the user name of Railway 12306 How to fill in the user name of Railway 12306 Feb 23, 2024 pm 04:07 PM

How to fill in the user name of Railway 12306? You can fill in the user name in Railway 12306 APP, but most friends don’t know how to fill in the user name of Railway 12306. Next is the graphic tutorial on how to fill in the user name of Railway 12306 brought by the editor. , interested users come and take a look! Railway 12306 usage tutorial How to fill in the Railway 12306 username 1. First open the Railway 12306 APP and click [Register] at the bottom of the main page; 2. Then on the registration function page, enter the user name, password, confirmation password, etc.; 3. Finally enter Once completed, you can fill in the user registration.

What is the wifi username? What is the wifi username? Mar 21, 2023 am 11:32 AM

The wifi username refers to the administrative username of the wireless router. This username, the IP address of the router, and the default administrative password are usually printed on the bottom of the wireless router and can also be found in the manual of the wireless router; the default administrative user of most routers The name is both admin, and the management password is also admin.

How to change username in Google Chrome How to change username in Google Chrome Apr 07, 2024 pm 02:40 PM

How to change username in Google Chrome? Nowadays, more and more people like to use Google Chrome. This browser can provide users with rich functions and services. Users can experience all the functions after logging in to their account. Many users just pick one when creating an account. Nickname, I believe everyone wants to know how to change the username later. This article will introduce to you the steps to quickly change your username on Google Chrome. You may wish to take a look and learn more. Introduction to the steps to quickly change the username in Google Chrome 1. In the first step, after we open Google Chrome, open the three vertical dot icons in the upper right corner of the page (as shown in the picture). 2. In the second step, after opening the three vertical dots icon, we click to open the "Settings" option in the menu list (as shown in the figure)

See all articles