Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The system prompts No space left on device what to do when Linux uses the tail command

Shulou Source: shulou.com Published: 2022-06-02 05:18:59 11月15日 Update

This article mainly introduces "Linux uses the tail command when the system prompts No space left on device how to do", in the daily operation, I believe that many people in the Linux use tail command system prompt No space left on device how to do have doubts, Xiaobian consulted all kinds of information, sort out a simple and easy-to-use method of operation, hope to answer everyone's "Linux using the tail command when the system prompts No space left on device how to do" the doubt is helpful! Next, please follow the editor to study!

In the Linux system, sometimes we use the tail command, which can output the last part of the specified file to the standard device according to the request, that is to say, we can see the latest file content at any time in the terminal, which is very helpful to our use. However, recently, when using the tail command, some users found that the system prompted No space left on device

$tail-f / logs/test.outtail: cannot watch `/ logs/test.out': No space left on device

How to solve the problem of Tail command prompt No space left on device in Linux system?

Check to see if there is any space left

$df-h

There is also room left to check the inode.

$df-I

If it's not a space problem, edit sysctl.conf.

$vim / etc/sysctl.conf

Add the following:

Fs.inotify.max_user_watches = 32768

Execute the following command to take effect configuration:

$# sysctl-p / etc/sysctl.conf

Test again:

$tail / logs/test.out

Normal output, successful.

At this point, the study of "what to do when the system prompts No space left on device when Linux uses the tail command" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Commands systems prompts what to do learning space problems help more surplus output utility success and then that is content again files articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB Linux Shulou Technology macOS