UNIX
   I think I've learned more here
   than I did at MIT.
        ∨
       ∧_∧
      ( ´_ゝ`)
  ̄\  /   / ̄ ̄ ̄ ̄ ̄/
  ̄ ̄| /   ./   UNIX  ./
  ̄| |(__ニつ/_____/_
 田| | \___))\
 ノ||| |       ⌒ ̄
 
Discussion of UNIX and technology. If you have not already, read the Rules.
if you can read this, you don't need glasses
Rules | World2ch Guide | Top

【1:21】 Text Editors

1 Name: Nameless : 2026/01/21 09:08

What text editor do you use and why?

12 Name: Nameless : 2026/02/09 13:50

I guess it's good that I haven't used it in a while then.

13 Name: Nameless : 2026/02/10 07:15

Shit ( ´,_ゝ`)

14 Name: Nameless : 2026/02/12 01:59

Vim because I can count on it being installed on a linux or at least vi and because I can use it without graphics over ssh or serial etc and because it's powerful
but honestly I don't use it very well

15 Name: Nameless : 2026/02/12 06:17

it has been a while since I've seen a system without nano
and for those that don't have it, they're typically missing so much shit I'd use that I would ideally not actually do any text editing on the system itself and would probably just be copying files to/from it

16 Name: Nameless : 2026/02/13 15:23

on windows -> npp
on linux -> vim or kate

17 Name: Nameless : 2026/02/19 21:16

Featherpad for simple things, neovim for everything else.

18 Name: Nameless : 2026/04/18 01:21

I'm testing to see if I can post from Emacs using `M-x eww`.

19 Name: Nameless : 2026/04/20 03:32

Neovim. Nothing better than it.

20 Name: j : 2026/04/24 04:39

sam or acme, or ms-notepad when i must

21 Name: Nameless : 2026/04/28 01:36

sakura when dealing with Japanese scripts
Name: E-Mail:
Leave these fields empty (spam trap):

【2:36】 Invasion of privacy in the name of "protection"

1 Name: Nameless : 2026/03/24 08:08

ITT we discuss the ongoing destruction of online liberty through government datamining efforts. Systemd, which is used by many linux distros, has already crumbled to the age verification laws (´・ω・`).

27 Name: Nameless : 2026/04/22 14:04

>>26
It's a shame, it was pretty useful

28 Name: Nameless : 2026/04/24 02:52

>>27
The owner's house got raided, Germany is worse than I thought. The owner was extra careful about following the law and was very explicit about following EU law.

29 Name: Nameless : 2026/04/24 11:27

I hate jews so much.

30 Name: Nameless : 2026/04/24 23:35

Another service I use for anonymouse email is disroot.org.

31 Name: Nameless : 2026/04/26 13:59

Hopefully disroot can stand longer, cock.li is always on the verge of getting taken down. Protonmail just looks like it's spyware, but I don't actually know the specs of how it is. Does anyone else know?

32 Name: Nameless : 2026/04/27 05:26

I would be slightly fucked if cock.li went down.

33 Name: Nameless : 2026/04/27 05:53

>>31
Protonmail will cooperate with the authorities when pressed, but if one of your emails can be traced to a crime, you've likely fucked up somewhere along the way and just getting banned will be the best case for any email. I don't get any invites to more private services, so i make single-purpose protonmail accounts with the knowledge, that anything i do with them might be used to build a profile.

34 Name: Nameless : 2026/04/27 17:14

>>32
same ( ´,_ゝ`)

35 Name: Nameless : 2026/04/27 20:08

