Skip to content

Magenaut

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

escape-characters

Why does Ctrl-D (EOF) exit the shell?

August 11, 2022 by Magenaut

Are you literally “ending a file” by inputting this escape sequence, i.e. is the interactive shell session is seen as a real file stream by the shell, like any other file stream? If so, which file?

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

Which shells support ANSI-C quoting? e.g. $’string’

August 10, 2022 by Magenaut

I have a shell script that uses the following to print a green checkmark in its output:

Categories Q&A, Unix & Linux Tags escape-characters, portability, quoting, shell Leave a comment

Is there any objective benefit to escape sequences over tput?

August 10, 2022 by Magenaut

In people’s ‘.*rc‘ files I see online or in various code, I tend to see a lot of people who manually use ANSI escape sequences instead of using tput.

Categories Q&A, Unix & Linux Tags escape-characters, terminal, tput Leave a comment

Question about behavior of control key shortcuts

August 9, 2022 by Magenaut

I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as:

Categories Q&A, Unix & Linux Tags bash, escape-characters, keyboard-shortcuts, terminal Leave a comment

Trouble in script with spaces in filename

August 9, 2022 by Magenaut

I’ve got a script that scp’s a file from remote host back to local. Sometimes the file names contain spaces. scp does not like spaces in its file names. For some reason my attempts at handling the spaces have not resulted in the correct scp path.

Categories Q&A, Unix & Linux Tags bash, escape-characters, quoting, scripting, shell Leave a comment

The difference between e and ^[

August 9, 2022 by Magenaut

Gilles wrote:

Categories Q&A, Unix & Linux Tags escape-characters, key-mapping, shell Leave a comment

How to escape a single quote?

August 8, 2022 by Magenaut

end the single-quoted string, add escaped (either by backslash or double quotes) single quote, and immediately start the following part of your string:

Categories Q&A, Unix & Linux Tags escape-characters, quoting, scripting, sed, shell Leave a comment

Why does ‘cal’ use weird 08 / ^H / b terminal code for highlighting and how does that work?

August 8, 2022 by Magenaut

When you run cal on Linux, the output for the current month will reverse video highlight the current day. When I send that output to hexdump -c, I get some interesting results:

Categories Q&A, Unix & Linux Tags ansi-term, cal, escape-characters, highlighting Leave a comment

Issue with column command and color escape codes

August 8, 2022 by Magenaut

I’m colorizing the header of a table formatted with column -ts $'t'

Categories Q&A, Unix & Linux Tags colors, columns, escape-characters, table, text-formatting Leave a comment

Is Vim immune to copy-paste attack?

August 8, 2022 by Magenaut

You should never paste from web to your terminal. Instead, you should paste to your text editor, check the command and then paste to the terminal.

Categories Q&A, Unix & Linux Tags clipboard, escape-characters, security, special-characters, vim Leave a comment
Older posts
Page1 Page2 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