Skip to content

Magenaut

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

bashrc

How to tell what method was used to log in (Password vs. Keyfile) from the bashrc

August 8, 2022 by Magenaut

Is there a way how you can check what auth method the user which just logged in to an account were using?

Categories Q&A, Unix & Linux Tags bashrc, key-authentication, linux, login, ssh Leave a comment

Bash scripts ran from from gnome/nautilus don’t have environment variables

August 8, 2022 by Magenaut

In my ~/.bashrc and ~/.profile I have some variables set to some filepaths:

Categories Q&A, Unix & Linux Tags bash, bashrc, debian, gnome3 Leave a comment

bashrc lazy substitution

August 8, 2022 by Magenaut

How does one get ~/.bashrc aliases to evaluate $() substitutions at run time, instead of at the time that ~/.bashrc is executed (when opening a terminal)?

Categories Q&A, Unix & Linux Tags alias, bash, bashrc, quoting, shell Leave a comment

Completely restart Bash

August 7, 2022 by Magenaut

Is there a way to completely restart Bash and reload .bashrc and .profile and the like? I’d like to make sure my changes worked out properly after editing these files.

Categories Q&A, Unix & Linux Tags .bash-profile, bash, bashrc, source Leave a comment

When is /etc/bash.bashrc invoked?

August 7, 2022 by Magenaut

What is this file anyway? Documentation makes no mention of it. And it’s not supposed to be run automatically (version 4.3, 2 February 2014):

Categories Q&A, Unix & Linux Tags bash, bashrc, configuration Leave a comment

Is it possible for there to be a login shell that’s not interactive?

August 7, 2022 by Magenaut

In interpreting this flowchart

Categories Q&A, Unix & Linux Tags bash, bashrc, login, startup Leave a comment

.bashrc overwritten but still sourced — how can it be recovered?

August 6, 2022 by Magenaut

Usually when I find a command I want to alias, I echo it to my .bashrc like so:

Categories Q&A, Unix & Linux Tags bash, bashrc, data-recovery Leave a comment

Any command in my terminal that exits with non-zero code closes my terminal window

August 6, 2022 by Magenaut

At first this was a bit funny, like playing “Bash Roulette”
…but now it’s getting old lol

Categories Q&A, Unix & Linux Tags bash, bashrc, shell-script, terminal Leave a comment
Newer posts
← Previous Page1 Page2
  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