Skip to content

Magenaut

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

bash

Installed program executable runs from wrong location

August 8, 2022 by Magenaut

I installed parcellite in Ubuntu (downloaded from http://parcellite.sourceforge.net/)

Categories Q&A, Unix & Linux Tags bash, gnome-shell, parcellite, path, ubuntu Leave a comment

Bash: History expansion inside single quotes after a double quote inside the same line

August 8, 2022 by Magenaut

I took a closer look on this phenomenon after I stumbled over it in two other questions today. I’ve tried all of this with the default set -H (history expansion on).

Categories Q&A, Unix & Linux Tags bash, history-expansion, quoting Leave a comment

Ubuntu shell does not show the current path

August 8, 2022 by Magenaut

In my Ubuntu 12.04, the prompt always show the following only (no matter what path I’m in):

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

Bash script needed to run every second

August 8, 2022 by Magenaut

I have a few cleanup commands to run for my datacaching scheme. I was thinking a bash script would be an easy way to check if the full clean up job needed to be run. But the cache is very time sensitive, so the check script needs to run every second. What’s the best way to do this?

Categories Q&A, Unix & Linux Tags background-process, bash, services Leave a comment

How to copy files from the folder without the folder itself

August 8, 2022 by Magenaut

I’m trying to copy files and subfolders from A folder without the A itself. For instance, A folder contains next:

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

What is the difference between kill , pkill and killall?

August 7, 2022 by Magenaut

I am familiar with kill command , and most of the time we just use kill -9 to kill a process forcefully, there are many other signals that can be used with kill. But I wonder what are the use cases of pkill and killall, if there is already a kill command.

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

Difference between “cd -” and “cd ~-“

August 7, 2022 by Magenaut

The Bash command

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

BASH – customizing PS1 to run a command

August 7, 2022 by Magenaut

I wanted to modify my PS1 to run some commands every time. Let’s say I want it so that if the last executed command was successful, it would add a green smile at the end of PS1, otherwise the smile should be red.
I extracted it to a function:

Categories Q&A, Unix & Linux Tags bash, colors, prompt Leave a comment

Bash: What does “>|” do?

August 7, 2022 by Magenaut

I have just seen this written down;

Categories Q&A, Unix & Linux Tags bash, io-redirection, pipe Leave a comment

Control which process gets cancelled by Ctrl+C

August 7, 2022 by Magenaut

I have a live CD that boots into Linux and runs a small Bash script. The script searches for and runs a second program (which is usually a compiled C++ binary).

Categories Q&A, Unix & Linux Tags bash, signals Leave a comment
Older posts
Newer posts
← Previous Page1 … Page46 Page47 Page48 … Page65 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