Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I open a file with a name beginning with + from the command line?

beginning Command file line
0
Posted

How do I open a file with a name beginning with + from the command line?

0

If a command line option that begins with ‘+’ is followed by another option, the former is always treated as a starting line number and the latter is always treated as a filename. If a command line option that begins with ‘+’ isn’t followed by another option, it’s always treated as a filename. Examples: To open ‘+filename.txt’ starting on line 1: nano +filename.txt To open ‘+filename.txt’ starting on line 10: nano +10 +filename.txt To open ‘+filename.txt’ starting on line 1 and ‘filename.txt’ starting on line 10 (if nano has been compiled with multibuffer support): nano +1 +filename.txt +20 filename.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123