Skip to content

Magenaut

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

Unix & Linux

systemd custom status message?

August 8, 2022 by Magenaut

I’m trying to write a systemd service which should expose the options start|stop|status|restart.

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

RHEL: Creating stable names for network interfaces

August 8, 2022 by Magenaut

We have a RHEL 5.5 box with 8 interfaces. And the eth interface naming is flip flopping. Sometimes eth0 comes up on physical port 7th, and sometimes on another physical port.

Categories Q&A, Unix & Linux Tags devices, ethernet, linux, rhel Leave a comment

Is it possible to reference the most recently modified file in a command line argument?

August 8, 2022 by Magenaut

I frequently download PDF files with heinous numeric file names from my browser. These automatically go into ~/Downloads. Ideally I would like to just be able to open these files with:

Categories Q&A, Unix & Linux Tags bash, command-line, date, files, wildcards Leave a comment

How to associate a new (custom) mime type with files (based on file extension)?

August 8, 2022 by Magenaut

This is part 2 of How to install a new (custom) mime type on my Linux system using CLI tools?

Categories Q&A, Unix & Linux Tags mime-types, xdg-open Leave a comment

Directory permissions vs file permssions

August 8, 2022 by Magenaut

If I have two users called john and sally. Both are part of the users group. john creates a directory with permissions 775. sally then puts a file there with 644 permissions.

Categories Q&A, Unix & Linux Tags directory, group, permissions Leave a comment

Separate environment with different /bin/sh

August 8, 2022 by Magenaut

I have a bunch of shell scripts which incorrectly assume /bin/sh to be equivalent to /bin/bash. E.g., they have the #!/bin/sh shebang, but use the source command instead of . (dot).

Categories Q&A, Unix & Linux Tags bash, shebang, shell-script Leave a comment

Moving tmux pane to window

August 8, 2022 by Magenaut

How do I move an existing pane into another window in tmux when I have multiple windows, and vice versa?

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

last time file opened

August 8, 2022 by Magenaut

Is it possible to get the time when file was opened last time and sort all files in a directory by those times?

Categories Q&A, Unix & Linux Tags date, files, ls Leave a comment

intersection of two files according to the first column

August 8, 2022 by Magenaut

I have two files
in file A, there are sequence_numbers
in the other file B, there are many columns, and the first column is sequnce numbers,
I want to get a files with all the lines in the B with the sequence numbers which are in the A
how can I achieve this?
thanks

Categories Q&A, Unix & Linux Tags columns, join, scripting, shell, text-processing Leave a comment

How does the “tail” command’s “-f” parameter work?

August 8, 2022 by Magenaut

$ tail -f testfile the command is supposed to show the latest entries in the specified file, in real-time right? But that’s not happening. Please correct me, if what I intend it to do is wrong… I created a new file “aaa” and added a line of text and closed it. then issued this command … Read more

Categories Q&A, Unix & Linux Tags command-line, monitoring, tail Leave a comment
Older posts
Newer posts
← Previous Page1 … Page247 Page248 Page249 … 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