Reddit

Subscribe to Reddit feed
All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU operating system.Linux, GNU/Linux, free software...
Updated: 16 min 39 sec ago

Renewed my crufty groff/-me/-mm quick references

Tue, 2018-06-19 04:15

So maybe I'm the only one still doing groff/-me/-mm but I had some doco to work on and I thought I'd bring my quick references up to date.

groff-quick-refs

submitted by /u/bhepple
[link] [comments]

[Question] Search and rename files with regex

Tue, 2018-06-19 01:17

I apologize if this isnt the best sub to ask. Im trying to search and replace multiple filenames in a directory. I have this bash function in my .zshrc and after sourcing it, it doesnt work as expected.

```shell

Rename_files Search and replace filesnames in directory using regex Usage: rename /my/folder/* (0[1-9]|1[0-2](0[1-9]|1[0-9]|2[0-9]|3[0-1])(2018)\s(\w+))(.\w+$) (0[1-9]|1[0-2](0[1-9]|1[0-9]|2[0-9]|3[0-1])(18)\s(\w+))(.\w+$)

rename_files() { for myfile in {$1}; do target=$(echo $myfile|sed -e 's/{$2}/{$3}/g') mv "$myfile" "$target" done } ```

```bash

rename_files . "(0[1-9]|1[0-2](0[1-9]|1[0-9]|2[0-9]|3[0-1])(2018)\s(\w+))(.\w+$)" "(0[1-9]|1[0-2](0[1-9]|1[0-9]|2[0-9]|3[0-1])(18)\s(\w+))(.\w+$)" mv: rename {.} to {.}: No such file or directory
```

Essentially, In the current directory (.), I want to rename multiple files from 05042018 filename.py to 050418 filename.py

Can someone tell whats wrong with the function?
Thanks

submitted by /u/Bulbasaur2015
[link] [comments]

[Opinion] KDE is very under-appreciated

Mon, 2018-06-18 20:54

After using GNOME on Ubuntu for quite some time, I recently switched to Manjaro KDE. I have to say that KDE is so much more stable and configurable than GNOME. I don't understand why Ubuntu uses GNOME in their "stable" long term support release, when it still has a serious memory leak problem and randomly crashes so much.

XFCE and i3 are cool too, I just don't use them because they have poor HiDPI support, and I'd rather have my WM "just work".

submitted by /u/warner_bros_515
[link] [comments]

With kernel 4.17.2, battery life on Linux is finally comparable to Windows 10!

Mon, 2018-06-18 17:03

I updated my KDE Neon laptop (Dell XPS 15 9550) which was on kernel 4.13 to 4.17.2. I did hear about the upcoming power saving improvements, but I am still amazed that now my laptop delivers a similar battery life with Linux and Windows. On kernel 4.13 the minimum power consumption on idle was about 4.05 W and now I am getting 3.5 W, more than 10% improvement! I am still amazed as how software improvements can make a huge difference on power consumption. Thank you Linux developers!

submitted by /u/WillIDieTomorrow
[link] [comments]

Redirect all incoming and outgoing traffic from a port to a specific ip

Mon, 2018-06-18 15:15

I am running a node server inside a docker container on port 8080 and i can access it via 172.17.0.2:8080 (container ip) now i want to access this ip from localhost:9099.

I have tried using iptables to redirect this traffic coming at localhost:9099 to 172.17.0.2:8080 but all measures are in vain.

This is the command i was using. Please correct me where i am going wrong. Thanks in advance.

sudo iptables -t nat -A PREROUTING -p tcp --dport 9099 -j DNAT --to-destination 172.17.0.2:8080

I referred to this (https://stackoverflow.com/questions/19897743/exposing-a-port-on-a-live-docker-container) ans but didn't work out.

submitted by /u/satnam_sandhu
[link] [comments]

DD-CLI-HELPER and VBOXMANAGE-CLI-HELPER

Mon, 2018-06-18 15:08

Hey everyone. I'm a noob to bash scripting, but I made a bash front end for helping use DD to clone disks, restore images, and backup disks.

https://gitlab.com/tj_v_debs/dd-helper

I also made a virtualbox cli helper for cloning disks, converting them to a different format, and creating the raw vmdk file for physical disk access.

https://gitlab.com/tj_v_debs/Vboxmanage-cli-helper

Check em out and tell me what yall think and how I could improve. Trying to figure out how to implement a file browser without having to make one myself lol.

submitted by /u/TJ5897
[link] [comments]

Where to start with learning security with Linux?

Mon, 2018-06-18 13:27

I've looked through some of the stuff here and googled a bit, but there's a lot of info out there.

I'm brand new to security. I'm getting an old Thinkpad to learn more about security and how to make a crack-resistant system. I want to know where I should start? What books should I read as a beginner?

A bit of background about myself: I'm a teacher in China, and I do some web development on the side. I want to expand my knowledge into security, and I want to go deeper than the basics.

submitted by /u/torgian
[link] [comments]

HP Omen and Linux.

Mon, 2018-06-18 13:04

Tell me budies is this possible at all? My Inspiron 7537 runs it flawlessly with all devices supoorted and recognised (Nvidia, touch screen, all devices on motherboard, etc). Can I run Linux on HP Omen with same success?

submitted by /u/LeGauchiste
[link] [comments]

How often should I run apt-get update and upgrade

Mon, 2018-06-18 11:40

Is it necessary to run them regularly, or only under certain situations?

Thanks in advance!

submitted by /u/Acurapassion
[link] [comments]

Odd result from the command time.

Mon, 2018-06-18 09:36

I have a machine that I access through SSH. When I time any command on it I always have a user time of 0. Is it normal ?

Example :

time ls -lR real 0m0.050s user 0m0.000s sys 0m0.040s submitted by /u/blaoi
[link] [comments]

Pages