this post was submitted on 16 Apr 2024
3 points (52.2% liked)

Linux

48220 readers
643 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

What is syacall/libc function df comannd call.

top 6 comments
sorted by: hot top controversial new old
[–] Atemu@lemmy.ml 21 points 7 months ago (2 children)

Why is this being downvoted? It's clearly labelled as Japanese; if you don't want to see foreign languages, filter them out.

[–] nmtake@lemm.ee 4 points 7 months ago (1 children)

One of the reasons is it makes moderation (including soft moderation by users like downvotes or reports) harder. Users not familiar with Japanese can't decide whether the post follows the rule and is on topic.

[–] astraeus@programming.dev 16 points 7 months ago* (last edited 7 months ago)

There are no rules against non-English posts. If you can’t understand it, don’t vote against it. That’s a discriminatory reaction, just keep scrolling if you don’t read Japanese. If the mods want to restrict languages, they have every ability to do so.

[–] someacnt_@lemmy.world 1 points 7 months ago (1 children)

Agreed, does it contain some malicious content?

[–] Atemu@lemmy.ml 2 points 7 months ago

Not that I can tell; just an explanation how df works on Linux and macOS.

[–] waspentalive@lemmy.one 5 points 7 months ago

You can check the CPU and memory statistics by looking at the files under /proc, but I was wondering how to get the file system capacity, so I looked at the df(1) code. . coreutils: df.c coreutils: fusage.c macOS: df.c Here is the code prepared to verify the operation of the library. Code to find out what df uses to output · GitHub For Linux On Linux, file system information can be obtained using statvfs(3). Although this is treated as a wrapper for the statfs(2) system call, it is basically recommended to use statvfs(3). (Via google translate)