Linux - Reddit – Telegram
Linux - Reddit
770 subscribers
4.19K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
dpScreenOCR is a program to recognize text on screen
https://danpla.github.io/dpscreenocr/

https://redd.it/c6610k
@r_linux
I JUST FATFINGERED A "rm -rf /"*.................

I `ctrl+C`ed it fairly fast and I don't see anything missing (wasn't sudo), but OMG am I dumb as bricks. I thought you had to do --no-preserve-root for that to work??

Goddamn!!

Edit: I hit it because I was going for the asterisk on the numpad, who has a `/` just one key to the left. RIP

https://redd.it/c6c5sy
@r_linux
PSA: The rm utility accepts flags AFTER the file path

For some reason, every example of `rm` I see posted on the internet puts flags first, e.g. the form `rm -r /path/to/dir`, yet the syntax `rm /path/to/dir -r` is just as valid (at least for the GNU Coreutils). I think the latter syntax should be preferred for most human users.

Putting dangerous flags such as `-r` and `-f` after the path has the following advantages:

* The flag won't be there if you slip your finger and accidentally press enter early; for example, if you want to type `rm /path/to/dir -r` but accidentally press enter after typing `rm /path/to`, the `-r` flag will not be present, preventing destructive damage;
* You get a chance to double-check the path you entered. If you type `rm -r /path/to/dir` you may be instinctively tempted to press the enter key as soon as you type the last character, whereas if you aim for `rm /path/to/dir -r`, you can take a calm moment to make sure the path you entered is correct before adding the destructive `-r` flag.

This post has been inspired by the recent [post](https://www.reddit.com/r/linux/comments/c6c5sy/i_just_fatfingered_a_rm_rf/) where somebody messed up their `rm` command once again. This isn't the first post of its kind, and the comments show that the OP is far from the only one who makes an `rm` mistake in their lifetime.

I personally think it should be considered a good practice to always put destructive flags like `-r` and `-f` last, and have gotten into this habit myself. I think it is kind of a pity that every example `rm` command people post online puts them first, which gives many the impression that the flags have to come first.

https://redd.it/c6dcbo
@r_linux
Hostapd performance factors for wifi access point

What was the highest bandwidth you coud achieve with hostapd on a wlan usb3 stick or integrated wifi (dual channel 5Ghz/2.4Ghz).

Are the performance factors here only the USB 3 bandwidth (which should be more than enough) and the routing done by the cpu?

​

I am trying to setup a home router on an atom Z8350 mini pc (ACEPC T8) with gigabit ethernet connected to my gigabit internet modem where the internet connection is shared by a hotspot setup using hostapd on the integrated wifi chip. I am currently seeing around 60 Mbits with Iperf3, I would be satisfied with 200 Mbits. Is there any other factors I should consider apart possible interference on used channels from neighboring wifis (I live in an apartment, I can see more than 10 SSIDs always) ?

Can you recomment a usb wifi adapter as I am trying to create multiple wlan access pointS?

https://redd.it/c6hxst
@r_linux
The cambrinary comming with multi-language explaination now!

Cambrinary is a terminal online dictionary based on cambridge web page.

It is used like this:

​

https://i.redd.it/8mbkfo9ko2731.png

And now it can be in english, french, german, japanese, chinese.

More languages, italian, russian, portuguese, indonesian, polish, korean... will comming soon.

[https://github.com/xueyuanl/cambrinary](https://github.com/xueyuanl/cambrinary)

It would be my pleasure if you enjoy it.

https://redd.it/c6iete
@r_linux
What happened to linux.pictures?

https://linux.pictures used to host such great images, now the site is down.

The only mirror I could find on GitHub is quite old. Anyone knows what happened?

https://redd.it/c6jom5
@r_linux