Skip to content

Magenaut

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

shell

How to match * with hidden files inside a directory

August 10, 2022 by Magenaut

How to match the hidden files inside the given directories

Categories Q&A, Unix & Linux Tags bash, dot-files, shell, wildcards Leave a comment

Object-oriented shell for *nix

August 10, 2022 by Magenaut

Preface: I love bash and have no intention of starting any sort of argument or holy-war, and hopefully this is not an extremely naive question.

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

How do I repeat the last command without using the arrow keys?

August 10, 2022 by Magenaut

I know I can use Up to iterate through previous commands. Running the last command simply involves Up + Enter. However, I was thinking of buying the Happy Hacking Keyboard as I spend a lot of time in vim.

Categories Q&A, Unix & Linux Tags command-history, keyboard-shortcuts, shell Leave a comment

Clone ownership and permissions from another file?

August 10, 2022 by Magenaut

Is there a command or flag to clone the user/group ownership and permissions on a file from another file? To make the perms and ownership exactly those of another file?

Categories Q&A, Unix & Linux Tags chown, files, permissions, shell Leave a comment

How do I use pushd and popd commands?

August 10, 2022 by Magenaut

What are the practical uses of both pushd and popd when there is an advantage of using these two commands over cd and cd -?

Categories Q&A, Unix & Linux Tags cd-command, pushd, shell Leave a comment

Why a “login” shell over a “non-login” shell?

August 10, 2022 by Magenaut

I have a basic understanding of dotfiles in *nix system. But I am still quite confused about this Difference between Login Shell and Non-Login Shell?

Categories Q&A, Unix & Linux Tags login, shell, terminology, unix-philosophy Leave a comment

How can I communicate with a Unix domain socket via the shell on Debian Squeeze?

August 10, 2022 by Magenaut

I’m running a Debian Squeeze web server. I’ve installed memcached on it, and configured memcached to listen on a Unix domain socket (at /tmp/memcached.sock), as it only needs to receive messages from the website, which lives on the same server.

Categories Q&A, Unix & Linux Tags debian, shell, socket, telnet Leave a comment

Why doesn’t “sudo su” in a shell script run the rest of the script as root?

August 10, 2022 by Magenaut

A sample script can be as below:

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

How to pass the output of one command as the command-line argument to another?

August 10, 2022 by Magenaut

So I have a script that, when I give it two addresses, will search two HTML links:

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

Can I somehow add a “&& prog2” to an already running prog1?

August 10, 2022 by Magenaut

Most shells provide functions like && and ; to chain the execution of commands in certain ways. But what if a command is already running, can I still somehow add another command to be executed depending on the result of the first one?

Categories Q&A, Unix & Linux Tags bash, exit, process, shell Leave a comment
Older posts
Newer posts
← Previous Page1 … Page13 Page14 Page15 … 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