>>32
pissmail was the only email service I used so I already am.. ( ´,_ゝ`)

36 Name: Nameless : 2026/04/28 01:35

>>33
But really are there any that haven't? Even cock.li has cooperated a few times, although I still consider proton worse in this regard. I don't know how disroot deals with it.
Name: E-Mail:
Leave these fields empty (spam trap):

【3:9】 Scripting for Fun

1 Name: Nameless : 2026/01/21 10:03

Using Elisp, calculate how many days it's been since world2ch.net went offline.

(defvar world2ch-offline-date "2026-01-18"
"Date that world2ch.net went offline.")

(defun today ()
"Return today's date as an ISO-8601 date string."
(format-time-string "%Y-%m-%d"))

(defun days-offline ()
"Print and return the number of days since world2ch.net went offline."
(interactive)
(let* ((math (format "<%s> - <%s> + 1"
(today)
world2ch-offline-date))
(answer (calc-eval math)))
(message answer)
answer))

(days-offline)

2 Name: Nameless : 2026/01/22 03:48

Using Elisp, determine the Chinese Zodiac sign for a given year.

(defvar cz-animals
'(rat
ox
tiger
rabbit
dragon
snake
horse
goat
monkey
rooster
dog
pig)
"These are the 12 animals of the Chinese Zodiac.")

(defun cz-animal (year)
"Return Chinese Zodiac animal for YEAR."
(let* ((offset (mod (- year 4) 12)))
Post too long. Click to view the whole post or the thread page.

3 Name: Nameless : 2026/02/04 17:03

>>1
No programmer.So my question may sound really stupid.
But where in the script is the full url inlucing https and etc. so Emacs know how and where to connect?

4 Name: Nameless : 2026/02/04 19:47

>>3
There's no need to make any network requests.
It's just doing date math using the calc-eval function.
If you ran it today, it would do this.

(calc-eval "<2026-02-04> - <2026-01-18> + 1")

5 Name: Nameless : 2026/02/06 04:03

Using bash, fill the screen with rainbow-colored blocks.
This uses tput to do the lifting instead of manually blasting control codes out.
You've seen the elegance of elisp, now get ready for the ugliness of bash.

#!/bin/bash
#usage: rainbow.sh [fillrate]
#fillrate defaults to 2 (higher is faster)
#tries to be resize-aware but isn't great at it lol
#the resize can happen at exactly the wrong time, filling the whole screen with one color

check_key() {
read -t 0.03125 -N 1 -r -s
}

all_done() {
tput setab 0
tput clear
exit 0
}

Post too long. Click to view the whole post or the thread page.

6 Name: Nameless : 2026/02/06 22:09

also yes, >>5 will absolutely spawn a ton of extremely short-lived processes nonstop lol
it is deeeeeeply inefficient and maybe I should rewrite it to blast out control codes manually

7 Name: Nameless : 2026/03/21 00:16

// Eternal Winter has returned, so I decided to back up its data in case it disappears again.
// Paste the following into your browser's dev conosole.

rows = Array.from(document.querySelectorAll('div.about + hr + table tr')).map((tr) => {
tds = tr.querySelectorAll('td');
if (tds.length) {
return {
name: tds[0].innerText,
url: tds[0].querySelector('a').href,
summary: tds[1].innerText,
category: tds[2].innerText,
added: tds[3].innerText
}
} else {
return {}
}
})
rows.shift()
copy(JSON.stringify(rows, ' ', 2))

Post too long. Click to view the whole post or the thread page.

8 Name: Nameless : 2026/03/21 00:16

9 Name: Nameless : 2026/04/15 19:39

>>8
The site is down again. Some data was backed up at:
https://files.catbox.moe/s5nxsh.json
Name: E-Mail:
Leave these fields empty (spam trap):

【4:1】 late.sh

1 Name: Nameless : 2026/04/15 19:24

https://late.sh/ - You ssh in to participate. I'm reminded of pre-internet BBSs.
Hitting ? will show you the keybindings.
Name: E-Mail:
Leave these fields empty (spam trap):

【5:47】 Operating Systems

1 Name: Nameless : 2025/06/11 22:32

So, what OS do you use? Do not reply if you use Windows, unless it's pre-xp.
I use slackware linux, and have tampered with NetBSD. I hate BSDs with a passion

38 Name: Nameless : 2026/03/30 04:13

Why would you use Ctrl+A and Ctrl+E for that when the home and end buttons are right there and do the same exact thing?

39 Name: Nameless : 2026/04/03 07:15

>>7
I agree. The Raspi peaked with the 3b+, because it still was intended as a little SBC for personal projects like electronics tinkering, servers of various kinds, and wasn't intended to be a desktop replacement. The moment they attempted to make them desktop replacements, they started to suck.

40 Name: Nameless : 2026/04/03 14:53

>>39
The current Pi price bumps are so bad that I cannot condone anyone getting a mainline Pi for anything. The worst offender is the 16GB Pi 5, which is bloody $300 now (what), bare board.
I also still maintain the value of the Pi Pico line. Most low level GPIO heavy things can be accomplished better on the Pico (and with no big-ass OS in the way, it should be much lower latency).

41 Name: Nameless : 2026/04/09 04:23

Arch, but highly considering making the switch to Artix after this systemd fuckery. I've had very few positive experiences with systemd even before the age verification.

42 Name: Nameless : 2026/04/09 12:48

Wonder if anyone is willing to make the switch to solaris

43 Name: Nameless : 2026/04/09 13:17

I've used Arch, Gentoo, and Fedora the most. Currently running Fedora on my home server and Ubuntu on my (dying) laptop.
For my next machine I was thinking about trying something different, probably Slackware or Guix.

as for my DE I spent the longest time on FVWM and now KDE

>>42
I'd rather avoid oracle if I can. I doubt they need me anyway

44 Name: Nameless : 2026/04/09 19:44

Sadly, I would imagine oracle is taking the side of the datamining laws.

45 Name: Nameless : 2026/04/09 20:04

>>43
>>44
Open Solaris aka illumos is still around.
>>30

46 Name: Nameless : 2026/04/13 17:48

as much as Sun was a good company (as far as corporations go) before they got bought out, it is good that we have left Solaris behind

maybe not entirely good (Solaris binary compatibility certainly is a lot nicer than Linux's, regardless of the Linux kernel's don't break userspace ideal)
but for all of the good design choices Sun made, they made a lot of bad ones, choices that Linux avoided

47 Name: Nameless : 2026/04/14 05:14

>>46
Solaris did a lot of things right, that Linux still struggles to replicate.

Mdb and dtrace remain unmatched as of 2026. eBPF development means it's likely dtrace may be implemented on top some time in the future, yet gdb, lldb and whatnot will likely stay subpar, let alone every distro i know stripping binaries by default.

ZFS integration into the kernel means read caching ("ARC") is more efficient and responsive. The entire boot environment/ZFS stack is a treat, compared to fstab and the occasional Linux bootloader woes.

I'm partial towards static device management, but the /devices - /dev split is certainly a lot nicer than what ended up as udev. All hardware devices in /dev are symlinks to /devices (a kernel "devfs"), which also contains things you might find in /sys on Linux. In addition to pci-utils it also has its own tools, that uniformly handle hotplugging and such for any device type.

I would also rank SMF above systemd, if i was pressed, since it centralizes configuration and editing XML with the provided tools is tolerable. The fact it's a coherently designed system makes administration more intuitive in general, despite some of the iffy parts.
Name: E-Mail:
Leave these fields empty (spam trap):

【6:5】 A New Language Called Strada

1 Name: Nameless : 2026/03/30 18:49

https://strada-lang.github.io/
It's like Perl 5 with types.

2 Name: Nameless : 2026/03/30 20:03

Time to make the first strada textboard software!

3 Name: Nameless : 2026/04/07 07:46

>compiles to native executables via C.
Wow, how lazy. I remember when making a programming language meant writing your own compiler.

4 Name: Nameless : 2026/04/10 08:46

What a ugly website.

5 Name: Nameless : 2026/04/10 18:02

>>4 yeah the site is horrible
yuck
Name: E-Mail:
Leave these fields empty (spam trap):

【7:18】 Useful Unix Utilities

1 Name: Nameless : 2026/01/14 21:27

What are some useful Unix utilities you've been using lately?

Something that's entered my toolbox in the last few months is `just`.
https://github.com/casey/just

They're kind of like Makefiles but simpler, because it's not trying to be a build utility. It just runs commands. After a few months of use, I have justfiles sprinkled all through my system to run various project-specific shell commands. It hits a sweet spot between one liners and dedicated scripts, and it has really enhanced various workflows for me. Things that I wouldn't have automated before (because it feels too small), I *do* automate now, because these justfiles feel like an appropriate place for those little tasks.

9 Name: Nameless : 2026/01/18 04:21

I feel like I should have a use for inotifywait, I just end up thinking of another solution before I get to it, and I don't do the task enough that it's worthwhile anyway to instantly operate on the contents of a directory...

10 Name: Nameless : 2026/01/19 05:20

I use ghq almost exclusively for cloning git repos.
https://github.com/x-motemen/ghq

I also use it to quickly change to the directory of a git repo with this zsh function.
https://miyagawa.co/blog/ghq-peco-percol

# peco for git repo navigation via CTRL+]
function peco-src () {
local selected_dir=$(ghq list --full-path | peco --query "$LBUFFER")
if [ -n "$selected_dir" ]; then
BUFFER="cd ${selected_dir}"
zle accept-line
fi
zle clear-screen
}
zle -N peco-src
bindkey '^]' peco-src

11 Name: Nameless : 2026/02/22 22:40

I've been using watch a lot lately.
All it does is run a command repeatedly, but it's nice for basic monitoring of sensors or a remote control program (eg, what song is playing).
example: watch -n 2 audtool current-song
will show me the current song being played in audacious right now, updating every 2 seconds


Also, one thing I do pretty regularly is less `which script`, where you'd replace script with the name of some script you wrote and I forgot what it's for/what arguments yo slapped together. ` is the backtick, and even if you should be using $(which script) instead, ` is easier to type lol.

12 Name: Nameless : 2026/02/23 07:41

>>6
I don't like detox. This is my filename canonicalization script:
sed 's/([0-9])''''/\1_inches/g
s/\#([0-9])/number_\1/g
s/\\[0-9][0-9][0-9]//g
s/%/_percent_/g
s/\+/_plus_/g
s/=/_equals_/g
s/\&/_and_/g
s/@/_at_/g' |
tr A-Z'\-([~)];.,' a-z_________ | tr -d '`''!?$' | tr -s ' ' _ |
sed 's/^_//
s/_$//'

13 Name: Nameless : 2026/02/24 16:09

>>11
I totally forgot about watch. I haven't needed it lately, but I like it too. As for which, I use it often in exactly the way you described. It's very useful.

14 Name: Nameless : 2026/03/17 00:49

I just found out about a neat trick.

diff <(lsusb) <(sleep 3; lsusb)

Run this command, plug in a USB device within 3 seconds, and you will get the information from the newly plugged in USB device. This would have been useful for me a lot of times in the past... ( ´ω`)

15 Name: Nameless : 2026/03/17 23:53

>>14
That's really clever.

16 Name: Nameless : 2026/03/18 17:19

>>14
You could also use

paste -d '\n' <(lsusb) <(sleep 3; lsusb) | uniq -u

which i think is semantically more fitting.

17 Name: Nameless : 2026/03/20 23:46

I habitually use the trash-cli tools because I hate dealing with footguns.
no more "oh I fucked everything up" with rm -rf /some/important/dir

instead, if I do trash-put /some/important/dir
and realize, oh shit, that was wrong
I can just trash-restore it

18 Name: Nameless : 2026/04/04 19:14

If you wrangle a lot of JSON, duckdb is an amazing powertool. I used to love jq for this purpose, but duckdb obsoleted it for me. Being able to treat JSON files as tables and writing SQL queries against them has been a game changer for me. It's so much faster to both write the queries and execute them in duckdb compared to piping and filtering with jq.
https://duckdb.org/
(It can read a lot of different formats including its own database format, but I'm mostly using it with JSON.)

I also use it together with ob-duckdb in Emacs which makes it even more amazing.
https://github.com/gggion/ob-duckdb/

Highly recommended.
Name: E-Mail:
Leave these fields empty (spam trap):

【8:6】 Secure Networking Retrofit

1 Name: Nameless : 2026/03/28 23:17

This probably exists already, but I am considering making software that lets you connect a classic OS such as Windows 95 or very early Linux with modern HTTPS or SSH by acting as a translation layer to convert the connection to HTTP or insecure Telnet.

I'm probably going to write this using Java 1.0.2, which allows for you to use it on the mass majority of 32-bit operating systems. Is there any reason not to do this beyond "the usecases are very limited?"

2 Name: Nameless : 2026/03/29 01:37

I'm sure it does exist as there are efforts to modernize old OSes, and this would be one of the things those efforts would have already tried to accomplish.
If not though, I'd say it's worth a shot.

3 Name: Nameless : 2026/03/29 17:26

are you trying to do what WebOne does?
https://github.com/atauenis/webone

4 Name: Nameless : 2026/03/29 23:16

Eh, that's like half of what I want to do. I also want to support SSH and raw TLS telnet sockets.

5 Name: Nameless : 2026/03/30 02:39

>>4
honestly, then go for it in that case

6 Name: Nameless : 2026/03/30 04:14

Alright, sounds like I'm gonna work on that. I'll let you know if anything comes of it. I'll also open source the implementations.
Name: E-Mail:
Leave these fields empty (spam trap):

【9:4】 UserScripts

1 Name: Nameless : 2026/03/03 23:21

If you still visit 4chan, I made this userscript to strip the tracking parameter off of JewTube videos. It could be improved, but it'll do for now.

https://pastebin.com/XjB7r4FQ

// ==UserScript==
// @name *chan Remove JewTube Tracker
// @namespace Violentmonkey Scripts
// @match https://boards.4chan.org/*/thread/*
// @icon https://s.4cdn.org/image/favicon.ico
// @grant none
// @version 1.0
// @author -
// @description Remove the `si` parameter from JewTube links
// ==/UserScript==

function removeTrackingParameter() {
const links = document.querySelectorAll("a.linkify.youtube")
links.forEach((a) => {
const url = new URL(a.href)
Post too long. Click to view the whole post or the thread page.

2 Name: Nameless : 2026/03/04 20:50

cool! thanks

3 Name: Nameless : 2026/03/16 06:24

Does this just do what invidious does?

4 Name: Nameless : 2026/03/17 23:54

>>3
I suppose if you had a userscript or extension that replaced youtube links with invidious links, you would achieve a similar result.
Name: E-Mail:
Leave these fields empty (spam trap):

【10:25】 w2ch OS

1 Name: Nameless : 2025/09/17 06:32

Since there's a dedicated browser in the works, why not make a dedicated OS too? Think about it.

16 Name: Nameless : 2025/09/21 05:30

17 Name: Nameless : 2025/09/22 20:46

>>8
If it's a web browser wrapper, it is junk.

18 Name: Nameless : 2025/09/23 08:49

>>17
I know it's crap, but I had time to waste that day.

19 Name: Nameless : 2025/09/26 22:57

Maybe it would be better to write an uploader so we don't have to give credit to gayuri

20 Name: Nameless : 2025/09/27 08:53

We don't do that anyway

21 Name: Nameless : 2025/09/28 10:59

it would be nice if the uploader worked properly lol, it breaks over https

22 Name: Nameless : 2025/09/28 15:24

>>21
Works for me over https

23 Name: Nameless : 2025/09/29 00:31

Works for me too

24 Name: Nameless : 2026/03/10 12:21

>>7
I mean in 16bit x86 assembly, probably yes.

25 Name: Nameless : 2026/03/10 23:11

Yeah I think we should make one from scratch (´ー`)
Name: E-Mail:
Leave these fields empty (spam trap):

New thread

Thread Title:
Name: E-Mail:
Leave these fields empty (spam trap):
Verification: