Skip to content

Magenaut

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

Unix & Linux

How to return the currently active user/session on a graphical Linux desktop session?

August 8, 2022 by Magenaut

My question is how to get the user name on the shell, who is currently using the Linux desktop (on a “normal” desktop system, where you usually only have one active user, i.e. no server system here, but just your usual Laptop etc.). If you really want to imagine a server system, I would be … Read more

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

can’t change file permission

August 8, 2022 by Magenaut

Whenever I create or copy few shell files to usb storage device, then I am not able to make them executable.

Categories Q&A, Unix & Linux Tags executable, permissions, usb-drive Leave a comment

Why does ‘cal’ use weird 08 / ^H / b terminal code for highlighting and how does that work?

August 8, 2022 by Magenaut

When you run cal on Linux, the output for the current month will reverse video highlight the current day. When I send that output to hexdump -c, I get some interesting results:

Categories Q&A, Unix & Linux Tags ansi-term, cal, escape-characters, highlighting Leave a comment

Can’t create a bootable (live) usb flash for arch linux

August 8, 2022 by Magenaut

I created a bootable usb from which I was going to install Arch. I did this the following way:

Categories Q&A, Unix & Linux Tags arch-linux, boot, live-usb, usb Leave a comment

grep getting confused by filenames with dashes

August 8, 2022 by Magenaut

I’m having a problem where grep gets confused when the directory contains a file starting with dashes.

Categories Q&A, Unix & Linux Tags arguments, filenames, grep, options Leave a comment

View physical location of a file/directory on a hard disk

August 8, 2022 by Magenaut

Is there any Linux program which offers the same (or some of the) functionality of Sysinternals DiskView, especially being able to view to physical location of a file on a hard disk?

Categories Q&A, Unix & Linux Tags filesystems, hard-disk Leave a comment

Why can’t I run Gnome apps over remote SSH session?

August 8, 2022 by Magenaut

Logging into a remote host using ssh -X [email protected], I successfully run gnome-terminal -e "tail -F /var/log/file" &. When I log off and then try the same thing the next day, I get this:

Categories Q&A, Unix & Linux Tags d-bus, gnome, ssh Leave a comment

Differentiating between running and being sourced in a bash shell script?

August 8, 2022 by Magenaut

Either what I’m asking here is extremely unorthodox/unconventional/risky, or my Google-fu skills just aren’t up to snuff…

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

missing man pages of some commands

August 8, 2022 by Magenaut

Typing man alias gives me

Categories Q&A, Unix & Linux Tags documentation, man, shell-builtin Leave a comment

Why is there a separate package repository for Debian security updates?

August 8, 2022 by Magenaut

Why don’t they upload packages to the normal package repository? Is this a general convention… do other distros separate the repositories also?

Categories Q&A, Unix & Linux Tags debian, repository Leave a comment
Older posts
Newer posts
← Previous Page1 … Page209 Page210 Page211 … 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