1167
Touch a file in Linux (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] null@slrpnk.net 40 points 6 months ago

Is there a command that's actually just for creating a new file?

[-] tranzystorek_io@beehaw.org 6 points 6 months ago

most shells will accept outputting from a silent command to a file, e.g. :> foo.txt (where : is the posix synonym to the true command)

load more comments (17 replies)
this post was submitted on 17 Mar 2024
1167 points (97.5% liked)

Programmer Humor

19208 readers
615 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS