Skip to content

u/aioeu

In this archive from Jun 2018 to Dec 2026

0
posts
2k
comments
0
media
8.7k
score

Top comments

Yes, on some systems pathnames beginning with // can be interpreted specially. / is not necessarily the same as //.

POSIX says:

If a pathname begins with two successive <slash> characters, the first component following the leading <slash> characters may be interpreted in an implementation-defined manner, although more than two leading <slash> characters shall be treated as a single <slash> character.

Linux does not interpret the pathname any differently: on Linux, / is the same as //. However, Bash is designed to work correctly on systems that do treat them differently, so when you use cd // in Bash it will change the working directory to //, not /.

You can see vestiges of this special behaviour with the \\ used in UNC pathnames on Windows, and the // after the scheme in many kinds of URLs.

162 points

A whole bunch of people who have nothing to do with kernel development, nor have any intention of actually doing kernel development, are all up in arms about something to do with kernel development. The noise will die down eventually.

Since you've asked for specific details, the Linux kernel maintainer's "Code of Conflict" was recently replaced with a new "Code of Conduct", and some people feel that this change was wrong.

From my perspective, it's not going to change how I use Linux nor how I interact with its maintainers. If it fosters better communities, good. If not, we can always change it back.

144 points

There is a remarkable amount of code sharing within the kernel.

Adding support for a new wifi device could be as simple as adding an entry to a table somewhere. Even if the device requires some new code written for it, it's still likely to have most things in common with some other device that already has support. Any "quirks" for the new device are available for future device models too.

142 points

Short answer: vmlinuz and bzImage are the same thing. They've just got different names.

On most systems the kernel is compressed. It contains a small piece of code to decompress itself when it is loaded.

The uncompressed version of the kernel is often called vmlinux. This name is essentially a riff on various Unixes' kernels, which were often called vmunix. Before Unix had virtual memory support it was simply called... unix. (Actually, a variety of different names have been used by different Unixes. But unix and vmunix were certainly common choices.)

The compressed version of the Linux kernel is typically called vmlinuz. The z is because this used to use Zlib compression — the same compression algorithm used by gzip. Nowadays better compression algorithms (e.g. LZMA or Zstd) are typically used.

bzImage, on the other hand, is really a description of the file's format. It stands for "big compressed image". The "big" part of this indicates the kernel is too large to fit into conventional memory, below 640 KiB, and would instead need to be decompressed into high memory above 1 MiB. A non-big zImage would only be able to be used if your kernel was small.

You probably won't see a zImage file in much use anywhere nowadays. vmlinuz and bzImage are essentially interchangeable names for the same kind of file — if you run file on a vmlinuz file it will probably even identify it as a bzImage-formatted kernel. And you're only going to encounter a vmlinux file when you're debugging the kernel itself (since debuggers like GDB need an uncompressed image file to work off).

112 points

First, loginctl poweroff isn't a thing. But ignoring that...

Why are so many commands for some simple tasks like powering off the system?

You will actually find that shutdown, poweroff, reboot, halt, telinit, and so on, are all just symlinks to systemctl. This is because historically, before systemd was a thing, different Unix and Linux systems used a variety of different commands for these tasks. systemctl knows when it's being run through these symlinks and will act in the same way these commands used to work.

109 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.