Skip to content

Magenaut

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

io-redirection

Difference between “cat” and “cat <"

August 11, 2022 by Magenaut

I was working through a tutorial and saw use of both cat myfile.txt and cat < myfile.txt. Is there a difference between these two sequences of commands? It seems both print the contents of a file to the shell.

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

/dev/tcp listen instead of nc listen

August 11, 2022 by Magenaut

With a netcat listener like:

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

zsh I/O redirection: redirecting and then piping; what is going on?

August 11, 2022 by Magenaut

Can somebody explain what is going on in this command:

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

Why is redirecting STDERR to /dev/null done this way?

August 11, 2022 by Magenaut

This does not make sense to me.

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

Is this a typo in Bash manual’s redirection section?

August 11, 2022 by Magenaut

The use of the word duplication seems a little strange to me in
this context. Perhaps that is throwing me.

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

Why does the command shuf file > file leave an empty file, but similar commands do not?

August 11, 2022 by Magenaut

3.1.1 Shell Operation

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

understand a sequence of redirections

August 11, 2022 by Magenaut

If several redirections are used together, does changing their order make difference?

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

Invisible prompt after global redirection of stderr to /dev/null

August 11, 2022 by Magenaut

Studying TLDP’s Advanced Bash-Scripting Guide I am unable to reconstruct the following shell output in bash 4.4.12 in debian 9, both from tty and pts:

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

How to read from two input files using while loop

August 11, 2022 by Magenaut

I wanted to know if there is any way of reading from two input files in a nested while loop one line at a time. For example, lets say I have two files FileA and FileB.

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

What’s the difference between STDIN and arguments passed to command?

August 11, 2022 by Magenaut

I could use the either form to execute the cat method:

Categories Q&A, Unix & Linux Tags arguments, io-redirection, pipe Leave a comment
Older posts
Page1 Page2 … Page7 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