Skip to content

Magenaut

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

Unix & Linux

On an Apple Keyboard under Linux, how do I make the Function keys work without the fn modifier key?

August 9, 2022 by Magenaut

I use an Apple wired keyboard on Linux. By default the function keys (F1, F2, F3, etc) require the fn key to be pressed for them to work. Without the fn key, these keys control the features like Screen Brightness, Volume, and Music Track Control.

Categories Q&A, Unix & Linux Tags apple, keyboard, keyboard-layout, linux Leave a comment

How to delete old packages installed by pacman in Arch Linux?

August 9, 2022 by Magenaut

I have recently installed Arch Linux and found that I am eating away at a lot of storage relatively quickly. For whatever reason I have already used 17GB in just about 2 weeks. I do not have a great deal of software installed so I am led to believe that all of the old packages are maintained somewhere.

Categories Q&A, Unix & Linux Tags arch-linux, package-management, pacman Leave a comment

less command and syntax highlighting

August 9, 2022 by Magenaut

I need to use the less command with the syntax highlighting of the vim command for python, C, bash and other languages.

Categories Q&A, Unix & Linux Tags bash, less, syntax-highlighting, vi, vim Leave a comment

Cleanly swap all occurences of two strings using sed

August 9, 2022 by Magenaut

Suppose I have a file that contains multiple occurrences of both StringA and StringB. I want to replace all occurrences of StringA with StringB, and (simultaneously) all occurrences of StringB with StringA.

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

$_ vs !$. Last argument of the preceding command and output redirection

August 9, 2022 by Magenaut

The question is about special variables. Documentation says:

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

What is the “/usr/local/src” folder meant for?

August 9, 2022 by Magenaut

I wanted to put my work files (code) in /usr/local/src, but I think it’s already a folder that has some other semantic meaning.

Categories Q&A, Unix & Linux Tags fhs, ubuntu Leave a comment

How does /usr/bin/env know which program to use?

August 9, 2022 by Magenaut

When I use the shebang #!/usr/bin/env python to run a script, how does the system know which python to use? if I look for a python bin path in the environment variables I find nothing.

Categories Q&A, Unix & Linux Tags environment-variables, python Leave a comment

Does rsync verify files copied between two local drives?

August 9, 2022 by Magenaut

I want to make a fresh new copy of a large number of files from one local drive to another.

Categories Q&A, Unix & Linux Tags rsync, verification Leave a comment

Search and replace strings that are not substrings of other strings

August 9, 2022 by Magenaut

I have a list of replacements like so:

Categories Q&A, Unix & Linux Tags regular-expression, replace, sed, text-processing Leave a comment

Difference between SNAT and Masquerade

August 9, 2022 by Magenaut

I am confused what’s the actual difference between SNAT and Masquerade?

Categories Q&A, Unix & Linux Tags firewall, iptables Leave a comment
Older posts
Newer posts
← Previous Page1 … Page137 Page138 Page139 … 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