Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

Unix & Linux

What happens when I press “Shut Down” from the GUI?

August 11, 2022 by Magenaut

I have been banging my head against this for quite a while now. It’s related to this question. I would like to find out exactly what happens when I choose to shut down my Linux box from the GUI. This seems to be poorly (if at all) documented.

Categories Q&A, Unix & Linux Tags debian, gnome, gnome3, polkit, shutdown Leave a comment

How to match case insensitive patterns with ls?

August 11, 2022 by Magenaut

I would like to list all files matching a certain pattern while ignoring the case.

Categories Q&A, Unix & Linux Tags case-sensitivity, ls, shell, wildcards Leave a comment

^x^y unix trick for all instances in last command?

August 11, 2022 by Magenaut

One of my favorite Unix tricks is ^x^y, which will take the last command and replace the first instance of “x” with “y”. However, I’m wondering if a similar trick works to replace all instances of “x” with “y” in the last command?

Categories Q&A, Unix & Linux Tags bash, command-history, command-line, shell Leave a comment

Is there a command to see where a disk is mounted?

August 11, 2022 by Magenaut

Is there a simple command that takes a disk’s device node as input, and tells me where (and whether) that disk is mounted? Is it possible to get the mount point by itself, so I can pass it to another command?

Categories Q&A, Unix & Linux Tags mount Leave a comment

How to dump a man page?

August 11, 2022 by Magenaut

How can I ‘cat’ a man page like I would ‘cat’ a file to get just a dump of the contents?

Categories Q&A, Unix & Linux Tags man Leave a comment

How does a kernel mount the root partition?

August 11, 2022 by Magenaut

My question is with regards to booting a Linux system from a separate /boot partition. If most configuration files are located on a separate / partition, how does the kernel correctly mount it at boot time?

Categories Q&A, Unix & Linux Tags boot, kernel, linux, mount Leave a comment

move file by list in file (with leading whitespace)

August 11, 2022 by Magenaut

I have a file that contains file names. For example:

Categories Q&A, Unix & Linux Tags files, rename, shell-script Leave a comment

syntax_highlight | lpr

August 11, 2022 by Magenaut

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer?

Categories Q&A, Unix & Linux Tags command-line, highlighting, postscript, printing Leave a comment

How to enable killing Xorg with Ctrl+Alt+Backspace

August 11, 2022 by Magenaut

I don’t remember why they did this, but at one point X.org decided that disabling CtrlAltBackspace to kill it was a good idea. I know there’s a way to re-enable it but I don’t remember how. Can someone refresh my memory?

Categories Q&A, Unix & Linux Tags keyboard-shortcuts, settings, xorg Leave a comment

ACPI wakeup 4-letters code meaning?

August 11, 2022 by Magenaut

I have to disable some event to avoid an immediate wakeup after suspend in my desktop machine, and I made it by trial and error (works well, so that is not a problem). But I wonder… for example in my laptop I have a long list in /proc/acpi/wakeup:

Categories Q&A, Unix & Linux Tags acpi, linux-kernel Leave a comment
Older posts
Newer posts
← Previous Page1 … Page34 Page35 Page36 … Page371 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress