Skip to content

Magenaut

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

cat

continuous reading from named pipe (cat or tail -f)

August 10, 2022 by Magenaut

I have configured rsyslog to log certain log events to /dev/xconsole:

Categories Q&A, Unix & Linux Tags cat, fifo, pipe, tail Leave a comment

How can I display syntax highlighting on a file?

August 10, 2022 by Magenaut

Is there a variant of cat that outputs syntax-highlighted lines of code when used on a source file?

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

How to highlight a word in the output of “cat”?

August 10, 2022 by Magenaut

I can do the following to see if some word is available in the output of “cat”: cat filename | grep word This filters the output and shows only those lines which contain “word”. Now, is it possible to only highlight the “word” in the output, without dropping other lines? Answers: Thank you for visiting … Read more

Categories Q&A, Unix & Linux Tags cat, highlighting Leave a comment

Is it a UUOC (useless use of cat) to redirect one file to another?

August 9, 2022 by Magenaut

If I want to make the contents of file2 match the contents of file1, I could obviously just run cp file1 file2.

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

How to read dash files

August 9, 2022 by Magenaut

How can I read a dash file from the terminal other than delimiting it with ./

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

cat files with directory

August 9, 2022 by Magenaut

Is there a command to show the directory/file name when cat files?

Categories Q&A, Unix & Linux Tags cat, filenames Leave a comment

How do I “cat and follow” a file?

August 9, 2022 by Magenaut

A file is being sequentially downloaded by wget.

Categories Q&A, Unix & Linux Tags cat, files, open-files, pipe, tail Leave a comment

Fastest way to concatenate files

August 9, 2022 by Magenaut

I’ve got 10k+ files totaling over 20GB that I need to concatenate into one file.

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

Append same text to many files using cat or echo?

August 9, 2022 by Magenaut

How can I write the same content to many text files by using cat or echo in only one command?

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

How does cat ‘know’ the optimum block size to use?

August 8, 2022 by Magenaut

From reading this, it seems that when copying data to a different hard drive, cat automatically uses the optimum block size (or very near it).

Categories Q&A, Unix & Linux Tags block-device, cat, dd Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 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