Skip to content

Magenaut

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

shell

Execute a command on user logon

August 11, 2022 by Magenaut

In Linux desktop system, I want to execute a command when the user logs in.

Categories Q&A, Unix & Linux Tags login, scripting, shell Leave a comment

What is ‘ls quote’?

August 11, 2022 by Magenaut

Today I happened to press ' after ls
So the command is ls'

Categories Q&A, Unix & Linux Tags command-line, shell, zsh Leave a comment

Why do newline characters get lost when using command substitution?

August 11, 2022 by Magenaut

The read utility shall read a single line from standard input.

Categories Q&A, Unix & Linux Tags command-substitution, newlines, shell Leave a comment

What exactly is an environment variable?

August 11, 2022 by Magenaut

I know that VARIABLE=value creates an environment variable, and export VARIABLE=value makes it available to processes created by the current shell. env shows the current environment variables, but where do they live? What comprises an environment variable (or an environment, for that matter)?

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

How does one extract a command’s exit status into a variable?

August 11, 2022 by Magenaut

I started learning Bash a couple of days ago.

Categories Q&A, Unix & Linux Tags bash, command-line, exit-status, grep, shell Leave a comment

Remove ^M character from log files

August 11, 2022 by Magenaut

Remove ^M character from log files.

Categories Q&A, Unix & Linux Tags command-line, newlines, shell Leave a comment

How to match case insensitive patterns with ls?

August 11, 2022 by Magenaut

I would like to list all files matching a certain pattern while ignoring the case.

Categories Q&A, Unix & Linux Tags case-sensitivity, ls, shell, wildcards Leave a comment

^x^y unix trick for all instances in last command?

August 11, 2022 by Magenaut

One of my favorite Unix tricks is ^x^y, which will take the last command and replace the first instance of “x” with “y”. However, I’m wondering if a similar trick works to replace all instances of “x” with “y” in the last command?

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

What does $# mean in shell?

August 11, 2022 by Magenaut

What does $# mean in shell?

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

How to execute multiple commands remotely on few servers?

August 11, 2022 by Magenaut

I am trying to automate these steps so that I don’t need to do this on every machines manually. I need to install latest app server software (abc.tar.gz) on all the unix boxes.

Categories Q&A, Unix & Linux Tags bash, linux, scp, shell, sudo Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page46 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