Skip to content

Magenaut

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

command-line

xargs and vi – “Input is not from a terminal”

August 8, 2022 by Magenaut

I have about 10 php.ini files on my system, located all over the place, and I wanted to quickly browse through them. I tried this command:

Categories Q&A, Unix & Linux Tags command-line, terminal, vi, xargs Leave a comment

Why is aliasing over standard commands not recommended?

August 8, 2022 by Magenaut

For example, a common alias I’ve seen in the ~/.bashrc file (or equivalents) is

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

Command line argument in awk

August 8, 2022 by Magenaut

I just want to implement if condition in awk. I created one file name : “simple_if” as below.

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

Why doesn’t systemctl {restart,status} sshd; work?

August 8, 2022 by Magenaut

The output of the above command when passed through echo is:

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

Behaviour of bash command substitution with command from string in variable

August 8, 2022 by Magenaut

There are seven kinds of expansion … The order of expansions is: brace expansion; tilde expansion, parameter and variable expansion, arithmetic expansion, and command substitution (done in a left-to-right fashion); word splitting; and filename expansion

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

What can I do if bash stops echoing?

August 8, 2022 by Magenaut

One of the applications I use at work sometimes screws with my bash and so I don’t see my own input anymore. I.e.

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

Show lines matching a pattern and the 4 lines before each

August 8, 2022 by Magenaut

For example, from this file:

Categories Q&A, Unix & Linux Tags awk, command-line, grep, hp-ux, sed Leave a comment

How to remove Ctrl-M from files where dos2unix, perl, tr, and sed are not present?

August 8, 2022 by Magenaut

Suppose you are working on a very old unix server where dos2unix, perl, tr, and sed are not present. How can you convert files from dos to unix format?

Categories Q&A, Unix & Linux Tags command-line, software-rec Leave a comment

Is there any program to provide a consistent interface across multiple archive types?

August 8, 2022 by Magenaut

At the moment, if I download a compressed file, it could be any of a .tar.gz archive, a tar.bz2 arhive, a .zip archive or a .gz archive. And each time I do so, I have to remember what the command line options for that program are.

Categories Q&A, Unix & Linux Tags archive, command-line, compression Leave a comment

Problem in secure copying (scp) filenames with spaces

August 8, 2022 by Magenaut

I am trying to copy files using secure copy(scp). I am trying to execute the following command but I get error due to the space in the absolute path of the location of the directory.

Categories Q&A, Unix & Linux Tags command-line, linux, scp Leave a comment
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 … Page23 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