Quantcast
Channel: User Matthias Braun - Unix & Linux Stack Exchange
Browsing all 43 articles
Browse latest View live

Comment by Matthias Braun on Return owner of process given PID

See also this question on how to get the owner of a process in Linux.

View Article



Comment by Matthias Braun on LibreOffice.org: Create new file from the...

Inspired by this comment: file='new.odt'; touch "$file" && libreoffice "$file" &

View Article

Comment by Matthias Braun on Is there a user-level foolproof way to force...

Minor nitpick: I had to use fusermount -zu /mount/point, otherwise I got "fusermount: -z can only be used with -u".

View Article

Comment by Matthias Braun on Find used drivers for printer

See also this question: "Which driver (and PPD version) is my printer using?"

View Article

Comment by Matthias Braun on List files sorted by the number of lines they...

@廖茂生: See these answers for the meaning of the plus sign in -exec.

View Article


Comment by Matthias Braun on How to move (image) files to other directories...

Here's a solution for visitors looking to sort images and videos based on the creation date read from EXIF metadata.

View Article

Comment by Matthias Braun on Why would anyone not set 'histappend' in bash?

See also unix.stackexchange.com/questions/226214/…

View Article

Comment by Matthias Braun on Retrieving specific SSID's Name, Quality and...

@dangeroushobo: You're right, I misinterpreted iw's documentation. Here's an explanation on how it works: "However, this does not mean that it will also show only networks with the given SSID(s), it...

View Article


Comment by Matthias Braun on nmcli get actual name of interface (e.g. tun0)...

I think this can be done with nmcli -g GENERAL.IP-IFACE con show "your connection" as well. See also this bug report.

View Article


Comment by Matthias Braun on How can I have `date` output the time from a...

@MarkHudson: Yes, also date from GNU coreutils 9.3 on Arch Linux uses UTC when TZ is set to an invalid value. For example, TZ="Gobbledygook" date +"%z %Z" produces "+0000 Gobbledygook". My current time...

View Article

Comment by Matthias Braun on Jump from one XML tag to the closing one

This works nicely for replacing text only inside an HTML/SVG/XML tag: vat then :s/old/new/g

View Article

Comment by Matthias Braun on How can I enable UTF-8 support in the Linux...

Possibly related: stackoverflow.com/questions/12649896/…

View Article

Comment by Matthias Braun on Foreign characters won't display in SSH

Possibly related: stackoverflow.com/questions/12649896/…

View Article


Is mounting with "discard" needed for TRIM?

I was wondering whether mounting an SSD using the discard option (documented in man mount) is actually required for ATA TRIM to be sent to the SSD's controller.The evidence is a bit circumstantial:...

View Article

Answer by Matthias Braun for How do I get current keyboard layout?

When using Sway, the output of setxkbmap was always us, although I had a different layout active.I solved this usingswaymsg -t get_inputs | jq -r '.[] | select(.name=="AT Translated Set 2 keyboard") |...

View Article


Simple swaybar example

I'd like to have a simple, calm status bar for Sway which I use with Arch Linux.The configurations I found so far use a separate program like waybar or i3status. While they look great, I'd like to keep...

View Article

Answer by Matthias Braun for Pacman orphan packages

As a convenience, I have this in ~/.bash_aliases that lets me clean up orphaned packages easily:# Remove orphaned packages.# Needs single quotes, otherwise the newlines that "pacman -Qqdt" outputs#...

View Article


Not enough '\' characters in service

Gleaning from the Arch Linux Wiki entry, I have what I think is the minimal setup of accessing a Windows shared drive via SMB from my Arch Linux 4.20.6:sudo pacman -S sambasudo echo "logging = systemd"...

View Article

Answer by Matthias Braun for How can I create a shortcut to resize panes in a...

Below are my keybindings that let me resize a pane.It uses Alt+direction, where the keys for the directions are the same as in Vim:khlj# Resize the current pane using Alt + directionbind -n M-k...

View Article

Answer by Matthias Braun for smbclient alternative for large files

Using curlI'm running smbclient version 4.9.4 trying to transfer a 97 MiB file from Arch Linux to Windows. Following the recommendation of user bsd, I called smbclient...

View Article
Browsing all 43 articles
Browse latest View live




Latest Images