Skip to content

u/luchs

In this archive from Sep 2015 to Jul 2021

0
posts
39
comments
0
media
126
score

Top comments

No. You don't have ns installed, but zsh knows completions for the ns command. Shell tab completions are generally completely disconnected from the actual commands. Have a look in /usr/share/zsh/functions/Completion: you'll find lots of completion scripts for programs you don't have.

In particular, the completion you see is provided by /usr/share/zsh/functions/Completion/Unix/_hosts. I think zsh usually prints a message if the command you're trying to complete doesn't exist, but that script provides completions for multiple commands and thus this check doesn't work.

For ZSH, you can look up builtins in man zshbuiltins.

33 points

TRIM is only useful on SSDs and has nothing to do with fragmentation. The issue is that flash memory cannot be overwritten and has to be completely deleted first. Additionally, the "deletion blocks" are larger than the usual write/read blocks, so the SSD may have to copy and write multiple blocks even if you're just changing small parts of a file.

TRIM helps by signalling unused non-empty blocks to the SSD. The SSD deletes these blocks and can then immediately write new data there.

10 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.