Skip to content

Magenaut

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

command-line

SSH inside SSH fails with “stdin: is not a tty”

August 9, 2022 by Magenaut

I’m trying to connect to machine one with ssh and then connect to another machine two with ssh, but I get this error.

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

sponge from moreutils – what’s the difference to shell redirect? useful examples?

August 9, 2022 by Magenaut

sponge reads standard input and writes it out to the specified file.
Unlike a shell redirect, sponge soaks up all its input before writing
the output file. This allows constructing pipelines that read from
and write to the same file.

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

What are the standard error codes in Linux?

August 9, 2022 by Magenaut

When I write Bash code, for example to copy files, if a file doesn’t exist, in the terminal I see an error similar to file not found. If the user running the script doesn’t have the necessary permissions, the error is similar to permission denied.

Categories Q&A, Unix & Linux Tags command-line, error-handling, linux Leave a comment

What is the email matching regex in basic regex for grep?

August 9, 2022 by Magenaut

I created a text file and put some email addresses in it. Then I used grep to find them. Indeed it worked:

Categories Q&A, Unix & Linux Tags command-line, grep, regular-expression, shell Leave a comment

How to signal the end of stdin input

August 9, 2022 by Magenaut

In Bash, I learned that the ending signal can be changed by here document. But by default how can I signal the end of stdin input? I happened to find that with cat and chardet, their stdin inputs can be signaled as finished by Ctrl+D. But I seems to remember that Ctrl+D and Ctrl+C are … Read more

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

How to find list of available shells by command-line?

August 9, 2022 by Magenaut

How to list available shells for use by command-line?

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

command to layout tab separated list nicely

August 9, 2022 by Magenaut

Sometimes, I’m getting as an input tab separated list, which is not quite aligned, for instance

Categories Q&A, Unix & Linux Tags command-line, csv, tabulation, text-processing Leave a comment

How can I edit multiple files in Vim?

August 9, 2022 by Magenaut

I know I can open multiple files with vim by doing something like vim 2011-12*.log, but how can I switch between files and close the files one at a time?

Categories Q&A, Unix & Linux Tags command-line, files, linux, vim Leave a comment

Find only destination of symlink

August 9, 2022 by Magenaut

For use in a shell-script, I’m looking for a commandline-way to get the destination of a symbolic link. The closest I’ve come so far is stat -N src, which outputs src -> dst. Of course I could parse the output and get dst, but I wonder if there is some direct way of getting the destination.

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

How to use ifconfig to show active interface only

August 9, 2022 by Magenaut

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below.

Categories Q&A, Unix & Linux Tags command-line, interface, networking, osx Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 … 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