Wednesday, April 24, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 8905  / 2 Years ago, mon, july 11, 2022, 11:23:54

I'm having a hard time making this directory in the terminal. I tried



mkdir '"What's for dinner?"'


but I think that doesn't work because of the apostrophe in What's. So I tried escaping that apostrophe:



mkdir '"What's for dinner?"'


but it still doesn't work. Any ideas?



edit: I want to keep the double quotes in the directory name.


More From » command-line

 Answers
2

If you want to create folder with quotes you should escape it using double quotes " and :



mkdir """"


Will create folder ""



mkdir """'"


Will create folder ""'



mkdir "'"


Will create folder '



mkdir ""What's for dinner?""


Will create what you want


[#26345] Tuesday, July 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fertion

Total Points: 436
Total Questions: 121
Total Answers: 156

Location: England
Member since Sun, May 21, 2023
1 Year ago
;