Your Question: What Does M Do in Linux?
Contents

12 Answers. The ^M is a carriage-return character. If you see this, you’re probably looking at a file that originated in the DOS/Windows world, where an end-of-line is marked by a carriage return/newline pair, whereas in the Unix world, end-of-line is marked by a single newline.

What does M mean in command line?

-c command Specify the command to execute (see next section). This terminates the option list (following options are passed as arguments to the command). -m module-name Searches sys. path for the named module and runs the corresponding . py file as a script.

What is M in bash?

/bin/bash^M: bad interpreter: No such file or directory

Ok, but there is no ^M in your script! ^M is a character used by Windows to mark the end of a line (so it is a carriage return) and that matches the CR character.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest