Skip to content

Magenaut

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

shell

How to diff a file and output from the command?

August 7, 2022 by Magenaut

Normally you would write:

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

shellcheck is advising not to use basename: why?

August 7, 2022 by Magenaut

I am trying out shellcheck.

Categories Q&A, Unix & Linux Tags basename, filenames, posix, shell Leave a comment

Difference between 2>&1 > output.log and 2>&1 | tee output.log

August 7, 2022 by Magenaut

I wanted to know the difference between the following two commands

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

Get vertical cursor position

August 7, 2022 by Magenaut

This might sound pretty weird, but I know how to set the vertical cursor position in Bash like this:

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

Storing shell scripts

August 7, 2022 by Magenaut

Turn on executable mode for your script:

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

How to go to the previous working directory in terminal?

August 7, 2022 by Magenaut

In terminal, how can I define a key to go to the previous directory which I was in when changing directory with the cd command?

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

Duplicate file x times in command shell

August 7, 2022 by Magenaut

I try to duplicate a video file x times from the command line by using a for loop, I’ve tried it like this, but it does not work:

Categories Q&A, Unix & Linux Tags file-copy, files, shell Leave a comment

How do I switch from an unknown shell to bash?

August 7, 2022 by Magenaut

I was surprised that I didn’t find this question already on the site. So, today $ came up after I logged in as a new user. This was unexpected because my main user’s prompt starts with [email protected]:~$.

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

Increase %e precision with /usr/bin/time shell command

August 7, 2022 by Magenaut

When I run the time command in shell time ./myapp I get an output like the following:

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

How many shells deep I am?

August 7, 2022 by Magenaut

Problem: Find how many shells deep I am.

Categories Q&A, Unix & Linux Tags bash, shell, shell-script, vim, zsh Leave a comment
Older posts
Newer posts
← Previous Page1 … Page37 Page38 Page39 … 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