GNU is Bloated!

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Core utilities work differently on other operating systems. For example, on Windows they don't work at all!

ilyamakarchuk
Автор

If your scripts don't run on Alpine Linux and OpenBSD don't talk to me or my son ever again

MHX_Neckbeard
Автор

I bet after the videos he just opens up his Ubuntu gnome setup

Andre-bigq
Автор

Looks like Luke is off his meds again.

rexevan
Автор

TIPS:
1. Most Linux distributions come with both GNU and POSIX manpages. When writing POSIX compliant scripts I always check POSIX manpages for all the supported options. `man 1 cmd` - GNU manpage; `man 1p cmd` - POSIX manpage.

2. POSIX way of doing sed -i:
$ create temporary file (mktemp is not in POSIX, POSIX ways of creating temp files is to use noclobber or mkdir -m 700 with randomly generated name)
$ sed '...' file > temp_file
$ mv temp_file file

3. I recommend creating that temporary file in the same folder - not in /tmp etc. Reason for this is that mkdir and mv (when both input and output paths are on the same filesystem) are the only atomic filesystem operations. If we create temp file in /tmp and then do `mv` it might do `rename` internally or it might become `cp + rm` combo - and cp is not atomic.
Example:
$ create temp_file
$ sed '...' file > temp_file
$ cp temp_file file
This way might leave you with damaged file if you stop cp in the middle of copying. mv (if and only if both input and output paths are on the same filesystem) turns into `rename` which is atomic and this guarantees us ACID - our file will never get corrupted, it will either get updated completely or not at all.

maxardis
Автор

269 videos?! Your channel is bloated my man

timh
Автор

Just switch to BSDs already, we all know that you're going to end up using one of them in the near future

tc
Автор

Sooner or later, you're going to end up reading the Unix Hater's Handbook.

oddbob
Автор

Video 1: Bash is bloated.
Video 2: Gnu is bloated.
Next video: Real life is bloated.

Booming-letsplays
Автор

I agree with 99% of this video - the 1% I disagree with? the "is bloated" part.

AlucardNoir
Автор

bash is bloated
GNU is bloated
next up: Linux is bloated

auxilus
Автор

I’d just like to interject for a moment. What you’re refering to as Linux, is in fact, GNU/LInux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called “Linux”, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project. There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine’s resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called “Linux” distributions are really distributions of GNU/Linux

CoordinateNewton
Автор

Luke:
*sed -i* does work in BSD. At least in OpenBSD. From its manual:
" *-i* [ _extension_ ]
Edit files in place, saving backups with the specified extension. If a zero length extension is given, no backup will be saved. It is not recommended to give a zero length extension when in place editing files, as it risks corruption or partial content in situations where disk space is exhausted, etc. In *-i* mode, the hold space, line numbers, and ranges are reset between files."

Maybe not exactly the same, but many times, the same in practice.

Plan 9 and Plan 9's utilities aren't POSIX-compliant. If something in it happens to be, it is rather by coincidence than by conscious effort. The cat-v crowd doesn't generally like POSIX.
And writing your scripts in, say, rc shell (Plan 9's) would make your scripts much less portable, as the users would have to install plan9port to use them.

One last thing: have you tried acme(1) more extensively as of late? It may be a bit of an acquired taste, but I seriously think you can like it a lot.

asdfzxcvman
Автор

I'd just like to interject for a moment. It is GNU plus Linux, Luke

ScaryHutmanPictures
Автор

I inherit all my prejudices from cat-v.

CygnusExOne
Автор

I will say, I am fond of many GNU coreutils innovations. The one kinda annoying thing is their tar, GNU tar is cool for personal archives, but often really annoying when you don't want some of the features. Sometimes you don't want your tarball to preserve your "immutable" or "append-only" extended attributes.

microcolonel
Автор

Luke:
GNU is bloated, be suckless my viewers
Also Luke:
Use systemd my viewers

MadsenAltamirano
Автор

Luke : use free software
Also Luke : GNU is bloated

😂😂😂

dhanarsantika
Автор

Why i feel like Luke is just realizing that minimal software and Unix philosophy are Memes, and he's gonna switch to Ubuntu with Gnome the next video

binbashchannel
Автор

In my experience with other Unix utilities (find, grep, see, awk). GNU utilities are much faster. if I'm using a Unix OS like Solaris, I prefer using the GNU utilities.

ahmadalwazzan