Skip to content

Magenaut

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

Unix & Linux

How can I create an alias for a git [action] command (which includes spaces)?

August 9, 2022 by Magenaut

Most of my my aliases are of this form: alias p='pwd'

Categories Q&A, Unix & Linux Tags alias, bash, git, shell, terminal Leave a comment

How to use ssh-agent with multiple (valid) keys and yet choose which one to use?

August 9, 2022 by Magenaut

Let’s say there are two keys A and B, both of which are valid for [email protected] public key authentication. Since authorized_keys is configured for different behaviour depending on the key, ~/.ssh/config on the client uses something like

Categories Q&A, Unix & Linux Tags ssh, ssh-agent Leave a comment

How to view and edit the code of a PDF file

August 9, 2022 by Magenaut

I was wondering how to view and edit the code of a PDF file?

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

How to use ifconfig to show active interface only

August 9, 2022 by Magenaut

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below.

Categories Q&A, Unix & Linux Tags command-line, interface, networking, osx Leave a comment

How is /etc/fstab accessed before root is mounted?

August 9, 2022 by Magenaut

I was making some changes to /etc/fstab, when this chicken and egg question occurred to me – if /etc/fstab contains the instructions for mounting the file systems, including the root partition, then how does the OS read that file in the first place?

Categories Q&A, Unix & Linux Tags boot, fstab, mount, root-filesystem, startup Leave a comment

Trap, ERR, and echoing the error line

August 9, 2022 by Magenaut

I’m trying to create some error reporting using a Trap to call a function on all errors:

Categories Q&A, Unix & Linux Tags bash, error-handling, shell-script, trap Leave a comment

Record every keystroke and store in a file

August 9, 2022 by Magenaut

I need to record every keystroke and store in a file in the user directory ~, when using my account, I am not sudoer and I cannot install programs (like logKeys) in any way. How could I do so using terminal?

Categories Q&A, Unix & Linux Tags input, keyboard, logs, x11 Leave a comment

How can I tell cron to run a command every other day (odd/even)

August 9, 2022 by Magenaut

When configuring cron to run a command every other day using the “Day of Month” field, like so:

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

Running GUI application as another (non-root) user

August 9, 2022 by Magenaut

Let’s say I have 2 user accounts user1 and user2. When I login as user1, and then switch to user2 using su, I can execute command-line programs, but GUI programs fail.

Categories Q&A, Unix & Linux Tags shell, su, x11, xorg Leave a comment

Display Spinner while waiting for some process to finish

August 9, 2022 by Magenaut

How can I show spinner till command line finish it is job? In other words, If I am running a script and I want to show spinner while this script is running and the spinner disappears when the script finish it is job.

Categories Q&A, Unix & Linux Tags bash Leave a comment
Older posts
Newer posts
← Previous Page1 … Page160 Page161 Page162 … 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